k8wiz
cert-manager
Hard
Security

Since cert-manager v1.21.3, when will the issuing controller use the Secret named in a Certificate's status.nextPrivateKeySecretName?

Select your answer:

Show answer and explanation

Answer: Only when it has the next-private-key label and the Certificate owns it

Explanation

The requestmanager and issuing controllers now only consume that Secret if it carries the cert-manager.io/next-private-key label and is owned by the Certificate. This stops the controller from copying a private key out of a Secret the Certificate doesn't own. The keymanager always uses a generated name and records a NotOwned Warning event when the field names a Secret it doesn't own.

Read more about cert-manager