Open benjefferies opened 4 years ago
That file (PeMph9_etcd-browser-aws.yaml
) is encrypted, right? If so, SOPS should not care about creation rules at all. I have a feeling this might have been fixed by #662.
Good point it's encrypted so it should have all it's metadata. I'll build master and test the fix you suggest
I've rebuilt the binary on develop branch and it's still an issue
I managed to reproduce, and this is definitely a bug. #667 is a very naive attempt at fixing it, and indeed it should for your case. But I imagine we made not finding a matching creation rule an error for a reason.
Greetings, any progress on this? If not, do you know if I could put .sops
file in subfolders per environment vs root folder and then no path_regex
would be needed?
Greetings, any progress on this? If not, do you know if I could put
.sops
file in subfolders per environment vs root folder and then nopath_regex
would be needed?
No progress. SOPS will look for the .sops.yaml
file in the current working directory, so you'd have to run git diff for each directory, but that sould work.
Description
When using git diff with path_regex it fails to match any paths. This appears to be because
git diff
will create a temp file (for textconv?). Sops will then try to decrypt that file using the .sops.yaml configuration. The temp file does not match the path_regex so it fails.I've hacked the sops source to get some debugging to see what's going on and this shows the events