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
{{ message }}
Repository navigation
Locked gpg keychain can cause salt to corrupt rendered data #41846
Corerelates to code central or existential to SaltState-Modulebugbroken, incorrect, or confusing behaviorseverity-low4th level, cosemtic problems, work around exists
Given the gpg-encrypted pillar, salt must abort any state involving encrypted keys, if they cannot be decrypted.
Setup
Add an encrypted key to pillar, add a file state with contents_pillar.
Steps to Reproduce Issue
Run the state. The expected result is for a file to have the decrypted contents or for the state to fail if contents cannot be decrypted. Instead, the GPG blob is written into the file.
Versions Report
$ salt --versions-report
Salt Version:
Salt: 2016.11.0
Dependency Versions:
cffi: 1.10.0
cherrypy: Not Installed
dateutil: 2.6.0
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.9.6
libgit2: 0.25.1
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.8
mysql-python: Not Installed
pycparser: 2.17
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: 0.25.0
Python: 2.7.13 (default, Apr 20 2017, 12:13:37)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 16.0.2
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.1
ZMQ: 4.2.2
System Versions:
dist:
machine: x86_64
release: 4.10.0-22-generic
system: Linux
version: Not Installed
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).
Corerelates to code central or existential to SaltState-Modulebugbroken, incorrect, or confusing behaviorseverity-low4th level, cosemtic problems, work around exists
Activity
farcaller commentedon Jun 20, 2017
Just to be clear, still fails with
salt 2016.11.5-120-ge7fc30f (Carbon)Ch3LL commentedon Jun 20, 2017
Agreed we should not write to the file if the decryption fails. This is not a regression. I can see this behavior in 2016.3 as well.
stale commentedon Nov 5, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
farcaller commentedon Nov 5, 2018
this is still a problem.
stale commentedon Nov 5, 2018
Thank you for updating this issue. It is no longer marked as stale.
stale commentedon Jan 9, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
farcaller commentedon Jan 9, 2020
this is still a problem.
stale commentedon Jan 9, 2020
Thank you for updating this issue. It is no longer marked as stale.
Default gpg_decrypt_must_succeed to True on 3006.x
Document gpg_decrypt_must_succeed opt-in and upcoming default flip
dwoz commentedon Jul 2, 2026
Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).
Document gpg_decrypt_must_succeed opt-in and upcoming default flip
Document gpg_decrypt_must_succeed opt-in and upcoming default flip (#…