-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
feature requestNew feature or requestNew feature or request
Description
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:
- https://maven.apache.org/maven-release/maven-release-plugin/faq.html#credentials
- https://maven.apache.org/scm/maven-scm-plugin/examples/bootstrapping-with-pom.html
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
mfriedenhagen, piotrwielgolaski-tomtom, vseregin and php-coder
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request