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

password changes in scram credentials not detected #362

Open
piif opened this issue Dec 1, 2023 · 1 comment
Open

password changes in scram credentials not detected #362

piif opened this issue Dec 1, 2023 · 1 comment

Comments

@piif
Copy link

piif commented Dec 1, 2023

When using scram credentials, kafka_user_scram_credential entries don't test if specified password is correct.
Thus if password is modified by an external way, terraform won't show entry to be "changed"

Is there a way to check if current password is still valid during "plan" phase ?

@piif
Copy link
Author

piif commented Dec 1, 2023

After some tests, it seems calling sarama.NewClient with specified credentials is enough to check if they are valid.
Thus, during comparison between state and target brokers, it should be possible to try connection and set a flag to indicate credential validity

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

No branches or pull requests

1 participant