Skip to content

Use PEM files directly as ZooKeeper keystore and truststore - #613

Merged
lhotari merged 10 commits into
apache:masterfrom
lhotari:lh-use-pem-files-for-zookeeper-tls
May 30, 2025
Merged

lhotari merged 10 commits into
apache:masterfrom
lhotari:lh-use-pem-files-for-zookeeper-tls

Conversation

@lhotari

@lhotari lhotari commented May 28, 2025 •

Copy link
Copy Markdown
Member

Fixes #359
Fixes #285
Fixes #524

Motivation

See #359

Modifications

  • replace the keytool.sh solution by using PEM files directly as ZooKeeper keystore and truststore
  • drop support for old cert-manager versions before v1 API version
  • refactor the templates to reduce duplication

Additional information

Helm chart version will be bumped to 4.2.0 after making this change since there's a need to have cert-manager configured with AdditionalCertificateOutputFormats feature gate enabled for the solution to work. The reason for this is that the PEM keystore file requires the "CombinedPEM" format which is available only when AdditionalCertificateOutputFormats feature gate is enabled.

Verifying this change

  • Make sure that the change passes the CI checks.

@lhotari
lhotari force-pushed the lh-use-pem-files-for-zookeeper-tls branch from f45d737 to 2d4e4c1 Compare May 28, 2025 14:47
@lhotari

lhotari commented May 28, 2025

Copy link
Copy Markdown
Member Author

requires AdditionalCertificateOutputFormats feature gate to be enabled in cert-manager.
That's going to be default after 1.18 release: cert-manager/cert-manager#7744

@lhotari
lhotari force-pushed the lh-use-pem-files-for-zookeeper-tls branch from 02d7b23 to ee0d5a3 Compare May 28, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant