terraform-provider-kafka
terraform-provider-kafka copied to clipboard
password changes in scram credentials not detected
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 ?
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