You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Specified gnupghome param for gpg.verify is disregarded.
Setup
irrelevant
Steps to Reproduce the behavior
$ mkdir -p /tmp/gpgtest
$ GNUPGHOME=/tmp/gpgtest gpg --no-default-keyring --keyring trustedkeys.gpg --fingerprint
$ GNUPGHOME=/tmp/gpgtest gpg --receive-key DED1FEF44297A15CAD9AE28318CDB3ED5E85D2D4
$ GNUPGHOME=/tmp/gpgtest gpg --list-keys/tmp/gpgtest/pubring.kbx------------------------pub rsa4096 2019-11-20 [SC] [expires: 2026-11-18][...]
$ curl -o /tmp/checksum.txt.asc 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/322815106/389008d9-44e9-4ac9-a574-84e36cf57b20?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221130T021523Z&X-Amz-Expires=300&X-Amz-Signature=22803fc21b64827da3ab8d339cf1f98e718bf397ea26008d53c91282cdb870a2&X-Amz-SignedHeaders=host&actor_id=2163936&key_id=0&repo_id=322815106&response-content-disposition=attachment%3B%20filename%3Dchecksum.txt.asc&response-content-type=application%2Foctet-stream'
$ GNUPGHOME=/tmp/gpgtest gpg --verify /tmp/checksum.txt.ascgpg: Signature made Thu Oct 27 13:45:09 2022 CESTgpg: using RSA key DED1FEF44297A15CAD9AE28318CDB3ED5E85D2D4gpg: Good signature from [...]
$ salt-call gpg.list_keys gnupghome=/tmp/gpgtestlocal: |_ ---------- created: 2019-11-20 expires: 2026-11-18 fingerprint: DED1FEF44297A15CAD9AE28318CDB3ED5E85D2D4[...]
$ salt-call gpg.verify gnupghome=/tmp/gpgtest filename=/tmp/checksum.txt.asclocal: ---------- message: The signature could not be verified. res: False
Expected behavior
Use overridden GNUPGHOME
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3005.1Dependency Versions:
cffi: 1.14.6cherrypy: unknowndateutil: 2.8.1docker-py: Not Installedgitdb: 4.0.9gitpython: 3.1.29Jinja2: 3.1.0libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.2msgpack-pure: Not Installedmysql-python: Not Installedpycparser: 2.21pycrypto: Not Installedpycryptodome: 3.9.8pygit2: Not InstalledPython: 3.9.14 (main, Sep 27 2022, 00:00:00)python-gnupg: 0.4.8PyYAML: 5.4.1PyZMQ: 23.2.0smmap: 5.0.0timelib: 0.2.4Tornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: rocky 9.0 Blue Onyxlocale: utf-8machine: x86_64release: 5.14.0-70.26.1.el9_0.x86_64system: Linuxversion: Rocky Linux 9.0 Blue Onyx
Description
Specified
gnupghome
param forgpg.verify
is disregarded.Setup
irrelevant
Steps to Reproduce the behavior
Expected behavior
Use overridden GNUPGHOME
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
salt/salt/modules/gpg.py
Line 1149 in 0c474f0
The text was updated successfully, but these errors were encountered: