Skip to content

[release-1.18] Fail issuance when certificate public key doesn't match CSR (#8380)#8414

Merged
cert-manager-prow[bot] merged 2 commits intocert-manager:release-1.18from
cert-manager-bot:cherry-pick-8403-to-release-1.18
Jan 19, 2026
Merged

[release-1.18] Fail issuance when certificate public key doesn't match CSR (#8380)#8414
cert-manager-prow[bot] merged 2 commits intocert-manager:release-1.18from
cert-manager-bot:cherry-pick-8403-to-release-1.18

Conversation

@cert-manager-bot
Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #8403

/assign SgtCoDFish

Fixed an infinite re-issuance loop that could occur when an issuer returns a certificate with a public key that doesn't match the CSR. The issuing controller now validates the certificate before storing it and fails with backoff on mismatch.

@cert-manager-prow cert-manager-prow bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 16, 2026
Copy link
Copy Markdown
Member

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve
/kind feature

I asked in slack if people agreed that this was worthy of backporting, and nobody dissented so I'm going to merge this now.

@cert-manager-prow cert-manager-prow bot added kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jan 19, 2026
@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

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 Jan 19, 2026
@cert-manager-prow cert-manager-prow bot merged commit d8fda9c into cert-manager:release-1.18 Jan 19, 2026
6 checks passed
@SgtCoDFish
Copy link
Copy Markdown
Member

I incorrectly tagged this as a feature at first, but it's a bug. Manually changing

@SgtCoDFish SgtCoDFish added kind/bug Categorizes issue or PR as related to a bug. and removed kind/feature Categorizes issue or PR as related to a new feature. labels Feb 2, 2026
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants