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
Decryption fails if file is not in the creation_rules #868
Comments
I was trying to do I suppose the sticking point is:
I will say that, in my case, it would have been helpful if |
SOPS shouldn't use the config file on decryption. It currently tries to load it since the code is somewhat a mess. I'd like to fix this, but I don't want to create yet another conflicting PR to #1391, so I'll wait until that one actually receives some feedback. |
When decrypting a file with
sops -d file.yaml
sops fails witherror loading config: no matching creation rules found
even if the file contains the correct sops metadata. If I add this file to onecreation_rules
or remove the.sops.yaml
file this is working as intended.I was expecting sops not to complain on decryption phase since everything that it needs is present in the metadata. Moreover the key is named
creation_rules
. It's confusing that you need a creation rule to decrypt an existing file.The text was updated successfully, but these errors were encountered: