When using sops filestatus <filename> the response is either {"encrypted":true} or {"encrypted":false}.
There is no indication as to whether or not it would have an encryption applied or not based on creation_rules defined in .sops.yaml.
If the file is not encrypted and it doesn't match any of the creation_rules then filestatus should return either an empty response {} or some other flag, e.g. {"ignored":true}.
This would make linting extremely easy and not require an external function trying to emulate the sops logic.
When using
sops filestatus <filename>the response is either{"encrypted":true}or{"encrypted":false}.There is no indication as to whether or not it would have an encryption applied or not based on
creation_rulesdefined in.sops.yaml.If the file is not encrypted and it doesn't match any of the
creation_rulesthenfilestatusshould return either an empty response{}or some other flag, e.g.{"ignored":true}.This would make linting extremely easy and not require an external function trying to emulate the sops logic.