Open teto opened 3 months ago
Oh. Will take a look asap
Can you share an example with encrypted and clear SOPS files please? And your sops --version
. I can't reproduce as-is.
The problem comes from https://github.com/PierreBeucher/novops/blob/b8e95903a86a7ec0c1593dd368a6ee00a2a6086f/src/modules/sops.rs#L121
This module uses sops --output-type dotenv
option which supposedly outputs lines to stdout
like
KEY=VALUE
FOO=BAR
But for some reason SOPS returns a line on stdout which is not a key=value
pair as expected (it does not contain =
character), hence the issue.
Admittedly this naïve method is not good enough, we should either ignore or error safely on lines not containing =
but I can't find the reason behind this SOPS behavior.
@teto ping :) can you provide the data you used please?
I haven't linked the secrets file but in one of my .novops.yaml
novops load triggers:
if I remove the "extract" novops doesn't crash
this happens with this version b8e95903a86a7ec0c1593dd368a6ee00a2a6086f