-
Notifications
You must be signed in to change notification settings - Fork 50
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
Advice for encrypt secrets that can't be encrypted with sops-nix because they are needed during runtime #23
Comments
Hey! It's my first time hearing of scalpel, it does seem interesting if the service you're using does not support a secrets file, but otherwise seems to be really complex to use (and most services do support a separate secrets file). What's your usecase exactly? sops-nix for home-manager, or simply using a password manager might do the trick. I personally use sops-nix with host SSH keys for system-wide secrets, and |
Hey sorry for the delay! I actually have several secrets that are separate secret files which I encrypted with sops-nix and also user secrets system like, both of which I implemented in a similar way as in your repo. However I actually have one secret in particular that's actually in a .nix module file directly like this
I also use sops-nix with gpg keys that's saved on my Yubikey but I recently stopped using it because I've had issues getting sops-nix to recognize my Yubikey. I know there's some work going on for getting age support added to sops, which would make it much possible to have sops-nix use my Yubikey with the age keys; but will have to wait til that happens. But the main thing I'm wondering is how to get the secrets to be read as the module is being evaluated |
Hey, double extra sorry for the delay, life's been busy and I end up neglecting my issues a bit, apologies :( I think there's not much you can do to read them in eval-time, as sops whole point is they only being decrypted on run-time, never read by the nix evaluator. So you'd have to use it (replace or together) with another secret scheme; perhaps a separate, private repo, a gitignored file, etc. |
Hey, I'm using your config as a template for my own but I have some submodules that have some secrets I want to encrypt within the file (and they must be available at runtime because it's being ran with Home Manager). I came across this utility, scalpel but I have no clue how to incorporate it within the flake (I'm still learning about NixOS but I haven't heard of anyone using this utility before). Do you have any advice for how I can modify the flake file to incorporate the utility? Thanks in advance!
flake.nix
The text was updated successfully, but these errors were encountered: