Repository navigation
[release-1.21] Do not fail issuance for a request built from a replaced key - #9554
Merged
cert-manager-prow[bot] merged 1 commit intoNov 23, 2026
Conversation
Manual cherry-pick of cert-manager#9116 to release-1.21. The two new test cases use nextPrivateKeySecretMeta, as master does since cert-manager#9224, because cert-manager#9368 is already on this branch and the issuing controller ignores a next private key Secret that the Certificate does not own. (cherry picked from commit fadd523) Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Richard Wall <[email protected]>
18 tasks
Member
|
/lgtm |
Member
Author
|
/approve |
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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cert-manager-prow
Bot
merged commit Nov 23, 2026
87a67c6
into
cert-manager:release-1.21
6 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Motivation
Manual cherry-pick of #9116 to release-1.21, for v1.21.4.
A user has now hit #6331 on v1.21.2 with the in-tree SelfSigned issuer: #9324 (comment). Their webhook was down for the whole one hour failed-issuance backoff because a CertificateRequest signed with a replaced key was counted as a failed issuance. The analysis is in my reply there: #9324 (comment).
#9116 moves the key-mismatch check in the issuing controller above the
Denied,InvalidRequestandFailedbranches, so a stale request is left for the requestmanager to delete and rebuild instead of starting a backoff.Prow's
/cherry-pickcannot apply it because the test file conflicts. The conflict is unrelated to this change: the surrounding test case on release-1.21 comes from #9238 (the backport of #9118), which master has in a different place. The production file applies cleanly.The resulting diff is the #9116 diff with two adjustments to the test file:
nextPrivateKeySecretMeta, as master has done since Only consume next private key Secrets owned by the Certificate #9224. [release-1.21] Only consume next private key Secrets owned by the Certificate #9368 (the backport of Only consume next private key Secrets owned by the Certificate #9224) is already on this branch, and with it the issuing controller ignores a Secret the Certificate does not own, so the original fix(issuing): do not fail issuance for a request built from a replaced key #9116 fixture never reached the branch under test. I found this because reverting the production change did not make the cases fail.Verification on this branch
go test -race ./pkg/controller/certificates/issuing/passes.issuing_controller.gofails exactly the two new test cases, as it does on master.Kind
/kind bug
Release Note
[Claude Fable 5.1]