getsops/sops

Flag --filename-override is not defined

mhemken-vts opened this issue · 3 comments

The documentation says this:


To encrypt, it is important to note that SOPS also uses the filename to look up the correct creation rule from
.sops.yaml. Likely /dev/stdin will not match a creation rule, or only match the fallback rule without
path_regex, which is usually not what you want. For that, sops provides the --filename-override
parameter which allows you to tell SOPS which filename to use to match creation rules:

.. code:: sh

$ echo 'foo: bar' | sops --filename-override path/filename.sops.yaml --encrypt /dev/stdin > encrypted-data

But on sops version sops 3.8.1 (latest) and sops 3.7.1 I get the error:

[CMD]    FATA[0000] flag provided but not defined: -filename-override

How do I make this work?

This is only availabe on the main branch on not yet in a release. You either have to build the latest version from the main branch and use that one, or wait for the 3.9.0 release.

Ah, ok I see. Sorry about that :)
I will wait for 3.9.0!

No worries!