Skip to content

Fix vault pillar rendering as all or nothing for each minion#63165

Merged
Ch3LL merged 4 commits into
saltstack:masterfrom
MKLeb:hotfix/vault-pillar-breaking
Dec 1, 2022
Merged

Fix vault pillar rendering as all or nothing for each minion#63165
Ch3LL merged 4 commits into
saltstack:masterfrom
MKLeb:hotfix/vault-pillar-breaking

Conversation

@MKLeb

@MKLeb MKLeb commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

What does this PR do?

Ensures that pillar rendering doesn't fail if all secrets aren't available to each minion.

The session cache was holding the token under certain circumstances after failing to retrieve a secret. The token was then invalid, but it was not being removed from cache, thus resulting in permission denied errors.

What issues does this PR fix or reference?

Fixes: #61821

Previous Behavior

The pillar would fail to render after encountering the first secret a minion was denied access to.

New Behavior

Now the pillar renders properly.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@MKLeb MKLeb requested a review from a team as a code owner December 1, 2022 02:28
@MKLeb MKLeb requested review from waynew and removed request for a team December 1, 2022 02:28
@Ch3LL Ch3LL merged commit 4b63725 into saltstack:master Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Vault as external pillar is all or nothing

2 participants