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

One-way encryption, ad-hoc encryption for users, without private keys #9

Open
psionic-k opened this issue Dec 21, 2020 · 2 comments · May be fixed by #157
Open

One-way encryption, ad-hoc encryption for users, without private keys #9

psionic-k opened this issue Dec 21, 2020 · 2 comments · May be fixed by #157

Comments

@psionic-k
Copy link

The CLI instructions show an edit of an existing secret and having access to private keys necessary to do so. I may want to set up a situation where the ssh private key is unrecoverable by the user who needs to encrypt secrets. In such case, a one-way encryption workflow is necessary. The ad-hoc pathway to get encrypted secrets into the store, if there is one, is not documented on the README and needs to be pulled out of code. A user who can re-encrypt secrets can always control the contents of secrets without needing to access them, a blind edit.

I'm looking into the management of decryption keys still.

This issue is motivated by dotfiles use cases with multiple users, not the root user case.

@ryantm
Copy link
Owner

ryantm commented May 13, 2021

@psionic-k One-way encryption works fine, just don't include your public key in secrets.nix for that secret. What can we do to make this more clear?

@ryantm
Copy link
Owner

ryantm commented May 13, 2021

The way to accomplish a "blind edit" is to first rm the secret file.

ryantm added a commit that referenced this issue Feb 20, 2023
@ryantm ryantm linked a pull request Feb 20, 2023 that will close this issue
ryantm added a commit that referenced this issue Feb 20, 2023
ryantm added a commit that referenced this issue Feb 22, 2023
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