Repository navigation
Compare decoded RSA keys with Equal to fix a flaky test - #764
Conversation
Test_WriteKeypair and Test_Create compared a generated rsa.PrivateKey with one parsed back out of a PKCS#12 bundle using assert.Equal, which uses reflect.DeepEqual. Since Go 1.24 an rsa.PrivateKey holds an unexported FIPS key whose precomputed dP, dQ and qInv values are stored fixed-width when the key is generated but minimal-width when the key is parsed. Whenever one of those values has a leading zero byte, roughly one key in a hundred, the two keys are not deeply equal even though they are the same key, and the test fails. Use the key's own Equal method instead, which compares only the mathematical key material. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Richard Wall <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The flaky test comparisons are corrected without unresolved review issues.
Review effort: Lite
Findings: None
What changed in this PR
Fixes flaky RSA private-key comparisons in PKCS#12-related tests by using semantic key equality instead of reflective deep equality.
Changes:
- Replaced deep-equality assertions with RSA key
Equalcomparisons. - Added comments explaining representation differences in newer Go versions.
| File | Description |
|---|---|
pkg/keystore/pkcs12/pkcs12_test.go |
Uses key-specific equality for decoded keys. |
pkg/filestore/writer_test.go |
Avoids flaky reflective comparisons for decoded RSA keys. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
erikgb
left a comment
There was a problem hiding this comment.
/lgtm
/approve
Thanks, Richard!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erikgb 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 |
…er (v0.16.0 ➔ v0.16.1) (#2437) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [quay.io/jetstack/charts/cert-manager-csi-driver](https://cert-manager.io/docs/usage/csi-driver) ([source](https://github.com/cert-manager/csi-driver)) | HelmChart | patch | `v0.16.0` → `v0.16.1` | --- ### Release Notes <details> <summary>cert-manager/csi-driver (quay.io/jetstack/charts/cert-manager-csi-driver)</summary> ### [`v0.16.1`](https://github.com/cert-manager/csi-driver/releases/tag/v0.16.1) [Compare Source](cert-manager/csi-driver@v0.16.0...v0.16.1) cert-manager-csi-driver enables issuing secretless X.509 certificates for pods using cert-manager! This release is a security patch particularly motivated by the eMudhra compromised intermediate certificates leading to a distrust. All users should upgrade! #### What's Changed - chore(deps): update makefile modules to [`b41c15b`](cert-manager/csi-driver@b41c15b) by [@​renovate](https://github.com/renovate)\[bot] in [#​719](cert-manager/csi-driver#719) - chore(deps): update makefile modules to [`7443000`](cert-manager/csi-driver@7443000) by [@​renovate](https://github.com/renovate)\[bot] in [#​720](cert-manager/csi-driver#720) - fix(deps): update k8s.io/utils digest to [`cf1189d`](cert-manager/csi-driver@cf1189d) by [@​renovate](https://github.com/renovate)\[bot] in [#​721](cert-manager/csi-driver#721) - chore(deps): update makefile modules to [`a09232d`](cert-manager/csi-driver@a09232d) by [@​renovate](https://github.com/renovate)\[bot] in [#​722](cert-manager/csi-driver#722) - chore(deps): update makefile modules to [`2c4a3b8`](cert-manager/csi-driver@2c4a3b8) by [@​renovate](https://github.com/renovate)\[bot] in [#​723](cert-manager/csi-driver#723) - chore(deps): update module golang.org/x/mod to v0.40.0 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​724](cert-manager/csi-driver#724) - fix(deps): update module github.com/onsi/ginkgo/v2 to v2.32.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​725](cert-manager/csi-driver#725) - chore(deps): update makefile modules to [`b514cb5`](cert-manager/csi-driver@b514cb5) by [@​renovate](https://github.com/renovate)\[bot] in [#​726](cert-manager/csi-driver#726) - fix(deps): update module github.com/stretchr/testify to v1.12.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​727](cert-manager/csi-driver#727) - chore(deps): update makefile modules to [`24aa843`](cert-manager/csi-driver@24aa843) by [@​renovate](https://github.com/renovate)\[bot] in [#​728](cert-manager/csi-driver#728) - chore(deps): update makefile modules to [`7c9c959`](cert-manager/csi-driver@7c9c959) by [@​renovate](https://github.com/renovate)\[bot] in [#​729](cert-manager/csi-driver#729) - chore(deps): update makefile modules to [`ca8dd5c`](cert-manager/csi-driver@ca8dd5c) by [@​renovate](https://github.com/renovate)\[bot] in [#​730](cert-manager/csi-driver#730) - chore(deps): update makefile modules to [`4dc1d67`](cert-manager/csi-driver@4dc1d67) by [@​renovate](https://github.com/renovate)\[bot] in [#​731](cert-manager/csi-driver#731) - chore(deps): update makefile modules to [`b903033`](cert-manager/csi-driver@b903033) by [@​renovate](https://github.com/renovate)\[bot] in [#​732](cert-manager/csi-driver#732) - chore(deps): update makefile modules to [`62d18d0`](cert-manager/csi-driver@62d18d0) by [@​renovate](https://github.com/renovate)\[bot] in [#​734](cert-manager/csi-driver#734) - fix(deps): update kubernetes go patches to v0.36.4 by [@​renovate](https://github.com/renovate)\[bot] in [#​735](cert-manager/csi-driver#735) - chore(deps): update makefile modules to [`4c69ed4`](cert-manager/csi-driver@4c69ed4) by [@​renovate](https://github.com/renovate)\[bot] in [#​736](cert-manager/csi-driver#736) - chore(deps): update makefile modules to [`555e973`](cert-manager/csi-driver@555e973) by [@​renovate](https://github.com/renovate)\[bot] in [#​737](cert-manager/csi-driver#737) - chore(deps): update makefile modules to [`c236200`](cert-manager/csi-driver@c236200) by [@​renovate](https://github.com/renovate)\[bot] in [#​738](cert-manager/csi-driver#738) - fix(deps): update module github.com/stretchr/testify to v1.12.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​733](cert-manager/csi-driver#733) - fix(deps): update kubernetes go deps to v0.37.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​739](cert-manager/csi-driver#739) - chore(deps): update makefile modules to [`1745d14`](cert-manager/csi-driver@1745d14) by [@​renovate](https://github.com/renovate)\[bot] in [#​740](cert-manager/csi-driver#740) - fix(deps): update module github.com/onsi/gomega to v1.43.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​741](cert-manager/csi-driver#741) - chore(deps): update module google.golang.org/grpc to v1.83.1 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​742](cert-manager/csi-driver#742) - chore(deps): update makefile modules to [`44a7b02`](cert-manager/csi-driver@44a7b02) by [@​renovate](https://github.com/renovate)\[bot] in [#​744](cert-manager/csi-driver#744) - chore(deps): update module golang.org/x/crypto to v0.56.0 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​745](cert-manager/csi-driver#745) - chore(deps): update makefile modules to [`7b9a8ef`](cert-manager/csi-driver@7b9a8ef) by [@​renovate](https://github.com/renovate)\[bot] in [#​747](cert-manager/csi-driver#747) - fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​748](cert-manager/csi-driver#748) - chore(deps): update makefile modules to [`667adb4`](cert-manager/csi-driver@667adb4) by [@​renovate](https://github.com/renovate)\[bot] in [#​749](cert-manager/csi-driver#749) - chore(deps): update makefile modules to [`3db3dfa`](cert-manager/csi-driver@3db3dfa) by [@​renovate](https://github.com/renovate)\[bot] in [#​750](cert-manager/csi-driver#750) - chore(deps): update makefile modules to [`3802a00`](cert-manager/csi-driver@3802a00) by [@​renovate](https://github.com/renovate)\[bot] in [#​751](cert-manager/csi-driver#751) - fix(deps): update module golang.org/x/sync to v0.23.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​752](cert-manager/csi-driver#752) - chore(deps): update module google.golang.org/grpc to v1.83.2 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​753](cert-manager/csi-driver#753) - chore(deps): update registry.k8s.io/sig-storage/csi-node-driver-registrar docker tag to v2.18.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​754](cert-manager/csi-driver#754) - chore(deps): update registry.k8s.io/sig-storage/livenessprobe docker tag to v2.20.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​755](cert-manager/csi-driver#755) - fix(deps): update module github.com/cert-manager/cert-manager to v1.21.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​756](cert-manager/csi-driver#756) - chore(deps): update makefile modules to [`11349e7`](cert-manager/csi-driver@11349e7) by [@​renovate](https://github.com/renovate)\[bot] in [#​757](cert-manager/csi-driver#757) - chore(deps): update makefile modules to [`3dee59e`](cert-manager/csi-driver@3dee59e) by [@​renovate](https://github.com/renovate)\[bot] in [#​758](cert-manager/csi-driver#758) - fix(deps): update module github.com/onsi/ginkgo/v2 to v2.32.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​759](cert-manager/csi-driver#759) - chore(deps): update makefile modules to [`56bbaca`](cert-manager/csi-driver@56bbaca) by [@​renovate](https://github.com/renovate)\[bot] in [#​760](cert-manager/csi-driver#760) - chore(deps): update makefile modules to [`d983bab`](cert-manager/csi-driver@d983bab) by [@​renovate](https://github.com/renovate)\[bot] in [#​761](cert-manager/csi-driver#761) - fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​763](cert-manager/csi-driver#763) - chore(deps): update makefile modules to [`91ea1cc`](cert-manager/csi-driver@91ea1cc) by [@​renovate](https://github.com/renovate)\[bot] in [#​762](cert-manager/csi-driver#762) - chore(deps): update makefile modules to [`2215aaf`](cert-manager/csi-driver@2215aaf) by [@​renovate](https://github.com/renovate)\[bot] in [#​765](cert-manager/csi-driver#765) - Compare decoded RSA keys with Equal to fix a flaky test by [@​wallrj](https://github.com/wallrj) in [#​764](cert-manager/csi-driver#764) - fix(deps): update github.com/onsi deps by [@​renovate](https://github.com/renovate)\[bot] in [#​766](cert-manager/csi-driver#766) - chore(deps): update makefile modules to [`4277ca6`](cert-manager/csi-driver@4277ca6) by [@​renovate](https://github.com/renovate)\[bot] in [#​767](cert-manager/csi-driver#767) - chore(deps): update makefile modules to [`aee0ddc`](cert-manager/csi-driver@aee0ddc) by [@​renovate](https://github.com/renovate)\[bot] in [#​768](cert-manager/csi-driver#768) - fix(deps): update kubernetes go patches to v0.37.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​769](cert-manager/csi-driver#769) - fix(deps): update module k8s.io/kubectl to v0.37.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​770](cert-manager/csi-driver#770) - fix(deps): update module github.com/onsi/gomega to v1.44.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​772](cert-manager/csi-driver#772) - chore(deps): update makefile modules to [`9096105`](cert-manager/csi-driver@9096105) by [@​renovate](https://github.com/renovate)\[bot] in [#​771](cert-manager/csi-driver#771) - chore(deps): update makefile modules to [`c153741`](cert-manager/csi-driver@c153741) by [@​renovate](https://github.com/renovate)\[bot] in [#​773](cert-manager/csi-driver#773) - chore(deps): update makefile modules to [`f2fb9c3`](cert-manager/csi-driver@f2fb9c3) by [@​renovate](https://github.com/renovate)\[bot] in [#​774](cert-manager/csi-driver#774) - fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​775](cert-manager/csi-driver#775) - chore(deps): update makefile modules to [`2a76aa9`](cert-manager/csi-driver@2a76aa9) by [@​renovate](https://github.com/renovate)\[bot] in [#​776](cert-manager/csi-driver#776) - chore(deps): update makefile modules to [`82d2ae9`](cert-manager/csi-driver@82d2ae9) by [@​renovate](https://github.com/renovate)\[bot] in [#​777](cert-manager/csi-driver#777) - chore(deps): update makefile modules to [`95c9211`](cert-manager/csi-driver@95c9211) by [@​renovate](https://github.com/renovate)\[bot] in [#​778](cert-manager/csi-driver#778) - chore(deps): update module golang.org/x/net to v0.60.0 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​779](cert-manager/csi-driver#779) - fix(deps): update module golang.org/x/sync to v0.24.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​781](cert-manager/csi-driver#781) - chore(deps): update makefile modules to [`9af7929`](cert-manager/csi-driver@9af7929) by [@​renovate](https://github.com/renovate)\[bot] in [#​780](cert-manager/csi-driver#780) - fix(deps): update module github.com/onsi/ginkgo/v2 to v2.33.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​782](cert-manager/csi-driver#782) - chore(deps): update makefile modules to [`c346b99`](cert-manager/csi-driver@c346b99) by [@​renovate](https://github.com/renovate)\[bot] in [#​784](cert-manager/csi-driver#784) - chore(deps): update makefile modules to [`9c357fd`](cert-manager/csi-driver@9c357fd) by [@​renovate](https://github.com/renovate)\[bot] in [#​786](cert-manager/csi-driver#786) - fix(deps): update module software.sslmate.com/src/go-pkcs12 to v0.7.4 by [@​renovate](https://github.com/renovate)\[bot] in [#​783](cert-manager/csi-driver#783) **Full Changelog**: <cert-manager/csi-driver@v0.16.0...v0.16.1> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNzUuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE3NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/2437
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [quay.io/jetstack/charts/cert-manager](https://cert-manager.io) ([source](https://github.com/cert-manager/cert-manager)) | | patch | `v1.21.2` → `v1.21.3` | | [quay.io/jetstack/charts/cert-manager](https://cert-manager.io) ([source](https://github.com/cert-manager/cert-manager)) | HelmChart | patch | `v1.21.2` → `v1.21.3` | | [quay.io/jetstack/charts/cert-manager-csi-driver](https://cert-manager.io/docs/usage/csi-driver) ([source](https://github.com/cert-manager/csi-driver)) | HelmChart | patch | `v0.16.0` → `v0.16.1` | --- ### Release Notes <details> <summary>cert-manager/cert-manager (quay.io/jetstack/charts/cert-manager)</summary> ### [`v1.21.3`](https://github.com/cert-manager/cert-manager/releases/tag/v1.21.3) [Compare Source](cert-manager/cert-manager@v1.21.2...v1.21.3) cert-manager is the easiest way to automatically manage certificates in Kubernetes and OpenShift clusters. v1.21.3 removes trust in the compromised eMudhra CA (see [eMudhra Compromise](https://cert-manager.io/docs/trust/trust-manager/#emudhra-compromise)). The updated base images no longer include the "emSign ECC Root CA - G3" root certificate. Go 1.26.10 also makes `crypto/x509` reject certificate chains that pass through the compromised intermediates ([CVE-2026-111943](https://pkg.go.dev/vuln/GO-2026-6809)). It also fixes an ACME ARI renewal loop, stops the controller copying a private key from a Secret that the Certificate does not own, and quotes the proxy values in the Helm chart. It updates Go and several dependencies to fix reported security vulnerabilities. All users should upgrade. ##### Changes by Kind ##### Bug or Regression - Added `status.acme.ari.certID` to track issuance of new certs and re-fetch ARI from CA. This fixes a renewal loop where a stale ARI window from the previous certificate triggered repeated re-issuance until the CA rate limit was hit. ([#​9292](cert-manager/cert-manager#9292), [@​hjoshi123](https://github.com/hjoshi123)) - Helm chart: quote the `http_proxy`, `https_proxy` and `no_proxy` values when rendering the controller Deployment env vars, so values like `*.example.com` no longer break the manifest. ([#​9407](cert-manager/cert-manager#9407), [@​pujitha24](https://github.com/pujitha24)) - The `requestmanager` and `issuing` controllers now only consume the Secret named by `status.nextPrivateKeySecretName` when it carries the `cert-manager.io/next-private-key` label and is owned by the Certificate, matching the invariant the `keymanager` controller already enforces. Previously a principal able to write the `certificates/status` subresource, but not to read Secrets, could name any Secret in the namespace and have its private key copied into `spec.secretName`. The `keymanager` controller no longer creates the next private key Secret under the name in `status.nextPrivateKeySecretName`. It always uses a generated name, records a `NotOwned` Warning event when the field names a Secret it does not own, and repoints the field at the Secret it owns rather than deleting that Secret when the two disagree. The Secret named by `spec.secretName` is never treated as a next private key Secret, even if `spec.secretTemplate` labels it as one. ([#​9368](cert-manager/cert-manager#9368), [@​wallrj](https://github.com/wallrj)) ##### Other (Cleanup or Flake) - Upgrade Go to 1.26.9, fixing CVEs in the crypto/tls, net/http, net/textproto and html/template packages. ([#​9444](cert-manager/cert-manager#9444), [@​wallrj-cyberark](https://github.com/wallrj-cyberark)) - Upgrade Go to 1.26.10, fixing a CVE in the crypto/x509 package. ([#​9501](cert-manager/cert-manager#9501), [@​wallrj-cyberark](https://github.com/wallrj-cyberark)) - Bump `golang.org/x/net` to v0.60.0 to fix reported security vulnerabilities ([#​9451](cert-manager/cert-manager#9451)) - Bump `go.opentelemetry.io/otel/exporters/otlp/otlptrace` and `otlptracegrpc` to v1.45.0 to fix a reported security vulnerability ([#​9374](cert-manager/cert-manager#9374), [#​9375](cert-manager/cert-manager#9375)) - Update distroless base images, removing the compromised "emSign ECC Root CA - G3" root certificate ([#​9351](cert-manager/cert-manager#9351), [#​9414](cert-manager/cert-manager#9414), [#​9493](cert-manager/cert-manager#9493), [#​9495](cert-manager/cert-manager#9495)) </details> <details> <summary>cert-manager/csi-driver (quay.io/jetstack/charts/cert-manager-csi-driver)</summary> ### [`v0.16.1`](https://github.com/cert-manager/csi-driver/releases/tag/v0.16.1) [Compare Source](cert-manager/csi-driver@v0.16.0...v0.16.1) cert-manager-csi-driver enables issuing secretless X.509 certificates for pods using cert-manager! This release is a security patch particularly motivated by the eMudhra compromised intermediate certificates leading to a distrust. All users should upgrade! #### What's Changed - chore(deps): update makefile modules to [`b41c15b`](cert-manager/csi-driver@b41c15b) by [@​renovate](https://github.com/renovate)\[bot] in [#​719](cert-manager/csi-driver#719) - chore(deps): update makefile modules to [`7443000`](cert-manager/csi-driver@7443000) by [@​renovate](https://github.com/renovate)\[bot] in [#​720](cert-manager/csi-driver#720) - fix(deps): update k8s.io/utils digest to [`cf1189d`](cert-manager/csi-driver@cf1189d) by [@​renovate](https://github.com/renovate)\[bot] in [#​721](cert-manager/csi-driver#721) - chore(deps): update makefile modules to [`a09232d`](cert-manager/csi-driver@a09232d) by [@​renovate](https://github.com/renovate)\[bot] in [#​722](cert-manager/csi-driver#722) - chore(deps): update makefile modules to [`2c4a3b8`](cert-manager/csi-driver@2c4a3b8) by [@​renovate](https://github.com/renovate)\[bot] in [#​723](cert-manager/csi-driver#723) - chore(deps): update module golang.org/x/mod to v0.40.0 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​724](cert-manager/csi-driver#724) - fix(deps): update module github.com/onsi/ginkgo/v2 to v2.32.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​725](cert-manager/csi-driver#725) - chore(deps): update makefile modules to [`b514cb5`](cert-manager/csi-driver@b514cb5) by [@​renovate](https://github.com/renovate)\[bot] in [#​726](cert-manager/csi-driver#726) - fix(deps): update module github.com/stretchr/testify to v1.12.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​727](cert-manager/csi-driver#727) - chore(deps): update makefile modules to [`24aa843`](cert-manager/csi-driver@24aa843) by [@​renovate](https://github.com/renovate)\[bot] in [#​728](cert-manager/csi-driver#728) - chore(deps): update makefile modules to [`7c9c959`](cert-manager/csi-driver@7c9c959) by [@​renovate](https://github.com/renovate)\[bot] in [#​729](cert-manager/csi-driver#729) - chore(deps): update makefile modules to [`ca8dd5c`](cert-manager/csi-driver@ca8dd5c) by [@​renovate](https://github.com/renovate)\[bot] in [#​730](cert-manager/csi-driver#730) - chore(deps): update makefile modules to [`4dc1d67`](cert-manager/csi-driver@4dc1d67) by [@​renovate](https://github.com/renovate)\[bot] in [#​731](cert-manager/csi-driver#731) - chore(deps): update makefile modules to [`b903033`](cert-manager/csi-driver@b903033) by [@​renovate](https://github.com/renovate)\[bot] in [#​732](cert-manager/csi-driver#732) - chore(deps): update makefile modules to [`62d18d0`](cert-manager/csi-driver@62d18d0) by [@​renovate](https://github.com/renovate)\[bot] in [#​734](cert-manager/csi-driver#734) - fix(deps): update kubernetes go patches to v0.36.4 by [@​renovate](https://github.com/renovate)\[bot] in [#​735](cert-manager/csi-driver#735) - chore(deps): update makefile modules to [`4c69ed4`](cert-manager/csi-driver@4c69ed4) by [@​renovate](https://github.com/renovate)\[bot] in [#​736](cert-manager/csi-driver#736) - chore(deps): update makefile modules to [`555e973`](cert-manager/csi-driver@555e973) by [@​renovate](https://github.com/renovate)\[bot] in [#​737](cert-manager/csi-driver#737) - chore(deps): update makefile modules to [`c236200`](cert-manager/csi-driver@c236200) by [@​renovate](https://github.com/renovate)\[bot] in [#​738](cert-manager/csi-driver#738) - fix(deps): update module github.com/stretchr/testify to v1.12.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​733](cert-manager/csi-driver#733) - fix(deps): update kubernetes go deps to v0.37.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​739](cert-manager/csi-driver#739) - chore(deps): update makefile modules to [`1745d14`](cert-manager/csi-driver@1745d14) by [@​renovate](https://github.com/renovate)\[bot] in [#​740](cert-manager/csi-driver#740) - fix(deps): update module github.com/onsi/gomega to v1.43.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​741](cert-manager/csi-driver#741) - chore(deps): update module google.golang.org/grpc to v1.83.1 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​742](cert-manager/csi-driver#742) - chore(deps): update makefile modules to [`44a7b02`](cert-manager/csi-driver@44a7b02) by [@​renovate](https://github.com/renovate)\[bot] in [#​744](cert-manager/csi-driver#744) - chore(deps): update module golang.org/x/crypto to v0.56.0 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​745](cert-manager/csi-driver#745) - chore(deps): update makefile modules to [`7b9a8ef`](cert-manager/csi-driver@7b9a8ef) by [@​renovate](https://github.com/renovate)\[bot] in [#​747](cert-manager/csi-driver#747) - fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​748](cert-manager/csi-driver#748) - chore(deps): update makefile modules to [`667adb4`](cert-manager/csi-driver@667adb4) by [@​renovate](https://github.com/renovate)\[bot] in [#​749](cert-manager/csi-driver#749) - chore(deps): update makefile modules to [`3db3dfa`](cert-manager/csi-driver@3db3dfa) by [@​renovate](https://github.com/renovate)\[bot] in [#​750](cert-manager/csi-driver#750) - chore(deps): update makefile modules to [`3802a00`](cert-manager/csi-driver@3802a00) by [@​renovate](https://github.com/renovate)\[bot] in [#​751](cert-manager/csi-driver#751) - fix(deps): update module golang.org/x/sync to v0.23.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​752](cert-manager/csi-driver#752) - chore(deps): update module google.golang.org/grpc to v1.83.2 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​753](cert-manager/csi-driver#753) - chore(deps): update registry.k8s.io/sig-storage/csi-node-driver-registrar docker tag to v2.18.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​754](cert-manager/csi-driver#754) - chore(deps): update registry.k8s.io/sig-storage/livenessprobe docker tag to v2.20.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​755](cert-manager/csi-driver#755) - fix(deps): update module github.com/cert-manager/cert-manager to v1.21.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​756](cert-manager/csi-driver#756) - chore(deps): update makefile modules to [`11349e7`](cert-manager/csi-driver@11349e7) by [@​renovate](https://github.com/renovate)\[bot] in [#​757](cert-manager/csi-driver#757) - chore(deps): update makefile modules to [`3dee59e`](cert-manager/csi-driver@3dee59e) by [@​renovate](https://github.com/renovate)\[bot] in [#​758](cert-manager/csi-driver#758) - fix(deps): update module github.com/onsi/ginkgo/v2 to v2.32.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​759](cert-manager/csi-driver#759) - chore(deps): update makefile modules to [`56bbaca`](cert-manager/csi-driver@56bbaca) by [@​renovate](https://github.com/renovate)\[bot] in [#​760](cert-manager/csi-driver#760) - chore(deps): update makefile modules to [`d983bab`](cert-manager/csi-driver@d983bab) by [@​renovate](https://github.com/renovate)\[bot] in [#​761](cert-manager/csi-driver#761) - fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​763](cert-manager/csi-driver#763) - chore(deps): update makefile modules to [`91ea1cc`](cert-manager/csi-driver@91ea1cc) by [@​renovate](https://github.com/renovate)\[bot] in [#​762](cert-manager/csi-driver#762) - chore(deps): update makefile modules to [`2215aaf`](cert-manager/csi-driver@2215aaf) by [@​renovate](https://github.com/renovate)\[bot] in [#​765](cert-manager/csi-driver#765) - Compare decoded RSA keys with Equal to fix a flaky test by [@​wallrj](https://github.com/wallrj) in [#​764](cert-manager/csi-driver#764) - fix(deps): update github.com/onsi deps by [@​renovate](https://github.com/renovate)\[bot] in [#​766](cert-manager/csi-driver#766) - chore(deps): update makefile modules to [`4277ca6`](cert-manager/csi-driver@4277ca6) by [@​renovate](https://github.com/renovate)\[bot] in [#​767](cert-manager/csi-driver#767) - chore(deps): update makefile modules to [`aee0ddc`](cert-manager/csi-driver@aee0ddc) by [@​renovate](https://github.com/renovate)\[bot] in [#​768](cert-manager/csi-driver#768) - fix(deps): update kubernetes go patches to v0.37.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​769](cert-manager/csi-driver#769) - fix(deps): update module k8s.io/kubectl to v0.37.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​770](cert-manager/csi-driver#770) - fix(deps): update module github.com/onsi/gomega to v1.44.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​772](cert-manager/csi-driver#772) - chore(deps): update makefile modules to [`9096105`](cert-manager/csi-driver@9096105) by [@​renovate](https://github.com/renovate)\[bot] in [#​771](cert-manager/csi-driver#771) - chore(deps): update makefile modules to [`c153741`](cert-manager/csi-driver@c153741) by [@​renovate](https://github.com/renovate)\[bot] in [#​773](cert-manager/csi-driver#773) - chore(deps): update makefile modules to [`f2fb9c3`](cert-manager/csi-driver@f2fb9c3) by [@​renovate](https://github.com/renovate)\[bot] in [#​774](cert-manager/csi-driver#774) - fix(deps): update module sigs.k8s.io/controller-runtime to v0.25.2 by [@​renovate](https://github.com/renovate)\[bot] in [#​775](cert-manager/csi-driver#775) - chore(deps): update makefile modules to [`2a76aa9`](cert-manager/csi-driver@2a76aa9) by [@​renovate](https://github.com/renovate)\[bot] in [#​776](cert-manager/csi-driver#776) - chore(deps): update makefile modules to [`82d2ae9`](cert-manager/csi-driver@82d2ae9) by [@​renovate](https://github.com/renovate)\[bot] in [#​777](cert-manager/csi-driver#777) - chore(deps): update makefile modules to [`95c9211`](cert-manager/csi-driver@95c9211) by [@​renovate](https://github.com/renovate)\[bot] in [#​778](cert-manager/csi-driver#778) - chore(deps): update module golang.org/x/net to v0.60.0 \[security] by [@​renovate](https://github.com/renovate)\[bot] in [#​779](cert-manager/csi-driver#779) - fix(deps): update module golang.org/x/sync to v0.24.0 by [@​renovate](https://github.com/renovate)\[bot] in [#​781](cert-manager/csi-driver#781) - chore(deps): update makefile modules to [`9af7929`](cert-manager/csi-driver@9af7929) by [@​renovate](https://github.com/renovate)\[bot] in [#​780](cert-manager/csi-driver#780) - fix(deps): update module github.com/onsi/ginkgo/v2 to v2.33.1 by [@​renovate](https://github.com/renovate)\[bot] in [#​782](cert-manager/csi-driver#782) - chore(deps): update makefile modules to [`c346b99`](cert-manager/csi-driver@c346b99) by [@​renovate](https://github.com/renovate)\[bot] in [#​784](cert-manager/csi-driver#784) - chore(deps): update makefile modules to [`9c357fd`](cert-manager/csi-driver@9c357fd) by [@​renovate](https://github.com/renovate)\[bot] in [#​786](cert-manager/csi-driver#786) - fix(deps): update module software.sslmate.com/src/go-pkcs12 to v0.7.4 by [@​renovate](https://github.com/renovate)\[bot] in [#​783](cert-manager/csi-driver#783) **Full Changelog**: <cert-manager/csi-driver@v0.16.0...v0.16.1> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/London) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNzguNSIsInVwZGF0ZWRJblZlciI6IjQ0LjE3OC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.hayden.moe/hayden/phoebe/pulls/980
Fixes a flaky unit test that failed on #762 and blocked its merge until a retest.
Test_WriteKeypairandTest_Createcompare a generatedrsa.PrivateKeywith one decoded from a PKCS#12 bundle usingassert.Equal, which usesreflect.DeepEqual. The two keys are the same key but are not deeply equal about one time in a hundred. This PR compares them with the key's ownEqualmethod instead.Why does it flake?
Since Go 1.24 an
rsa.PrivateKeyholds an unexported FIPS key. Its precomputeddP,dQandqInvvalues are byte slices, and they are encoded differently depending on how the key was made:big.Int.Bytes(): crypto/rsa/rsa.go#L583-L585Whenever one of those three values has a leading zero byte, the slices differ in length and
reflect.DeepEqualreports the keys as different.rsa.PrivateKey.Equalcompares onlyN,E,Dand the primes: crypto/rsa/rsa.go#L128-L144.Failure from #762 and a standalone repro
The failed job on #762 shows the length mismatch:
This test reproduces it without cert-manager code:
With this PR both packages pass
go test -count=20, andgolangci-lintreports no issues.[Claude Fable 5.1]