Conversation
This branch has not been deployed
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.
Adds the optional
nixosModules.identityUnlockmodule so encrypted identities can be unlocked through systemd password agents at boot or during a rebuild with no attached terminal. SSH identities use OpenSSH askpass; passphrase-encrypted native age identities use a pipe into age's batchpass plugin. The unlocked key stays on root-only ramfs and is removed on service stop or failure.The default uses systemd secret installation. Early Userborn/sysusers password secrets require the native age format, because OpenSSH needs a user record before unlocking an SSH key. Documentation covers console/remote password agents, timeouts, retries, source-key updates, and the stage-2 scope.
Validation: three NixOS VMs exercise SSH/native identities, first-boot Userborn password hashes, a real
systemd-run --piperestart, wrong passwords, cancellation, timeout, successful retry, permissions, ramfs cleanup, and absence of the passphrase from process arguments/environment and service logs. All-system test evaluation, formatting, generated shell checks, and the documentation build pass.Stacked on #445, which in turn tests the systemd activation work in #367.
Closes #340.
Closes #371.
AI assistance: implementation, documentation, and tests prepared with Codex. Human review is still required; no claim is made that passing tests substitutes for review.