Skip to content

Conversation

@jeroen92
Copy link

@jeroen92 jeroen92 commented Jan 19, 2026

When updating keystore/truststore, one can use the kafka-configs.sh CLI to gracefully reconfigure the listeners and let them pick up the new certificates.

For RaftManager however this wasn't working as expected. E.g. when running the kafka-configs command below, connections initated by the KafkaRaftManager would not pick up the reconfiguration and kept using the old TLS settings indefinitely, both on broker and controller nodes.
/usr/local/kafka/bin/kafka-configs.sh --bootstrap-server kafka-broker:9999 --alter --entity-type brokers --entity-name 2 --add-config listener.name.CONTROLLER.ssl.keystore.location=/pki/broker.jks

This was caused by:

  1. The RaftManager ChannelBuilder isn't added to the DynamicBrokerConfig
    reconfigurables
  2. the RaftManager uses a 'stub-like' broker config which doesn't
    receive any dynamic configuration updates.

This commit resolves both issues.

@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Jan 19, 2026
When updating keystore/truststore, one can use the kafka-configs.sh CLI
to gracefully reconfigure the listeners and let them pick up the new
certificates.

For RaftManager however this wasn't working as expected. E.g. when running
the kafka-configs command below, connections initated by the KafkaRaftManager
would not pick up the reconfiguration and kept using the old TLS
settings indefinitely, both on broker and controller nodes.
`/usr/local/kafka/bin/kafka-configs.sh --bootstrap-server kafka-broker:9999 --alter --entity-type brokers --entity-name 2 --add-config listener.name.CONTROLLER.ssl.keystore.location=/pki/broker.jks`

This was caused by:
1) The RaftManager ChannelBuilder isn't added to the DynamicBrokerConfig
   reconfigurables
2) the RaftManager uses a 'stub-like' broker config which doesn't
   receive any dynamic configuration updates.

This commit resolves both issues.
@jeroen92 jeroen92 changed the title KAFKA-20025: enable dynamic TLS reconfiguration of KafkaRaftManager KAFKA-20025: enable dynamic TLS reconfiguration for KafkaRaftManager Jan 19, 2026
@github-actions
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker needs-attention small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant