-
Notifications
You must be signed in to change notification settings - Fork 896
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
"error loading config: no matching creation rules found" when decrypting from stdin #884
Comments
looks like the same error happens when trying to decrypt any file which path does not match any creation rules in a .sops.yaml file another workaround I just found is to pass an empty file using the sops --config <(echo '') -d $PATH_TO_ENCRYPTED_FILE |
FWIW I was having this issue and actually the solution under #884 (comment) did work for me but more importantly I found I had a |
would a PR be welcome? |
Just wanted to confirm this also worked for me. The difference is that I didn't have a |
Thanks @adrian-gierakowski, I ended up with the following config entry and all works well:
|
Fixed in #1434. |
running following command in a directory containing
.sops.yaml
:results in following error:
This is clearly a bug since creation rules should not be required for decryption.
NOTE: a workaround has been suggested here, however adding a catch-all rule without a key leads to a change of behaviour during encryption: when running
sops some_new_file_not_matching_any_proper_rule
instead of instanterror loading config: no matching creation rules found
, the editor opens and the error only happens when closing/saving the file ([CMD] ERRO[0004] No master keys were provided, so sops can't encrypt the file. Press a key to return to the editor, or Ctrl+C to exit.
)this, together with #594 could be tackled at the same time in order to improve user experience when working with stdin
The text was updated successfully, but these errors were encountered: