Skip to content

Kafka 14115#12481

Closed
premkamal23 wants to merge 4 commits intoapache:trunkfrom
premkamal23:KAFKA-14115
Closed

Kafka 14115#12481
premkamal23 wants to merge 4 commits intoapache:trunkfrom
premkamal23:KAFKA-14115

Conversation

@premkamal23
Copy link

@premkamal23 premkamal23 commented Aug 3, 2022

[KAFKA-14115] Password configs are logged in plaintext in KRaft

While updating the config for a broker ConfigurationControlManager is logging sensitive config values (listener.name.external.ssl.key.password).
ConfigResource(type=BROKER, name='1'): set configuration listener.name.external.ssl.key.password to bar

We need to redact these values the same as BrokerMetadataPublisher
Updating broker 1 with new configuration : listener.name.external.ssl.key.password -> [hidden]

Changes: updated isSensitive method to check if the config name contains the string password and used the same while logging config values.

@mumrah Can you please review this PR ?

@premkamal23
Copy link
Author

Fix has been merged : #12483

@premkamal23 premkamal23 closed this Aug 5, 2022
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.

1 participant