-
Notifications
You must be signed in to change notification settings - Fork 23
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
- path_regex of .sops.yaml uses wrong input #104
Comments
If works as designed then "chdir" should be implemented as a new feature. |
If the provided path is not just a filename but contains a path, the module will change into that directory before executing sops. (Please note that sops does not know the filename, since the data is piped into and out from sops, and only written to disk by the module once sops returns.) |
Hhm, the paths contains the whole paths to the file, but it seems we do suffer from getsops/sops#594
whereas this works:
|
ok, so it seems, that path_regex cannot be used in .sops.yaml, b/c it is just /dev/stdin. |
SUMMARY
It checks the value of the current working directory instead the path of the file
ISSUE TYPE
COMPONENT NAME
community.sops.sops_encrypt
ANSIBLE VERSION
$ ansible --version
ansible [core 2.12.5]
config file = None
configured module search path = ['/home/tfoerste/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/tfoerste/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/lib/python-exec/python3.9/ansible
python version = 3.9.12 (main, Apr 29 2022, 22:11:52) [GCC 11.2.1 20220115]
jinja version = 3.1.2
libyaml = True
OS / ENVIRONMENT
LInux (Gentoo), Mac
The text was updated successfully, but these errors were encountered: