Skip to content

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

Merged
hhahn-tw merged 1 commit intomasterfrom
hh/sasl-params-precedence-fix
Mar 10, 2025
Merged

fix: honor sasl params at command line over config file#226
hhahn-tw merged 1 commit intomasterfrom
hh/sasl-params-precedence-fix

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