Repository navigation
feat: Adds ML-DSA post-quantum signature algorithm support - #8527
siddhibhor-56 wants to merge 1 commit into
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @siddhibhor-56. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
1e5c03c to
8ed4a07
Compare
|
/kind feature |
|
Issues go stale after 6 months of inactivity. |
|
/remove-lifecycle stale This is being tracked through #8929 |
8ed4a07 to
9ca1c04
Compare
Signed-off-by: siddhi bhor <[email protected]>
9ca1c04 to
447a64c
Compare
Address review feedback on cert-manager#9436: - Move the go directive to 1.27 in every go.mod instead of using a go1.27 build tag; drop the stub, internal/mldsa and min-Go CI jobs - Build on cert-manager#8527, which now uses the standard library, and list what it still needs (MLDSA with size, ML-DSA-87, restored checks.go mismatch checks, feature gate, webhook validation, tests) - Note maintainer agreement on the default parameter set (44) and openness to using the size field - Describe the preparatory PR (go.mod bump plus safety checks) and the GODEBUG and lint impact of Go 1.27 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felix Phipps <[email protected]>
|
Hi @siddhibhor-56, thanks for this PR, and for moving it from circl to the standard library. Some context on where things are now: master builds with Go 1.27 and #9440 has moved the I've compared the PR with the design. This is what it still needs: API
Correctness
Housekeeping
Tests Thanks again for the PR and I look forward to working with you! |
Add a design for supporting ML-DSA private keys and signatures in cert-manager, using the Go 1.27 standard library (crypto/mldsa and the ML-DSA support in crypto/x509). The proposal covers: - API: privateKey.algorithm "MLDSA" with size 44/65/87 (default 44), and MLDSA44/MLDSA65/MLDSA87 signature algorithms - An alpha MLDSAPrivateKeys feature gate for the controller and webhook - Keeping the go.mod directive at 1.26 and placing ML-DSA code behind a go1.27 build tag, so library consumers can stay on Go 1.26 - SelfSigned, CA and Kubernetes CSR signer support; other issuers receive the CSR unchanged and never fall back to a classical key - Lifecycle, keystore, size limit, upgrade/downgrade and test plans - Prototype measurements and answers to the questions raised in #8929 Supersedes the approach taken in #8527 (cloudflare/circl and hand-built ASN.1) in favour of the standard library. Ref: #8929 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felix Phipps <[email protected]>
|
Hi @siddhibhor-56, an update on my earlier comment. The design (#9436) has now merged, and the rework it needed turned out to be large: the API changed to #9469 is in review now. Your review there would be very welcome, especially as you know this code well. Once #9469 merges, I think this PR can be closed as superseded, but I'll leave that to you and the maintainers. Thanks again for getting this started, and for moving it from circl to the standard library! |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Supplanted by #9469 |
Pull Request Motivation
This PR adds ML-DSA-65 (Module-Lattice-Based Digital Signature Algorithm, security level 3) support to cert-manager as a proof of concept. It introduces MLDSA65 as a new PrivateKeyAlgorithm and PureMLDSA65 as a new SignatureAlgorithm, enabling cert-manager to generate ML-DSA-65 key pairs, create and parse CSRs, and sign certificates using this post-quantum scheme.
Since Go's standard crypto/x509 library does not yet support ML-DSA, this implementation uses cloudflare/circl and manually constructs the ASN.1 structures for CSRs and certificates using the FIPS 204 OID (2.16.840.1.101.3.4.3.18).
This PR covers SelfSigned and CA issuers only
Kind
feature