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

org.springframework.vault.VaultException: Cannot renew lease: Status 400 Bad Request lease expired #721

Open
avinash9shelke opened this issue Mar 4, 2024 · 1 comment

Comments

@avinash9shelke
Copy link

avinash9shelke commented Mar 4, 2024

Describe the bug

Once the vault lease expired , lease not renew and getting the below issue

org.springframework.vault.VaultException: Cannot renew lease: Status 400 Bad Request lease expired

Once the lease expired getting the
The provided token has expired. (Service: Amazon S3; Status Code: 400; Error Code: ExpiredToken; Request ID: 4AP7WCZ4N57C46T322; S3 Extended Request ID: s+75L1hrOTLq/oFNDL9DvVYP1R+4KDL7NvpNzISyuGxe345s324232332434=; Proxy: null)"

Sample

spring.cloud.vault.enabled=true
spring.cloud.vault.scheme=https
spring.cloud.vault.host=vault-host
spring.cloud.vault.port = port
spring.cloud.vault.uri = uri
spring.cloud.vault.config.lifecycle.min-renewal = 1m
spring.cloud.vault.config.lifecycle.expiry-threshold = 5m
spring.cloud.vault.token=KUBERNETES

spring.cloud.vault.aws.enabled=true
spring.cloud.vault.aws.role=dev-role
spring.cloud.vault.aws.backend=aws
spring.cloud.vault.aws.credential-type=assumed_role
spring.cloud.vault.aws.access-key-property=cloud.aws.credentials.accessKey
spring.cloud.vault.aws.secret-key-property=cloud.aws.credentials.secretKey
spring.cloud.vault.aws.session-token-key-property=cloud.aws.credentials.sessionToken

@mp911de
Copy link
Member

mp911de commented Mar 4, 2024

What version of Spring Cloud Vault and Spring Vault are you using?

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem.
You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants