Skip to content

[feat][zk] Enable certificate refresh for Quorum and Netty Servers - #18097

Merged
nodece merged 1 commit into
apache:masterfrom
michaeljmarshall:enable-zk-cert-reload
Oct 19, 2022
Merged

nodece merged 1 commit into
apache:masterfrom
michaeljmarshall:enable-zk-cert-reload

Conversation

@michaeljmarshall

@michaeljmarshall michaeljmarshall commented Oct 18, 2022 •

Copy link
Copy Markdown
Member

Fixes apache/pulsar-helm-chart#285

Motivation

The current Pulsar SSL Server Contexts always reload certificates from the file system. Zookeeper supports such options, but we do not enable them by default. I propose we do that.

Apache Zookeeper documentation:

sslQuorumReloadCertFiles : (No Java system property) New in 3.5.5, 3.6.0: Allows Quorum SSL keyStore and trustStore reloading when the certificates on the filesystem change without having to restart the ZK process. Default: false

client.certReload : (Java system property: zookeeper.client.certReload) New in 3.7.2, 3.8.1, 3.9.0: Allows client SSL keyStore and trustStore reloading when the certificates on the filesystem change without having to restart the ZK process. Default: false

Modifications

Verifying this change

This is a trivial configuration change.

Does this pull request potentially affect one of the following parts:

  • The default values of configurations

I do not believe this needs a PIP because our standard default is already to refresh certificates in the broker, function worker, the proxy, and the websocket proxy.

Documentation

  • doc-not-needed

Matching PR in forked repository

PR in forked repository: michaeljmarshall#5

@michaeljmarshall michaeljmarshall added this to the 2.12.0 milestone Oct 18, 2022
@michaeljmarshall michaeljmarshall self-assigned this Oct 18, 2022
@michaeljmarshall michaeljmarshall changed the title [zk] Enable certificate refresh for Quorum and Netty Servers [feat][zk] Enable certificate refresh for Quorum and Netty Servers Oct 18, 2022
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Oct 18, 2022

@nodece nodece left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nodece

nodece commented Oct 19, 2022 •

Copy link
Copy Markdown
Member

From ZK documentation:

sslQuorumReloadCertFiles : (No Java system property) New in 3.5.5, 3.6.0: Allows Quorum SSL keyStore and trustStore reloading when the certificates on the filesystem change without having to restart the ZK process. Default: false

client.certReload : (Java system property: zookeeper.client.certReload) New in 3.7.2, 3.8.1, 3.9.0: Allows client SSL keyStore and trustStore reloading when the certificates on the filesystem change without having to restart the ZK process. Default: false

@michaeljmarshall

Copy link
Copy Markdown
Member Author

Good idea to reference the ZK documentation @nodece. I updated my PR's description with it. Thanks!

@codecov-commenter

codecov-commenter commented Oct 19, 2022 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@69deb1f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #18097   +/-   ##
=========================================
  Coverage          ?   46.93%           
  Complexity        ?    17937           
=========================================
  Files             ?     1574           
  Lines             ?   128342           
  Branches          ?    14121           
=========================================
  Hits              ?    60239           
  Misses            ?    61908           
  Partials          ?     6195           
Flag Coverage Δ
unittests 46.93% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@nodece
nodece merged commit 912f344 into apache:master Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic certificate renewal does not work

5 participants