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

Document age usage #53

Closed
jtrakk opened this issue Dec 17, 2020 · 8 comments · Fixed by #107
Closed

Document age usage #53

jtrakk opened this issue Dec 17, 2020 · 8 comments · Fixed by #107

Comments

@jtrakk
Copy link

jtrakk commented Dec 17, 2020

Sops recently got age support. Is it possible to use age with sops-nix?

@Mic92
Copy link
Owner

Mic92 commented Dec 18, 2020

I have not tested it yet. It should be possible by using SOPS_AGE_KEY_FILE as described here https://github.com/mozilla/sops/pull/688/files#diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168fR181
This would require to also update sops here:

go.mozilla.org/sops/v3 v3.5.0

@jtrakk
Copy link
Author

jtrakk commented Dec 26, 2020

Where should I set the SOPS_AGE_KEY_FILE variable? If I just do it in the shell where I run nixos-rebuild, sops won't see it.

@Mic92
Copy link
Owner

Mic92 commented Dec 28, 2020

I think we need to extend the module and set it here:

${optionalString (cfg.gnupgHome != null) "SOPS_GPG_EXEC=${pkgs.gnupg}/bin/gpg"} ${sops-install-secrets}/bin/sops-install-secrets ${checkedManifest}

@jtrakk
Copy link
Author

jtrakk commented Dec 28, 2020

For reference the good rev is this PR getsops/sops#788 that uses the armor format. The earlier one on sops develop branch doesn't work reliably.

@Mic92
Copy link
Owner

Mic92 commented Dec 29, 2020

I hope I get to implementing converting ssh ed25519 keys to sops/age keys soon similar how it was done for gpg.

@jtrakk
Copy link
Author

jtrakk commented Dec 29, 2020

Age natively supports ssh keys, but the Sops PR that adds Age doesn't include the ssh keys feature.

@Mic92
Copy link
Owner

Mic92 commented Dec 30, 2020

Age natively supports ssh keys, but the Sops PR that adds Age doesn't include the ssh keys feature.

That's not an issue. In my implementation for sops-install-secrets I already do the ssh rsa to pgp key conversion. For age that could be applied in the same way.

@tnytown tnytown mentioned this issue May 5, 2021
@Mic92
Copy link
Owner

Mic92 commented Jul 3, 2021

Proper age support comes here: #95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants