post-quantum hybrid age keys #7338

Open
ElXreno wants to merge 4 commits from ElXreno/clan-core:feat/post-quantum-age into main
pull from: ElXreno/clan-core:feat/post-quantum-age
First-time contributor

Description of the change

Checklist

  • Ensured documentation is up to date
  • Added tests for all bug fixes and features
  • Doesn't affect backwards compatibility - or check the next points
    • Added the breaking change and migration details to docs/release-notes.md
    • !!! Review from another person is required BEFORE merge !!!

New major features

  • Added major features
    • All features are mentioned in docs/release-notes.md
    • All features are tested sufficiently via:
      • eval tests (for NixOS modules and nix functions)
      • python tests for python API and CLI code
      • VM or container tests for new clan services
## Description of the change <!-- Brief summary of the change if not already clear from the title --> ## Checklist - [x] Ensured documentation is up to date - [x] Added tests for all bug fixes and features - [x] Doesn't affect backwards compatibility - or check the next points - [ ] Added the breaking change and migration details to docs/release-notes.md - !!! Review from another person is required *BEFORE* merge !!! ## New major features - [x] Added major features - [x] All features are mentioned in docs/release-notes.md - [x] All features are tested sufficiently via: - [x] eval tests (for NixOS modules and nix functions) - [x] python tests for python API and CLI code - [x] VM or container tests for new clan services
clan-bot added the
Type
Community Contribution
1
label 2026-04-14 15:15:20 +00:00
Member

@ElXreno thank you for your PR, is there a reason we want to leave post quantum disabled by default?

@ElXreno thank you for your PR, is there a reason we want to leave post quantum disabled by default?
ElXreno marked the pull request as ready for review 2026-04-21 20:24:14 +00:00
ElXreno requested review from lassulus 2026-04-21 20:24:14 +00:00
ElXreno requested review from Mic92 2026-04-21 20:24:14 +00:00
ElXreno requested review from kenji 2026-04-21 20:24:14 +00:00
ElXreno requested review from DavHau 2026-04-21 20:24:14 +00:00
@@ -0,0 +67,4 @@
log.warning(
"Detected %d classical (non-post-quantum) age recipient(s) in %s. "
"Clan now generates post-quantum hybrid keys by default "
"(ML-KEM-768 + X25519). See the migration guide in release-notes.md.",
Member

We should add the migration guide to https://clan.lol/docs/25.11/guides/migrations/convert-existing-NixOS-configuration the folder for the documentation is under docs/

We should add the migration guide to `https://clan.lol/docs/25.11/guides/migrations/convert-existing-NixOS-configuration` the folder for the documentation is under docs/
Author
First-time contributor

Done, thanks!

Done, thanks!
ElXreno requested review from hgl 2026-04-22 15:23:19 +00:00
ElXreno force-pushed feat/post-quantum-age from 17ebe4d938 to 878b28847b 2026-04-22 16:36:40 +00:00 Compare
Member

@ElXreno Sorry I tested it and wanted to create a migration script, but in the end I think I need to test it a bit more and found more bugs to chase down in the age backend, will do so starting next month

@ElXreno Sorry I tested it and wanted to create a migration script, but in the end I think I need to test it a bit more and found more bugs to chase down in the age backend, will do so starting next month
ElXreno force-pushed feat/post-quantum-age from 878b28847b to 4975139bd1 2026-05-06 23:18:20 +00:00 Compare
ElXreno added 4 commits 2026-06-02 10:43:59 +00:00
docs: post-quantum hybrid age keys
PR Size Review Check / pr-size-review-gate (pull_request) Failing after 25s
sizelint on each commit / sizelint (pull_request) Successful in 29s
buildbot/nix-eval Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-test-iso Build done.
buildbot/nix-build Build done.
88174020d9
ElXreno force-pushed feat/post-quantum-age from 4975139bd1 to 88174020d9 2026-06-02 10:43:59 +00:00 Compare
Some checks are pending
PR Size Review Check / pr-size-review-gate (pull_request) Failing after 25s
sizelint on each commit / sizelint (pull_request) Successful in 29s
buildbot/nix-eval Build done.
Required
Details
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-test-iso Build done.
buildbot/nix-build Build done.
Required
Details
gitea-mq
Required
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u https://git.clan.lol/ElXreno/clan-core feat/post-quantum-age:ElXreno-feat/post-quantum-age
git checkout ElXreno-feat/post-quantum-age
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clan/clan-core#7338