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

Support of dynamic OIDC/JWT auth for Hashi Vault #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mksh
Copy link

@mksh mksh commented Jan 6, 2025

Adds support for dynamic token acquire via OID Connect auth, and refresh for Hashi Vault keystores backend.

This allows to use Kubernetes based OIDC auth with v3-operator out of the box,
without need to resort to additional tooling like vault-agent.

If OIDC parameters are passed instead of static token, the token will be acquired dynamically. Refresh will only happen if, during keystore secrets loading from Vault, previous token acquired via OID Connect is becoming expired and requests start to end up in 403. The fact of token being expired is deduced using
lease duration value received from Hashi Vault, when originally acquiring the token.

@mksh mksh requested review from koikonom and kamsz January 6, 2025 09:28
@mksh mksh force-pushed the hashi-vault-oidc-auth branch from 872903b to ee12b20 Compare January 6, 2025 13:19
@mksh mksh requested a review from DavidVentura January 7, 2025 13:18
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.

1 participant