-
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
2019.2 External file_tree pillar is broken with salt-ssh #53620
Comments
Hello, same issue here. By default, Salt is using the Python I have a quick and dirty hack that use the
Maybe a nice way to handle this would be to be able to set a default json module for Salt instead of the standard one (in the configuration file, for example). Or simply handle more properly bytestring in the JSON Utils module: https://github.com/saltstack/salt/blob/master/salt/utils/json.py If there's a preferred method, I'm willing to try for a PR :) Versions Report
|
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. |
Still a problem. |
Thank you for updating this issue. It is no longer marked as stale. |
This same issue happens when using |
This also affects me, raising the error while parsing this: set-timezone-vienna:
timezone.system:
- name: "Europe/Berlin"
- utc: True |
Using an Having looked at the
Naturally, this workaround requires that the files in the file tree not contain anything that may be inadvertently processed as a Jinja template. @kevinhore If the above seems plausible to you, perhaps you could update this issue summary accordingly, as it presently may be underplaying the magnitude of the problem? TIA. |
I was also having this issue with salt-ssh with pillar_ldap so I have tried your hack and it seems to work for me. I did:
Was there any other locations I should be doing this? |
#53620 (comment) shows that the current implementation of the Updated title to emphasize that |
Please fix this, we can't use salt now for weeks due to this bug :( |
Here is my stacktrace:
|
As of 3002.2, this is broken with regular client/server Salt, it just manifests in a different way. We detected it because we use the Salt API server — This is a horrible regression and now we must keep using 3001 with the security issues it has. |
Interestingly, note that if I enable rendering of the pillars for |
This is the source of the problem: https://github.com/saltstack/salt/blob/master/salt/pillar/file_tree.py#L233
|
Description of Issue
Having configured a file tree external pillar (without templating enabled), salt-ssh call results in the following trace:
This does not occur when using Python2.7.
Setup
Setup pillar.file_tree
Place binary file in file_tree.
Steps to Reproduce Issue
Attempt to apply state using salt-ssh.
Versions Report
The text was updated successfully, but these errors were encountered: