-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
AWS secrets engine no longer returns lease_duration for STS credentials #19513
Comments
This also prevents vault agent from refreshing AWS STS credentials. Since no lease duration is returned, vault agent will not refresh them. https://developer.hashicorp.com/vault/docs/agent/template#renewable-secrets This makes Vault agent treat STS credentials as non-renewable. |
Hi @mancej I was wondering if you could provide more info regarding this issue and how it relates to Vault agent. Do you have setup where agent was able to renew STS secrets for you? Before the change, the secrets were marked non-renewable. The documentation you refer to explains different behavior for non-renewable leased secrets in the section below it. |
If |
I may have been a bit off on the exact cause and terminology, as I had limited time to fully investigate, but what I can say with certainty is that the 1.13 upgrade caused our sidecar containers running vault agent and configured via consul-template to stop refreshing STS credentials. It seems likely that what lindley referenced above is the root cause of what we experienced. |
Describe the bug
#15869 changed the
aws
secrets engine such that it no longer returns leases for STS credentials, which makes sense. However, it also no longer returns alease_duration
.To Reproduce
Expected behavior
A
lease_duration
is returned with the STS credentials.Environment:
vault status
):Vault v1.13.0 (a4cf0dc4437de35fce4860857b64569d092a9b5a), built 2023-03-01T14:58:13Z
vault version
):Vault v1.13.0 (a4cf0dc4437de35fce4860857b64569d092a9b5a), built 2023-03-01T14:58:13Z
Vault server configuration file(s):
N/A
Additional context
The KV v1 engine returns a
lease_duration
without alease_id
, so there is precedent for this.The text was updated successfully, but these errors were encountered: