Skip to content

[release-1.21] fix(e2e): randomise CommonName in otherName SAN conformance test - #9058

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:release-1.21from
wallrj-cyberark:fix-tpp-e2e-hardcoded-common-name-release-1.21
Jul 22, 2026
Merged

cert-manager-prow[bot] merged 1 commit into
cert-manager:release-1.21from
wallrj-cyberark:fix-tpp-e2e-hardcoded-common-name-release-1.21

Conversation

@wallrj-cyberark

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

Copy link
Copy Markdown
Member

Clean cherry-pick of #9057 onto release-1.21.

Motivation

The issuers-venafi TPP periodic e2e job has been failing on this branch on every recent run (see testgrid) with the same root cause as master — see #9057 for the full analysis.

Release Note

NONE

The "otherName SAN values / emailAddress" conformance test case used a
hardcoded CommonName ("someCN") instead of a randomised one like every
other CN-setting case in this file.

vcert's TPP connector always sets Reenable=true on certificate
requests, and derives the TPP CertificateDN from the CommonName when
no FriendlyName is set. With a fixed CN, every run of this test across
every branch resolves to the exact same TPP certificate object,
causing concurrent periodic runs (master and release-1.21 run the TPP
e2e suite two minutes apart, every two hours) to collide: one run's
retrieval can pick up a certificate freshly issued for a different
run's key, and vcert's client-side CheckCertificate correctly rejects
it with "unmatched key modulus". This is the same mechanism as
cert-manager#5041.

Signed-off-by: Richard Wall <[email protected]>
@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. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. area/testing Issues relating to testing size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 21, 2026
@wallrj-cyberark

Copy link
Copy Markdown
Member Author

/test pull-cert-manager-release-1.21-e2e-v1-36-issuers-venafi-tpp

@cert-manager-prow cert-manager-prow Bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jul 21, 2026
@wallrj-cyberark

Copy link
Copy Markdown
Member Author

/kind flake

@cert-manager-prow cert-manager-prow Bot added kind/flake Categorizes issue or PR as related to a flaky test. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jul 21, 2026
@wallrj-cyberark

Copy link
Copy Markdown
Member Author

Re-triggering after resolving an issue with the shared TPP test infrastructure. This should be a clean run.

/test pull-cert-manager-release-1.21-e2e-v1-36-issuers-venafi-tpp
/test pull-cert-manager-release-1.21-make-test

@wallrj-cyberark
wallrj-cyberark requested a review from inteon July 22, 2026 11:15
@inteon

inteon commented Jul 22, 2026

Copy link
Copy Markdown
Member

/approve
/lgtm

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

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

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 Jul 22, 2026
@cert-manager-prow
cert-manager-prow Bot merged commit eb6a048 into cert-manager:release-1.21 Jul 22, 2026
7 checks passed
@wallrj wallrj mentioned this pull request Jul 29, 2026
13 tasks done
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. area/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/flake Categorizes issue or PR as related to a flaky test. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants