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

Specifying --password "secret" --password in client asks user to enter password #50459

Closed
Demilivor opened this issue Jun 2, 2023 · 0 comments · Fixed by #50966
Closed

Specifying --password "secret" --password in client asks user to enter password #50459

Demilivor opened this issue Jun 2, 2023 · 0 comments · Fixed by #50966
Assignees
Labels
minor Priority: minor usability

Comments

@Demilivor
Copy link
Contributor

Demilivor commented Jun 2, 2023

ClickHouse client version 23.5.1.1

Describe the unexpected behavior.
Specifying --password "secret" --password asks the user to enter the password instead of failing in the console output.

Repro
clickhouse-client --password "secret" --password

Expected behavior
An error: Bad arguments: option '--password' cannot be specified more than once

Error message and/or stacktrace
No error message. The client just ignores the "secret" password, and uses implicit_value "" from the boost options configuration.
If the password is an empty string, then the client asks the user to enter the password (even if the user does not have a password).

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

Successfully merging a pull request may close this issue.

2 participants