-
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
allow pillar to be used in vault policies #43288
Conversation
@gtmanfred, thanks for your PR! By analyzing the history of the files in this pull request, we identified @carlpett and @danielmotaleite to be potential reviewers. |
Hi, If pillar-based targeting is considered better than pillars with vault-based values, then the PR needs to be extended with removing that functionality instead. Not sure if that is possible, though, the execution module will always be possible to use in pillar rendering, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per comment in main thread
As the third guy to trip over this, I'd like to reopen the discussion regarding this:
Secondly, if there truly is an infinite recursion problem, another stop I can think of is the Vault pillar's def __virtual__():
if '{pillar' in config:
return (False, 'Cannot combine {pillar} policy expansion and Vault pillar') If that's OK with all I'll gladly hackup a PR either way |
It has been a year since I left the company where I initially developed this, and I also haven't been a regular saltstack user since (😞), so my memory is a bit hazy on the details. You might be able to resolve this by having some limit as you suggest, I'm not sure if there would be some confusing cases, or any corner cases around the less mainstream usages (salt-ssh, masterless, etc) resulting from that. Not sure how much this helps, but that's my take. |
@carlpett thanks for your input, I'll continue the discussion in other tickets ;) long story short; apparently some older version did not do things the way it does now, so the infinite-recursion loop no longer exists at the expense of pillar-side runner/token impersonation. |
What does this PR do?
Allows the more secure pillar object to be used in vault policies.
What issues does this PR fix or reference?
Closes
#43287
Tests written?
No