Skip to content
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

Add unique home volumes for init/sidecar #170

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Add unique home volumes for init/sidecar #170

merged 2 commits into from
Aug 20, 2020

Conversation

jasonodonnell
Copy link
Contributor

This fixes a small bug when a Vault Agent Proxy is used to cache requests from injected agent containers. The bug is the init container puts a token into $HOME, which is a shared memory volume. The sidecar doesn't use this token, however, it's sent along with the request so the cache hash is calculated wrong, causing a cache miss.

Each container will now have its own memory volume for $HOME so there is nothing shared between them except the secret volumes.

@jasonodonnell jasonodonnell requested a review from tvoran August 18, 2020 18:42
Copy link
Member

@tvoran tvoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work for me, just a couple thoughts.

@jasonodonnell jasonodonnell merged commit cd26998 into master Aug 20, 2020
@jasonodonnell jasonodonnell deleted the memvol branch August 20, 2020 16:23
@jasonodonnell jasonodonnell mentioned this pull request Aug 24, 2020
RemcoBuddelmeijer pushed a commit to RemcoBuddelmeijer/vault-k8s that referenced this pull request Feb 22, 2022
* Add unique home volumes for init/sidecar

* Add mount filter, better variable name
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.

2 participants