-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] salt-ssh gpg pillar rendering failure #60002
Comments
I'm getting similar errors with salt-ssh 3003.1:
salt-ssh 3002.6 works fine. |
Same issue still happening with 3003.2 which was just released. Just intrigued, since this is a P2, which release can we expect this to be fixed on? |
Salt 3004 was released but no mention of this issue being fixed yet. Any updates? |
It looks like we have the same issue on our platform. We are using Ubuntu 20.04 with these packages installed on our master:
On minion side, we firstly add a version issue (3003 installed). After the upgrade, it did not solve the issue. Here the packages installed:
The issues appeared after we update our server to the latest packages versions. Here the generated message on our master when running
When creating an encrypted message with gpg and decipher it manually, it works without any issue. When reusing thefailing encrypted payload from the warning message, it works as well.
A gpg-agent is correctly running on our servers using this command: |
Running into the same issue with salt-ssh on 3006.1, 3004.2 and 3005 (whatever the latest is right now). |
I'm seeing the same issue on 3006.2. Is there a workaround to this other than not using gpg encrypted pillar? |
I found the cause for this, see #36796 (comment). Will submit a test + fix for this shortly (if this does not turn into a yak shaving situation at least). |
Closing as fixed per #65067 (comment) |
Description
I use gpg encrypted pillar files. This has worked for many versions of salt, going back years. Now the same setup with 3003 throws errors on state.highstate. If I downgrade to 3002.6, and run the same command it works. Even 3003 with pillar.items works.
The file is encrypted with a key in /home/user/.gnupg.
Setup
./Saltfile:
./master:
salt-pillars/top.sls:
raw:
salt-pillars/kube/foo/ssl/ca/key/init.sls:
encrypted:
salt-pillars/kube/foo/ssl/ca/key/init.sls:
Errors
Steps to Reproduce the behavior
3003 fails:
salt-ssh -i fqdn state.highstate
3003 works:
salt-ssh -i fqdn pillar.items
3002.6 works:
salt-ssh -i fqdn state.highstate
Expected behavior
The encrypt pillars to decrypt properly running an salt-ssh state.highstate
GnuPG version
Versions Report
The text was updated successfully, but these errors were encountered: