You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Token based authentication for Vault works perfectly, but when Kubernetes Service Account based authentication is used, below error is thrown when a Get call is made to the config server
There was an unexpected error (type=Bad Request, status=400). Missing required header in HttpServletRequest: X-Config-Token
This issue gets fixed upon adding the below dependency to the project POM.
Is this because "spring-vault-core" dependency has been marked as optional in the spring-cloud-config-server pom.xml?
However, the pom change still doesn't solve the issue completely. The first request made to config server fails. The first request error has already been reported here
Please help me out here and let me know if there there's anything I'm missing.
The text was updated successfully, but these errors were encountered:
@spencergibb in that case I guess it would be helpful to update the documentation saying for kubernetes service account authentication to work, one would have to include spring-vault-core as well in the project POM
spencergibb
changed the title
Config Server - Kubernetes Service Account auth works after adding spring-vault-core to POM
Document spring-vault-core as a dependency to use the vault repository
Mar 29, 2021
Description:
Spring Boot Version : 2.2.7
Spring Cloud Version: Hoxton.SR4
Kubernetes Service Acccount based authentication doesn't work even when all the corresponding properties are specified.
application.properties:
Token based authentication for Vault works perfectly, but when Kubernetes Service Account based authentication is used, below error is thrown when a Get call is made to the config server
There was an unexpected error (type=Bad Request, status=400). Missing required header in HttpServletRequest: X-Config-Token
This issue gets fixed upon adding the below dependency to the project POM.
Is this because "spring-vault-core" dependency has been marked as optional in the spring-cloud-config-server pom.xml?
However, the pom change still doesn't solve the issue completely. The first request made to config server fails. The first request error has already been reported here
Please help me out here and let me know if there there's anything I'm missing.
The text was updated successfully, but these errors were encountered: