You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MNG-5356] Make encrypt/decrypt logic pluggable #6919
It would be good if Maven Core facilitated the encryption (and decryption) logic to be replaceable. Today's solution is very much hard-coded to the plexus logic.
This would make it possible for enterprise environments to re-use existing solutions, like for eg smart cards, for this. The default should be the current implementation though.
We should add an interface for this using org.apache.maven namespace and a default implementation which could be a simple wrapper on the current existing impl.
Have you taken a look at the SettingsDecrypter in maven-settings-builder? I'll pull your branch in and take a closer look now that 3.1.0 is almost wrapped up.
Could we not extend this to allow full password resolution instead of just decryption?
e.g. in a CI environment we would like the CI server to manage the passwords.
@Dominik: That would be great and also one of my wishes. It would require involvement of people with knowledge of those requirements though. Initially I though of this as a first step which could then be improved with what you're talking about.
I first step for the "full password resolution" would be to create tickets with some CI server (e.g. Jenkins or Hudson) and link to this ticket. This could trigger participation to move this forward. Please go ahead and do this!
Technically the current solution in Jenkins is done by rewriting the settings.xml and and passing it with "-s" and "-g" - but if maven would provide a plugable solution, I could implement it in a more elegant way.
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
Activity
jira-importer commentedon Oct 5, 2012
Anders Hammar commented
We should add an interface for this using org.apache.maven namespace and a default implementation which could be a simple wrapper on the current existing impl.
jira-importer commentedon Nov 11, 2012
Anders Hammar commented
The work on this is performed here: https://github.com/devoteam-se/maven-3/tree/MNG-5356
jira-importer commentedon Nov 20, 2012
Jason van Zyl commented
If this is really just a resuable encrypt/decrypt component I would recommend separating it from the core.
jira-importer commentedon Nov 25, 2012
Jason van Zyl commented
Have you taken a look at the SettingsDecrypter in maven-settings-builder? I'll pull your branch in and take a closer look now that 3.1.0 is almost wrapped up.
jira-importer commentedon Nov 25, 2012
Anders Hammar commented
Yes, DefaultSettingsDecrypter uses the new Crypto component.
jira-importer commentedon Dec 3, 2012
Anders Hammar commented
When/if we do this we also need to update the maven-deps image of the site.
jira-importer commentedon Jan 7, 2014
Dominik Richner commented
Could we not extend this to allow full password resolution instead of just decryption?
e.g. in a CI environment we would like the CI server to manage the passwords.
jira-importer commentedon Jan 8, 2014
Anders Hammar commented
@Dominik: That would be great and also one of my wishes. It would require involvement of people with knowledge of those requirements though. Initially I though of this as a first step which could then be improved with what you're talking about.I first step for the "full password resolution" would be to create tickets with some CI server (e.g. Jenkins or Hudson) and link to this ticket. This could trigger participation to move this forward. Please go ahead and do this!
jira-importer commentedon Jan 8, 2014
Dominik Richner commented
The issue already exists in Jenkins (https://issues.jenkins-ci.org/browse/JENKINS-16705) and I also resolved it by implementing it this way: https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin#ConfigFileProviderPlugin-MavenServerCredentials%28since2.7%29
Technically the current solution in Jenkins is done by rewriting the settings.xml and and passing it with "-s" and "-g" - but if maven would provide a plugable solution, I could implement it in a more elegant way.
...I don't know about Hudson...
jira-importer commentedon Mar 16, 2018
Michael Osipov commented
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.