[BUG] gpg
modules do not respect GNUPGHOME
from (shell) environment config
#66313
Labels
Bug
broken, incorrect, or confusing behavior
Description
The
gpg
modules do not respect a process-specific or (whenuser
is passed) user-setGNUPGHOME
env var. The former is always expected, the latter is in contrast to thecmd
modules, which keep the user environment intact.Setup
Irrelevant
Steps to Reproduce the behavior
(for bash, the user issue)
echo 'export GNUPGHOME=$HOME/.local/share/gnupg' >> ~/.bashrc
exec $SHELL -l
mkdir -p $GNUPGHOME && chmod 0700 $GNUPGHOME
gpg --receive-key 8ABE4EFCF0F4B24BFF2AAF90D570F2D34EA0793D
sudo salt-call gpg.list_keys user=$(whoami)
Expected behavior
Screenshots
Lists
~/.gnupg
(or crashes if it does not exist, see #66312)Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
I will submit a PR
The text was updated successfully, but these errors were encountered: