Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NixOS initrd secrets fallback support shouldn't run as part of a build #85000

Open
emilazy opened this issue Apr 11, 2020 · 3 comments
Open

NixOS initrd secrets fallback support shouldn't run as part of a build #85000

emilazy opened this issue Apr 11, 2020 · 3 comments
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@emilazy
Copy link
Member

emilazy commented Apr 11, 2020

The script that packs secrets into initrd is run as part of nixos-rebuild when the bootloader supporst initrd secrets, but as part of the system build when it doesn't. This means that sandboxing affects the ability to set options like boot.initrd.ssh.hostKeys = [ "/root/..." ]; that aren't accessible from within the sandbox.

The handling should probably be split up so that it runs separately to the Nix build process regardless of bootloader support, since ideally the Nix builders won't have access to serets.

I believe this is part of the cause for #84976.

@kloenk
Copy link
Member

kloenk commented Aug 13, 2020

What about copying the secrets to /boot, not encrypted?

@stale

This comment was marked as off-topic.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Feb 12, 2021
@emilazy

This comment was marked as off-topic.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

3 participants