Skip to content

[MNG-5356] Make encrypt/decrypt logic pluggable #6919

Open

Description

@jira-importer

Anders Hammar opened MNG-5356 and commented

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.


Issue Links:

1 votes, 9 watchers

Activity

  1. jira-importer commented on Oct 5, 2012

    @jira-importer
    Author

    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.

  2. jira-importer commented on Nov 20, 2012

    @jira-importer
    Author

    Jason van Zyl commented

    If this is really just a resuable encrypt/decrypt component I would recommend separating it from the core.

  3. jira-importer commented on Nov 25, 2012

    @jira-importer
    Author

    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.

  4. jira-importer commented on Nov 25, 2012

    @jira-importer
    Author

    Anders Hammar commented

    Yes, DefaultSettingsDecrypter uses the new Crypto component.

  5. jira-importer commented on Dec 3, 2012

    @jira-importer
    Author

    Anders Hammar commented

    When/if we do this we also need to update the maven-deps image of the site.

  6. jira-importer commented on Jan 7, 2014

    @jira-importer
    Author

    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.

  7. jira-importer commented on Jan 8, 2014

    @jira-importer
    Author

    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!

  8. jira-importer commented on Jan 8, 2014

    @jira-importer
    Author

    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...

  9. jira-importer commented on Mar 16, 2018

    @jira-importer
    Author

    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.

  10. added
    enhancement
    priority:major
    on Jul 6, 2025
  11. modified the milestones: , 4.x on Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:major

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions