Skip to content

ARTEMIS-6037 fix CLI defaults#6436

Closed
jbertram wants to merge 1 commit into
apache:mainfrom
jbertram:ARTEMIS-6037
Closed

ARTEMIS-6037 fix CLI defaults#6436
jbertram wants to merge 1 commit into
apache:mainfrom
jbertram:ARTEMIS-6037

Conversation

@jbertram
Copy link
Copy Markdown
Contributor

No description provided.

protected String getClusterPassword() {
if (clusterPassword == null) {
clusterPassword = inputPassword("--cluster-password", "What is the cluster password?", "password-admin");
clusterPassword = inputPassword("--cluster-password", "What is the cluster password?", ActiveMQDefaultConfiguration.getDefaultClusterPassword());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the default argument on inputPassword, and throw an exception if not passed, and while in silent..

I have a branch with this suggestion:

https://github.com/clebertsuconic/artemis/tree/ARTEMIS-6037

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually already implemented that on my branch for ARTEMIS-6055. I'll close this PR and handle this as part of the general case for all passwords.

@jbertram jbertram closed this May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants