GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MNG-8398] mvn --encrypt[--master]--password should work with redirected streams · Issue #10230 · apache/maven

[MNG-8398] mvn --encrypt[--master]--password should work with redirected streams #10230

New issue
Copy link
New issue
Copy link
Closed
#13834
Closed
[MNG-8398] mvn --encrypt[--master]--password should work with redirected streams#10230
#13834
Copy link
Labels
enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

Description

@jira-importer
jira-importer
opened on Dec 2, 2024
Issue body actions

James Nord opened MNG-8398 and commented

Maven 3.2.1 provided a way to enter the password to be encrypted via interactive input for security reasons.

However the implementation uses the java.io.Console API with no fallback to stdin/stdout.

This makes it virtually impossible[1] to securely[2] encrypt a password from another program (for example a tool that will bootstrap a settings.xml for a corporate structure etc.

 

Steps to reproduce

(to reproduce without any 3rd party tooling run, which is not how I would expect this to be called, but is here to demonstrate)

echo n myMasterPassword |mvn -encrypt-master-password

Expected results

{base64HexString}

Actual results

{}

 

[1] without relying on 3rd party tools that may not be installed, eg. on Linux you can use script (which is likely to be installed), but on windows you have no such generally available solution 

[2] without the password being showing exposed in the process list (which is why this was implemented to begin with).


Affects: 3.9.9

Activity

  1. jira-importer
    added
    enhancementNew feature or request
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jul 7, 2025
  2. sparsick
    marked [MNG-8398] mvn --encrypt[--master]--password should work with redirected streams #9455 as a duplicate of this issue on Jul 8, 2025
  3. nos1dot618 commented on Aug 23, 2026

    @nos1dot618
    nos1dot618
    on Aug 23, 2026
    More actions

    @sparsick If no one is currently working on this issue, I’d be happy to take it up. Please let me know if it would be okay for me to work on it.

  4. arturobernalg
    added 2 commits that reference this issue on Oct 17, 2026

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit 76af3a4 is merged into the 'master' branch.
    76af3a4

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit 09a406b is merged into the 'master' branch.
    09a406b
  5. cstamas
    added a commit that references this issue on Oct 20, 2026

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit 73e6521 is merged into the 'master' branch.
    73e6521
  6. slachiewicz
    added 2 commits that reference this issue on Nov 3, 2026

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit 3d8c201 is merged into the 'master' branch.
    3d8c201

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit fcd45ff is merged into the 'master' branch.
    fcd45ff
  7. slachiewicz
    closed this as completedin #13834on Nov 5, 2026
  8. JackPGreen
    added a commit that references this issue on Nov 5, 2026

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit 8588401 is merged into the 'master' branch.
    8588401
  9. slachiewicz
    added a commit that references this issue on Nov 5, 2026

    Read the password to encrypt from the standard input when there is no…

    This issue will close once commit 9802e6c is merged into the 'master' branch.
    9802e6c
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

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.