Repository navigation
Document the conservative ACME challenge scheduler key - #8781
cert-manager-prow[bot] merged 3 commits into
Conversation
55737fc to
9d7b4ba
Compare
Signed-off-by: Richard Wall <[email protected]>
| limitations under the License. | ||
| */ | ||
|
|
||
| // Package scheduler selects which ACME Challenge resources may be marked |
There was a problem hiding this comment.
I have added package-level documentation here to make the design reasoning easier to find for future maintainers. In particular, this file explains why the scheduler is intentionally conservative about same-name challenges, and why concerns such as multi-tenant isolation and ownership policy are better addressed through admission, approval, policy, or deployment boundaries rather than through scheduler heuristics alone.
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
lunarwhite
left a comment
There was a problem hiding this comment.
/lgtm
It looks really crystal clear to me. Thanks for taking the time to write this up.
There was a problem hiding this comment.
Pull request overview
This PR removes outdated TODO comments in the ACME challenge scheduler and replaces them with explicit documentation explaining why the scheduler’s conflict key intentionally remains conservative (keyed only by DNS name + ACME challenge type), reflecting the externally observable ACME validation target rather than internal solver backend configuration.
Changes:
- Replaces outdated TODOs in
compareChallengeswith rationale for a coarse conflict key (DNS name + challenge type). - Updates inline scheduler comments to consistently describe “DNS name and type” rather than “domain and solver type”.
- Adds package-level documentation (
doc.go) describing scheduler scope/limitations and the conservative conflict-key rationale.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/controller/acmechallenges/scheduler/scheduler.go | Replaces TODOs and updates comments to document the intentionally conservative scheduling key semantics. |
| pkg/controller/acmechallenges/scheduler/doc.go | Adds package documentation describing scheduler responsibilities and why conflict detection ignores solver backend differences. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
erikgb
left a comment
There was a problem hiding this comment.
/lgtm
/approve
Thanks, Richard! I see no reason to delay merging this!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erikgb, lunarwhite The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test pull-cert-manager-master-e2e-v1-36 |
|
/kind documentation |
What this PR does
Removes outdated TODO comments in the ACME challenge scheduler and replaces them with documentation explaining why the scheduling key is intentionally conservative.
Related to #8643.
The scheduler currently treats challenges with the same DNS name and challenge type as conflicting, regardless of solver backend. This PR documents the reasoning: different ingress classes, gateways, or DNS providers do not reliably imply independent ACME-visible validation paths.
Related website documentation update: cert-manager/website#2097.
Why
After revisiting the original TODOs, we concluded that the scheduler key should reflect the externally observable validation target, not cert-manager's internal solver configuration:
_acme-challengenameKeeping the key coarse avoids making topology-specific assumptions that are not generally valid.
Release note