Skip to content

Support Encrypted PasswordΒ #54

@marcandre-larochelle

Description

@marcandre-larochelle

Is your feature request related to a problem? Please describe.

This is a security enhancement request and follows the way other official plugins do it.

Describe the solution you'd like to see

Enable specifying the server.id to read from for the credentials (username and password)

In settings.xml:

<settings>
  ...
  <servers>
    <server>
      <id>artifactory</id>
      <username>username</username>
      <password>encrypted_password</password>
    </server>
  </servers>
  ...
</settings>

In artifactory-maven-plugin:

<publisher>
  <contextUrl>https://<artifactory-instance-url>/artifactory</contextUrl>
  <serverCredentials>artifactory</serverCredentials>
</publisher>

The property from the artifactory-maven-plugin must match the server id found in the settings.xml.

Documentation on Maven Password Encryption:

Examples of how other official plugins do it:

How sql-maven-plugin reads the settings:

Describe alternatives you've considered

Access tokens, but it is still stored in plain text in the settings.xml or pom.xml.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions