Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Improve console output of auth command #2857

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

malliaridis
Copy link
Contributor

Description

The console is currently printing the username and password when the user enables authentication via

bin/solr auth enable --prompt true

This defeats the purpose of a hidden password prompt.

Solution

Do not print the password when basic authentication is enabled.

@malliaridis malliaridis changed the title Improve console output of auth command CLI: Improve console output of auth command Nov 9, 2024
Copy link
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

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

Nice! It's almost embarrassing we did it the way we did it!

@malliaridis
Copy link
Contributor Author

@epugh Is something like this worth a ticket or added in the changes (planning to backport it)?

@epugh
Copy link
Contributor

epugh commented Nov 10, 2024

@epugh Is something like this worth a ticket or added in the changes (planning to backport it)?

Normally I would say no. However, since it improves our security posture? That might be worth going in CHANGES.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants