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

Use a file sink for agent-inject-token #250

Merged
merged 1 commit into from
Apr 22, 2021
Merged

Conversation

tvoran
Copy link
Member

@tvoran tvoran commented Apr 21, 2021

Since injecting the token from auth/token/lookup-self as a secret doesn't work when persistent caching is enabled, this PR uses a file sink instead to make the auto-auth token available to the app container at /vault/secrets/token. This also means ACLs are no longer required for auth/token/lookup-self. It also gets around the warning noted in #195 and the newline issue in #207.

Fixes #237, #195, #207.

Instead of auth/token/lookup-self, which doesn't work when persistent
agent caching is enabled.
Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jasonodonnell jasonodonnell left a comment

Choose a reason for hiding this comment

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

LGTM!

@tvoran tvoran merged commit 87fd9ba into master Apr 22, 2021
@tvoran tvoran deleted the inject-token-with-sink branch April 22, 2021 18:16
RemcoBuddelmeijer pushed a commit to RemcoBuddelmeijer/vault-k8s that referenced this pull request Feb 22, 2022
Instead of auth/token/lookup-self, which doesn't work when persistent
agent caching is enabled.
tvoran added a commit that referenced this pull request Feb 24, 2022
tvoran added a commit that referenced this pull request Feb 24, 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
4 participants