Skip to content

Bump the test cert-manager to v1.21.3 and trust-manager to v0.26.0 - #4830

Merged
knative-prow[bot] merged 1 commit into
mainfrom
gauron99/cert-manager-v1.21.3
Oct 27, 2026
Merged

knative-prow[bot] merged 1 commit into
mainfrom
gauron99/cert-manager-v1.21.3

Conversation

@gauron99

@gauron99 gauron99 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

cert-manager v1.20 can store two private keys for one new Certificate when its cache lags behind. It then checks the request against the wrong key, fails it with "CSR not signed by referenced private key", and waits 1 hour before it tries again (cert-manager/cert-manager#6331). The e2e setup waits about 5 minutes for trust-manager, so the job fails with "Failed to install trust manager" before any test runs.

Since v1.21.0 the keymanager reads the Certificate and its key Secret from the API server before it creates a key, so it does not make a second one.

Seen 4 times in the last week, each with two temporary key Secrets and failedIssuanceAttempts: 1 in the cluster dump:

Outside the CRDs, the cert-manager manifest changes only in two places: v1.21 removes the cert-manager-tokenrequest Role and RoleBinding, and renames the metrics Service port to http-metrics. The tests use neither.

trust-manager goes from v0.24.0 to v0.26.0. v0.25.0 injects the webhook CA from the trust-manager-tls Secret instead of through the Certificate, and v0.26.0 drops the compromised eMudhra roots from the default CA package. The Bundle CRD still serves v1alpha1, which the eventing TLS Bundle uses, and that Bundle does not use the default CAs.

cc @dsimansk

@knative-prow knative-prow Bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 27, 2026
@knative-prow
knative-prow Bot requested review from aliok and pierDipi October 27, 2026 14:41
@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 27, 2026
Comment thread hack/update-codegen.sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[shellcheck (suggestion)] reported by reviewdog 🐶

source "$(dirname $0)"/../vendor/knative.dev/hack/codegen-library.sh

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 29.20%. Comparing base (65c262d) to head (ab93b38).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4830      +/-   ##
==========================================
- Coverage   29.22%   29.20%   -0.02%     
==========================================
  Files         296      296              
  Lines       16402    16402              
==========================================
- Hits         4793     4791       -2     
- Misses      11146    11147       +1     
- Partials      463      464       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gauron99

Copy link
Copy Markdown
Contributor Author

/retest

@dsimansk

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2026
cert-manager v1.20 can store two private keys for one new Certificate
when its cache lags behind. It then checks the request against the
wrong key, fails it with "CSR not signed by referenced private key",
and waits 1 hour before it tries again (cert-manager/cert-manager#6331).
The e2e setup waits about 5 minutes for trust-manager, so the job fails
with "Failed to install trust manager". This failed #4807, #4808, #4820
and #4828 between 2026-10-20 and 2026-10-27.

Since v1.21.0 the keymanager reads the Certificate and its key Secret
from the API server before it creates a key, so it does not make a
second one.

v1.21 also removes the cert-manager-tokenrequest Role and RoleBinding
and renames the metrics Service port to http-metrics. The tests use
neither.

trust-manager v0.25.0 injects the webhook CA from the trust-manager-tls
Secret instead of through the Certificate. v0.26.0 drops the
compromised eMudhra roots from the default CA package. The Bundle
CRD still serves v1alpha1, which the eventing TLS Bundle uses, and that
Bundle does not use the default CAs.
@gauron99
gauron99 force-pushed the gauron99/cert-manager-v1.21.3 branch from 0b2370f to ab93b38 Compare October 27, 2026 17:14
@knative-prow knative-prow Bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2026
@gauron99 gauron99 changed the title Bump the test cert-manager to v1.21.3 Bump the test cert-manager to v1.21.3 and trust-manager to v0.26.0 Oct 27, 2026
@gauron99

Copy link
Copy Markdown
Contributor Author

/retest

@dsimansk

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2026
@knative-prow

knative-prow Bot commented Oct 27, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk, gauron99

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

@knative-prow
knative-prow Bot merged commit 0784cb6 into main Oct 27, 2026
33 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. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants