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

fix: honor sasl params at command line over config file #226

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

hhahn-tw
Copy link
Contributor

@hhahn-tw hhahn-tw commented Mar 7, 2025

Currently, if spec.sasl.secretsManagerArn is defined in a cluster configuration file, it will take precedence over values for sasl-username and sasl-password provided at the command line.

This is contrary to conventional patterns of precedence where CLI options are highest, followed by env, file, and defaults. Furthermore, in certain contexts (eg tooling automation) it may not be feasible to change the given cluster configuration file, making it impossible to override to a different SASL credential.

This PR corrects this and when overriding configuration ("overriding", according to topicctl, occurs via CLI or env) for sasl-username and sasl-password, it ensures secretsManagerArn is not used (whether from config file or itself an override).

@hhahn-tw hhahn-tw requested a review from a team as a code owner March 7, 2025 23:53
@hhahn-tw hhahn-tw merged commit 194a446 into master Mar 10, 2025
8 checks passed
@hhahn-tw hhahn-tw deleted the hh/sasl-params-precedence-fix branch March 10, 2025 17:47
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