-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Vault Token Renewal Not Triggered in Spring Cloud Kubernetes Config Server (v3.2.0) #1848
Comments
Are using the docker image for the config server from DockerHub? Can you provide your deployment yaml and any other configuration you are setting for the config server? |
Hey @ryanjbaxter, Sure, here’s the information you requested: Docker Image:
The resulting JAR file is then executed with Java. Deployment YAML:
it works when we provide this as well
We have attached required service account and roles to this deployment (even joined this in role binding). |
Hi @ryanjbaxter, I had a couple of questions that I’d love your input on:
Can we configure the order of propertySources so that Kubernetes Secrets appear at the top of the list? This would ensure that values from Secrets take precedence, allowing other configurations to resolve their values using Secrets. |
I am going to focus on one issue at a time we can come back to your other questions after we have a good idea about your original issue. You said
So does that mean if you set that environment variable everything works on Kubernetes? |
Description:
I am currently using Spring Cloud Kubernetes Config Server (v3.2.0), but I am facing an issue with HashiCorp Vault token renewal. When running the Spring Cloud Config Server normally (v4.2.0), the Vault token renewal activity is automatically triggered. However, with the Spring Cloud Kubernetes Config Server (v3.2.0), the token renewal is not triggered, resulting in the missing
X-Config-Token
header in requests.Expected Behavior:
The Vault token renewal should be automatically triggered when using Spring Cloud Kubernetes Config Server, and the
X-Config-Token
header should be included in the requests.Environment:
Investigation:
After further investigation, I discovered that the
spring-vault-core
dependency must be included in the application's classpath to triggerLifecycleAwareSessionManager
(which is responsible for the token renewal process).On Spring Cloud Config Server (v4.2.0), I see the following log line:
o.s.v.a.LifecycleAwareSessionManager - Scheduling Token renewal
However, this log line is not seen when using Spring Cloud Kubernetes Config Server (v3.2.0), indicating that the token renewal is not being triggered.
logs:
Can someone help with this issue and provide guidance on how to enable Vault token renewal for Spring Cloud Kubernetes Config Server (v3.2.0)?
The text was updated successfully, but these errors were encountered: