-
Notifications
You must be signed in to change notification settings - Fork 880
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
Create an encryption/decryption selector #368
Comments
I think Kubernetes is a big enough use case that it might be simpler to just have a Kubernetes-specific store ("format") as we do for plain YAML and JSON files. What you propose is more flexible, but it feels harder to implement to me. |
It may fit another use cases, I don't know, lets see if anybody chips in 👍 :) |
an alternative is to use bitnami sealed-secrets. |
I've seen now there is an --encrypted-regex option. So, using a command like: Would result in:
And that seems to fit this use case I presented two years ago. I feel like this issue is covered and may be closed. Do you agree with me, @autrilla ? Thanks for your hard work :) |
Kind of. While your particular use case is resolved, other possible use cases the selector solution would have solved are not. That said, I'm going to close this, and if someone has a use case that would be covered by the selector solution but are not covered by regexes, they can let us know. |
So, to help creating automatic tools and following diffs, there are parts of a yaml/json file that shouldn't be encrypted, and that cannot be done easily with encrypted/unencrypted_suffix.
My use case is Kubernetes yaml/json secrets definitions. Lets see an example:
Here, the only part that needs to be encrypted is the
data
section. Havingmetadata
,type
and the other sections unencrypted helps to follow changes, especially by people with no permission to encryption, and automatic tools.Doing this with
unencrypted_suffix
is difficult, as I can only select one key.Also, doing it with
encrypted_suffix
is difficult too, as, if I select thedata
suffix, I'll encrypt bothdata
andmetadata
.I can't alter the structure of this yaml, as it's inherent to Kubernetes, so it'd be great to have a feature that would allow me to select just one section of the yaml/json file, something like:
sops --encrypt --encryption-selector '.data' file.yml`
Extra:
The text was updated successfully, but these errors were encountered: