Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-38

Support encrypted passwords for password protected repositories

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0-alpha-1
    • Fix Version/s: 2.0.0-beta-4
    • Component/s: maven
    • Labels:
      None

      Description

      settings.xml can contain encrypted password together with master password encrypted in a standalone file.

        Gliffy Diagrams

          Activity

          Hide
          kpiwko Karel Piwko added a comment -

          Pushed upstream in https://github.com/shrinkwrap/resolver/commit/7fc30e22259262798de3b6b1360a8b3f253fdd2a

          It honors default location, e.g.

          ~/.m2/settings-security.xml

          Also, it allows to override the location via:

          -Dorg.apache.maven.security-settings=/path/to/settings-security.xml

          Usage is shown here:

          https://github.com/shrinkwrap/resolver/blob/master/impl-maven/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/integration/RepositoryAuthTestCase.java#L103

          Show
          kpiwko Karel Piwko added a comment - Pushed upstream in https://github.com/shrinkwrap/resolver/commit/7fc30e22259262798de3b6b1360a8b3f253fdd2a It honors default location, e.g. ~/.m2/settings-security.xml Also, it allows to override the location via: -Dorg.apache.maven.security-settings=/path/to/settings-security.xml Usage is shown here: https://github.com/shrinkwrap/resolver/blob/master/impl-maven/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/integration/RepositoryAuthTestCase.java#L103
          Hide
          kpiwko Karel Piwko added a comment -

          Altered behavior with malformed settings-security.xml. If any problem happens during parsing, it is logged with WARNING level, however it does not raise an exception.

          This seems to mimic Maven behavior better.

          Pushed upstream in https://github.com/shrinkwrap/resolver/commit/ea5783fe82608658040a4925dfceceac2c1c753f.

          Show
          kpiwko Karel Piwko added a comment - Altered behavior with malformed settings-security.xml. If any problem happens during parsing, it is logged with WARNING level, however it does not raise an exception. This seems to mimic Maven behavior better. Pushed upstream in https://github.com/shrinkwrap/resolver/commit/ea5783fe82608658040a4925dfceceac2c1c753f .
          Hide
          kpiwko Karel Piwko added a comment -

          Closing issues. Released as a part of 2.0.0-beta-4 release.

          Show
          kpiwko Karel Piwko added a comment - Closing issues. Released as a part of 2.0.0-beta-4 release.

            People

            • Assignee:
              kpiwko Karel Piwko
              Reporter:
              kpiwko Karel Piwko
            • Votes:
              4 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development