Repository navigation
Upgrade to Pebble v2.7.0 - #7771
cert-manager-prow[bot] merged 15 commits into
Conversation
See https://github.com/letsencrypt/pebble/releases/tag/v2.7.0 Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit c9dabe0)
commented
Jun 1, 2025
|
Skipping CI for Draft Pull Request. |
commented
Jun 1, 2025
|
/test pull-cert-manager-master-e2e-v1-32 |
commented
Jun 1, 2025
|
/test pull-cert-manager-master-e2e-v1-32 |
8c58860 to
2450a00
Compare
commented
Jun 1, 2025
|
/test pull-cert-manager-master-e2e-v1-32 |
2450a00 to
c836ead
Compare
c836ead to
12356d5
Compare
Signed-off-by: Richard Wall <[email protected]>
Pebble drops the CN since letsencrypt/pebble#420 Support may be added back in letsencrypt/pebble#491 Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 487a54f)
This test is identical to an earlier test called: > should obtain a signed certificate with a single CN from the ACME server ...which we are skipping now anyway, because Pebble drops the CN Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 3239a9a)
Pebble drops the CN Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 31b436a)
…usages by default so we need to add them to the list of expected usages. - letsencrypt/pebble#472 - https://github.com/letsencrypt/pebble/releases/tag/v2.7.0 Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 01a2768)
It drops any other KUs that are in the CSR. Make sure that Digital Signature is the only KU we request so that the CSR and the signed certificate match during the verification at the end of the test. - letsencrypt/pebble#472 - https://github.com/letsencrypt/pebble/releases/tag/v2.7.0 Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 62f4c81)
It drops the CN: - letsencrypt/pebble#420 And it drops any other KUs that are in the CSR. Make sure that Digital Signature is the only KU we request so that the CSR and the signed certificate match during the verification at the end of the test. - letsencrypt/pebble#472 - https://github.com/letsencrypt/pebble/releases/tag/v2.7.0 Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 0c50492)
12356d5 to
13794f3
Compare
commented
Jun 1, 2025
|
/kind cleanup |
left a comment
There was a problem hiding this comment.
Pull Request Overview
Upgrades the embedded Pebble ACME test server to v2.7.0 and adapts the E2E and conformance tests to match Pebble’s stricter CSR and certificate behaviors.
- Replace base64-encoded EAB keys with raw secrets and update the Pebble configmap.
- Change PEBBLE_COMMIT to the official v2.7.0 tag and correct download URL.
- Add explicit
SetCertificateRequestKeyUsages(v1.UsageDigitalSignature)and adjust defaultKeyUsagesToAdd logic; skip tests that relied on dropped CN values.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/e2e/suite/issuers/acme/issuer.go | Removed base64 encoding, switched to raw key bytes for EAB. |
| test/e2e/suite/issuers/acme/certificaterequest/http01.go | Skipped CN tests; added digitalSignature usage to all requests. |
| test/e2e/suite/issuers/acme/certificaterequest/dns01.go | Added digitalSignature usage; removed CSR commonName parameters. |
| test/e2e/suite/conformance/certificatesigningrequests/acme/acme.go | Switched EAB secret key to raw string. |
| test/e2e/suite/conformance/certificates/acme/acme.go | Switched EAB secret key to raw string. |
| test/e2e/framework/helper/certificates.go | Updated default EXT key usages: only serverAuth for ACME. |
| make/e2e-setup.mk | Updated PEBBLE_COMMIT to v2.7.0 and corrected download URL. |
| make/config/pebble/chart/templates/configmap.yaml | Updated externalAccountMACKeys to use the new raw HMAC key. |
Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit 833433d)
…h Pebble Signed-off-by: Richard Wall <[email protected]> (cherry picked from commit f4f21a7)
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Because the test helpers now handle these special ACME / Pebble special cases Signed-off-by: Richard Wall <[email protected]>
…of Key Encipherment KU for ECDSA keys Signed-off-by: Richard Wall <[email protected]>
left a comment
There was a problem hiding this comment.
Pull Request Overview
Upgrades the embedded Pebble test server to v2.7.0 (from an older fork) and adjusts ACME E2E tests and helper logic to match Pebble’s updated behavior.
- Switch EAB secrets to use raw 256-bit keys instead of base64 encoding
- Refactor certificate request validation to compute expected key usages per issuer
- Update Makefiles and configmap to point at the new Pebble commit and matching MAC key
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/e2e/suite/issuers/acme/issuer.go | Use raw key bytes for EAB secret |
| test/e2e/suite/conformance/certificatesigningrequests/acme/** | Replace base64-encoded EAB key with raw 256-bit key |
| test/e2e/suite/conformance/certificates/tests.go | Skip CommonName assertion when CN feature unsupported |
| test/e2e/suite/conformance/certificates/acme/acme.go | Use raw key bytes for EAB secret |
| test/e2e/framework/helper/validation/validation.go | Conditionally include CN validation based on feature flags |
| test/e2e/framework/helper/certificates.go | Remove legacy key-usage helper functions |
| test/e2e/framework/helper/certificaterequests.go | Introduce computeExpectedKeyUsages and refactor CSR validation logic |
| make/e2e-setup.mk | Point PEBBLE_COMMIT to new fork supporting Ed25519, update comments |
| make/config/pebble/chart/templates/configmap.yaml | Align externalAccountMACKeys with test secret key |
Comments suppressed due to low confidence (1)
make/e2e-setup.mk:412
- [nitpick] The comments refer both to “@inteon's fork” and “Tim's fork” of Pebble in the same file. Consider using a single consistent reference for clarity.
# We are using Tim's fork of Pebble, which adds support for signing CSRs with
Signed-off-by: Richard Wall <[email protected]>
commented
Jun 3, 2025
|
This is clearly an area that deserves a bit more attention. |
commented
Jun 3, 2025
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The main reason that I'm upgrading Pebble to v2.7.0 is so that I can test ACME profiles in #7752.
We were using a very old version (letsencrypt/pebble@ba5f81d) from 2022, and there have been many changes in Pebble since then which break the cert-manager E2E tests.
Which is why this PR includes the following changes to the verifications and assertions in the E2E tests:
cert-manager/pkg/apis/certmanager/v1/types_certificate.go
Lines 260 to 267 in 0b249a2
The back story is that @inteon had originally tried to upgrade Pebble in #6287, but found that it broke many of the ACME tests.
One thing that broke was that the new Pebble did not accept Ed255519 signatures,
so @inteon create a PR for Pebble, and switched cert-manager to use his fork of Pebble:
But that PR was rejected and there were other ACME test failures so @inteon downgraded Pebble again in 29e834d but forgot to revert the repo address, from inteon, to letsencrypt.
The cert-manager Ed255519 ACME conformance tests passed, because the old version of Pebble lacks strict CSR signature checks.
See https://github.com/letsencrypt/pebble/releases/tag/v2.7.0
(cherry picked from commit c9dabe0)