Add renewal policy scenarios and link release notes to docs #2210
<span aria-hidden="true">✅</span> Deploy Preview for cert-manager ready!
Built without sensitive environment variables
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 6019705cd10dcac0389218c1572c960790ed855e |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/cert-manager/deploys/6a77664f1797a900089889b7 |
|<span aria-hidden="true">😎</span> Deploy Preview | https://deploy-preview-2210--cert-manager.netlify.app |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />!QR Code<br /><br />_Use your smartphone camera to open QR code link._</details> |
---
<!-- cert-manager Preview -->
_To edit notification comments on pull requests, go to your Netlify project configuration._
**Coordinating rotation with a paired system:** Some certificates are consumed by more than one
downstream automation can reliably run immediately afterwards.
**Avoiding renewal during a traffic freeze:** A retailer running a change freeze during a
matching window after the freeze ends, provided one still exists before the certificate expires.
unattended rotation of it.
**Manually-managed root and intermediate CAs:** A root or long-lived intermediate CA certificate
I've replaced the change-freeze and paired-system scenarios: both promised guarantees that the desiredRenewalTime fallback deliberately breaks (a 5-field cron can't exclude a freeze week, and a monthly window with 30d renewBefore leaves a dead zone in 31-day months). The scenarios are now the ones with real users behind them — renewal-triggered restarts rolling a Kafka cluster at peak load (#6754, the original request) and staffed-hours renewal, mirroring RDS/GKE maintenance windows — plus a note that windows must recur more often than the renewBefore slack, and that they express a preference, not a guarantee.
Also scoped the policy: Disabled claim to automatic renewal (other reissuance triggers still apply) and linked the auto-generated heading anchor from the release notes instead of adding a duplicate.
with claude fable-5
/label tide/merge-method-squash
/lgtm
/approve
with claude fable-5
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/cert-manager/website/pull/2210#issuecomment-5227281336" title="Approved">wallrj</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
hjoshi123
wallrj-cyberark
Preview: https://deploy-preview-2210--cert-manager.netlify.app/docs/usage/certificate/#renewal-policies-and-renewal-windows
Summary
Adds worked, realistic scenarios to the "Renewal policies and renewal windows" documentation (added in #2018 for the v1.21 release), and fixes the v1.21 release notes entry for the feature.
- Renewing outside business hours: for workloads that restart when their certificate is renewed (Stakater Reloader, Strimzi), where renewal timing is outage timing — including the production Kafka outage reported in cert-manager/cert-manager#6754.
- Renewing during staffed hours: so failures surface while engineers are at their desks, mirroring the preferred maintenance windows of managed services such as Amazon RDS and GKE.
- Manually-managed root and intermediate CAs:
policy: Disabled, with the claim scoped to automatic renewal since other reissuance triggers (spec changes, deleted Secret,cmctl renew) still apply.- A note advising that windows must recur comfortably more often than the effective
renewBeforeslack, so a valid window always exists before expiry.renewalPoliciesfield which doesn't exist — the actual API field isspec.renewal— and linked the implementation PR (cert-manager/cert-manager#8258) rather than user-facing documentation. Updated to link the relevant section ofcertificate.md, using the heading anchor generated by rehype-slug rather than adding a duplicate explicit anchor.Motivation
While triaging cert-manager/cert-manager#9031 (a crash-loop bug specific to
renewal.policy: Disabled, introduced by the same feature), I noticed the release notes pointed at the implementation PR rather than the docs, and the docs' motivation for the feature was a single terse line with no worked examples.An earlier revision of this PR invented scenarios (change freezes, coordinating rotation with a paired HSM/partner system) that promised hard guarantees the feature's fallback behaviour deliberately breaks. Review found those examples broken — a 5-field cron cannot exclude a freeze week, and a monthly window with 30d
renewBeforeleaves a dead zone in 31-day months — so they were replaced with the use cases real users actually asked for in cert-manager/cert-manager#6754. See https://github.com/cert-manager/website/pull/2210#issuecomment-5226307126 for details.Test plan
npm run check:spelling,npm run check:markdownandnpm run check:linkspass locally on the two changed files.#renewal-policies-and-renewal-windowsanchor resolves; times inside fenced YAML blocks are unaffected by the MDX emoji-shortcode pipeline, matching the existing pattern earlier in the same file.