When a cert-manager Keystore Runs Behind a Password Change
cert-manager v1.21.2's API reference: "The keystore file will be updated immediately." After a password change, the keystores opened only with the old password throughout our 30-minute window. When It Runs β Run Report
cert-manager v1.21.2's API reference: "The keystore file will be updated immediately." After a password change, the keystores opened only with the old password throughout our 30-minute window.
When It Runs β Run Report #RR08 Β· Testing what infrastructure actually does.
Provider Β· Component: cert-manager Β· the keystore outputs of a
Certificate(spec.keystores.jks/spec.keystores.pkcs12withcreate: true) β what the keystore entries in the target Secret hold after the keystore password is changed
Versions tested: measured β cert-manager v1.21.2 (current supported release; latest as of 2026-09-11; single version). source-read β the v1.21.2 tag. quoted, not measured β the same API comment at the v1.10.0 and v1.11.0 tags.
Config profile: a single-nodekindcluster (nodekindest/node:v1.33.4, digest-pinned) on a dedicated test environment; a SelfSignedIssuerβCertificates withkeystores.jksandkeystores.pkcs12(profile: Modern2023), bothcreate: true; the keystore password supplied throughpasswordSecretRef(two Certificates) or the inlinepasswordfield (one Certificate); the password changed in place (the referenced Secret updated, the inline field patched); 30-second polling; an observation window of β₯30 minutes; then a manual re-issuance withcmctl renew.
Verified on: 2026-10-13 (desk sources re-checked; cert-manager v1.21.2 was the latest release) Β· lab measured 2026-09-26 on v1.21.2.
Affects: cert-manager v1.21.2Certificates withkeystores.jksorkeystores.pkcs12set tocreate: true: after the keystore password is changed β in the Secret referenced bypasswordSecretRef, or in the inlinepasswordfield β the keystore entries in the target Secret stay encrypted with the previous password until the certificate is next issued (observed for the 30-minute window we watched; beyond it, from the source), while theCertificatestaysReady=True.
TL;DR: On cert-manager v1.21.2, after the keystore password was changed in the Secret referenced bypasswordSecretRef(or in the inlinepasswordfield),keystore.jksandkeystore.p12in the target Secret still opened only with the old password for the whole 30-minute window we watched, while theCertificatestayedReady; re-issuing the certificate switched them to the new password β yet the API reference says the keystore file "will be updated immediately."
Full report: https://whenitruns.substack.com/p/when-a-cert-manager-keystore-runs
Reproduction repo: https://github.com/whenitruns/when-a-cert-manager-keystore-runs-behind-a-password-change
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.