sops
sops copied to clipboard
Misleading README.rst regarding .env file partial encryption support
Hi!
So the README.rst states:
Encrypting only parts of a file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: this only works on YAML and JSON files, not on BINARY files.
By default, SOPS encrypts all the values of a YAML or JSON file and leaves the
keys in cleartext. In some instances, you may want to exclude some values from
being encrypted. This can be accomplished by adding the suffix **_unencrypted**
to any key of a file. When set, all values underneath the key that set the
**_unencrypted** suffix will be left in cleartext.
However when testing, we found that ENV files are supported as well.
Is this simply a case that the someone forgot to update the docs or?
Thanks for reporting this!
Is this simply a case that the someone forgot to update the docs
Yes...
I'm happy to make a pull request updating this, if that's convenient for you.
Sorry, I completely forgot to reply... I've created a PR now (#1895) since I also found a few more places...
All good, I also forgot! 😅