-
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
Warnings from salt.pillar.gpg in Fluorine #50809
Comments
This is also slower, because it attempts to decrypt each pillar value, even if there is no PGP signature:
At least two tests need to be added:
|
Looking at the code I think it is #46542 because when I did #45781 my assumption was we always annotate PGP ciphertext with proper I'm not sure what the proper behaviour should be here, because if we want "no attempts to decrypt unencrypted keys" but still want support for "unannotated PGP ciphertext", we need some way to identify OpenPGP messages without In my opinion, And from security perspective with on-needed But all these are just my thoughts - I guess the maintainers should agree what the proper behaviour should be here. |
See the docs I mentioned above: https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.gpg.html
Many folks use the different strategy: they only encrypt some of the pillar values. Forcing them to encrypt everything or split their pillar files seems wrong, and reduces the master performance. @DmitryKuzmenko Are you sure that the ability to decrypt raw data was actually there? This is the code before #45781: https://github.com/saltstack/salt/pull/45781/files#diff-2c20356d759feadcae8c50c2a46596c6L303. The logic is quite straightforward - if |
@max-arnold just re-reviewed the original code and my update. Yes you're right. I've been confused by the original test that was calling |
@DmitryKuzmenko You or me? :) |
Done. =) |
Backported the fix to fluorine #50831 |
I can confirm that the issue is solved. Thanks! |
Description of Issue/Question
It looks like some changes in #45781 or #46542 broke the
salt.pillar.gpg
https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.gpg.html:If I restore the
salt/renderers/gpg.py
back to the2013.3.3
state, everything works as expected.Versions Report
Salt fluorine branch, revision 241741a
CC: @secumod @DmitryKuzmenko
The text was updated successfully, but these errors were encountered: