Repository navigation
cluster: one-click upgrade to post-quantum certificates - #721
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Nick · project thread
Summary
Last PR of the post-quantum work. It adds a one-click upgrade for clusters made before #720, so they get the ML-DSA certificates without regenerating their PKI.
pq_certificatesin the manifest. Older releases ignore it.certificates.AddClusterPQ. That adds an ML-DSA CA to the anchor and an ML-DSA node certificate with the same names and expiry as the classical one. The node then reloads its HTTPS certificate and adopts the new anchor in memory, so no restart is needed. The anchor reaches the manifest through the next heartbeat, or straight away on the primary.ErrNotGeneratedClusterPKI. It's skipped and not retried.POST /ui/cluster/pq-certificatesrequirescluster.write.Screenshots
Confirm dialog:
Phone width:
Compatibility
Verification
cluster_pq_test.go: upgrades a classical PKI, checking that the anchor keeps its classical CA first, the classical certificate is unchanged, and the companion verifies against the new CA with the same names. A second upgrade changes nothing. Imported or foreign certificates are refused.pq_certificates_test.go:cluster_pq_certificates_test.go: the card's states, a refusal while a node is outdated, and enabling.go test ./internal/certificates ./internal/cluster ./internal/web ./internal/app ./docs,gofmt -l .,go vet, andgo tool mage verifyon the stacked branch.Generated by Claude Code