Skip to content

Add renewal policy scenarios and link release notes to docs - #2210

Merged
cert-manager-prow[bot] merged 4 commits into
cert-manager:masterfrom
wallrj-cyberark:docs-renewal-policy-scenarios
Aug 8, 2026
Merged

cert-manager-prow[bot] merged 4 commits into
cert-manager:masterfrom
wallrj-cyberark:docs-renewal-policy-scenarios

Conversation

@wallrj-cyberark

@wallrj-cyberark wallrj-cyberark commented Jul 17, 2026 •

Copy link
Copy Markdown
Member

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.

  • Realistic scenarios, drawn from the original feature request (Schedule certificate renewal outside business hours cert-manager#6754) so that each matches the feature's actual semantics — windows express a preference, not a guarantee, because cert-manager falls back to renewing at the calculated renewal time when no valid window exists before expiry:
    • 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 Schedule certificate renewal outside business hours 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 renewBefore slack, so a valid window always exists before expiry.
  • Release notes fix: the existing v1.21 release notes entry referenced a renewalPolicies field which doesn't exist — the actual API field is spec.renewal — and linked the implementation PR (feat(certificate): renewal policy and windows code cert-manager#8258) rather than user-facing documentation. Updated to link the relevant section of certificate.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 renewBefore leaves 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 #2210 (comment) for details.

Test plan

  • npm run check:spelling, npm run check:markdown and npm run check:links pass locally on the two changed files.
  • Netlify deploy preview (linked above): the "Realistic scenarios" section renders correctly and the #renewal-policies-and-renewal-windows anchor resolves; times inside fenced YAML blocks are unaffected by the MDX emoji-shortcode pipeline, matching the existing pattern earlier in the same file.

@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 17, 2026
@netlify

netlify Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cert-manager ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6019705
🔍 Latest deploy log https://app.netlify.com/projects/cert-manager/deploys/6a77664f1797a900089889b7
😎 Deploy Preview https://deploy-preview-2210--cert-manager.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread content/docs/usage/certificate.md Resolved
Comment thread content/docs/usage/certificate.md Resolved
Comment thread content/docs/usage/certificate.md Resolved
Comment thread content/docs/usage/certificate.md Resolved
Comment thread content/docs/usage/certificate.md Resolved
Comment thread content/docs/usage/certificate.md Resolved
wallrj-cyberark and others added 2 commits July 28, 2026 08:37
Add worked, realistic scenarios (change-control windows, coordinating
rotation with paired systems, avoiding renewal during a traffic freeze,
and disabling renewal for manually-managed root CAs) to the existing
renewal policies and renewal windows documentation.

Also fix the v1.21 release notes entry for this feature: it referenced
a non-existent `renewalPolicies` field (the actual field is
`spec.renewal`), and linked to the implementation PR rather than to
the user-facing documentation.

Signed-off-by: Richard Wall <[email protected]>
Co-authored-by: Hemant Joshi <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@wallrj-cyberark
wallrj-cyberark force-pushed the docs-renewal-policy-scenarios branch from 5e7b251 to 8f82fd2 Compare July 28, 2026 15:37
@cert-manager-prow cert-manager-prow Bot added dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. and removed dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Aug 8, 2026
@wallrj

wallrj commented Aug 8, 2026

Copy link
Copy Markdown
Member

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

The change-freeze and paired-system scenarios promised hard guarantees
that the desiredRenewalTime fallback deliberately breaks: a weekly cron
cannot exclude a freeze week, and a monthly window with 30d renewBefore
has a dead zone in 31-day months. Replace them with the use cases that
motivated the feature in cert-manager#6754 (renewal-triggered restarts
rolling a Kafka cluster at peak load) and staffed-hours renewal, and add
a guideline on window recurrence versus renewBefore slack.

Also scope the policy: Disabled claim to automatic renewal, since other
reissuance triggers still apply, and link the rehype-slug heading anchor
from the release notes instead of adding a duplicate anchor.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@wallrj
wallrj force-pushed the docs-renewal-policy-scenarios branch from 833557f to fb2b31d Compare August 8, 2026 13:30
@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. and removed dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. labels Aug 8, 2026
Bare HH:MM times in prose are converted to empty divs by the MDX
pipeline, breaking the paragraph layout. Inline code is unaffected,
matching the existing pattern used earlier in the same file.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@wallrj

wallrj commented Aug 8, 2026

Copy link
Copy Markdown
Member

/label tide/merge-method-squash

@cert-manager-prow cert-manager-prow Bot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Aug 8, 2026
@wallrj

wallrj commented Aug 8, 2026

Copy link
Copy Markdown
Member

/lgtm
/approve

with claude fable-5

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 8, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wallrj

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

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 8, 2026
@cert-manager-prow
cert-manager-prow Bot merged commit 979f404 into cert-manager:master Aug 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants