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

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

Open avinash9shelke opened 4 months ago

avinash9shelke commented 4 months ago

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 commented 4 months ago

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.