spring-cloud / spring-cloud-vault

Configuration Integration with HashiCorp Vault
http://cloud.spring.io/spring-cloud-vault/
Apache License 2.0
270 stars 151 forks source link

Kubernetes Authentication no re-create token #715

Closed HelenLorenzo closed 6 months ago

HelenLorenzo commented 6 months ago

Hi, I can't configure spring.cloud.vault to re-authenticate tehe aplication when the token expire. I need to have kubernetes Authentication with batch token type, wich token can't be re-neval. We need to generate a new token when the expire. How I can cofigure spring.cloud.vault to force re-authentication when the token expire? Thanks

mp911de commented 6 months ago

Using the lifecycle configuration, Spring Cloud Vault re-logins on the next Vault interaction of the login token has expired. Spring Vault re-reads the Kubernetes service account token on each login attempt.