-
Notifications
You must be signed in to change notification settings - Fork 552
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
Latest version of vault provider does not work with STS credentials with latest version of vault #1805
Comments
Later today I will try to see if I can replicate this with a curl/vault CLI request |
Postman script was a success the following is a sanitized response {
"request_id": "123456789-7479-4a2b-22c5-123456789",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"access_key": "123456789",
"arn": "arn:aws:sts::123456789:assumed-role/devops-shsvc-account-management/vault-root-devops-admin-ci-role-123456789-123456789",
"secret_key": "123456789/123456789",
"security_token": "123456789",
"ttl": 3599
},
"wrap_info": null,
"warnings": null,
"auth": null
} |
I'm experiencing this exact issue with Terraform: 1.4.4 I've also tried several other versions of the provider including 3.13.0, 3.11.0, and 3.0.0 with the same results. Vault CLI requests work fine and return non-null values. |
the |
What would be a working & unique value to replace the lease id with? Related issues/PR's
|
Why not just |
We are experiencing the same issue with 1.13.x. Dynamic creds from the AWS mount aren't usable with assumed roles across accounts. |
Thanks for opening this issue! The updates made to STS leases in Vault 1.13 are in the process of being reverted; this would mean upcoming releases of Vault will go back to returning lease information like before. We apologize for the inconveniences caused during this transition! 🙏🏼 I'll be sure to update this issue thread as soon as the upcoming Vault patch version is released. We appreciate your feedback and patience! |
@vinay-gopalan this has been released, correct? |
I just ran into the same issue. My company is running a modified version of Vault and I think a recent change caused it to start returning empty |
Versions
Terraform version: 1.4.2
Vault: 1.13.0
Vault provider version: 3.14.0
Affected Resource(s)
vault_aws_access_credentials
datasourceTerraform Configuration Files
Debug Output
https://gist.github.com/Shocktrooper/e2ca23783e2f62dfa3bcbad75e55e771
State file after above sample code above reports success
https://gist.github.com/Shocktrooper/c92638a01603efedcdab8ab4c22ebe9c
Expected Behavior
AWS credentials should be returned for the role specified in the datasource
NOTE: Going through the UI returns valid credentials this behavior is only observed via the vault terraform provider
Actual Behavior
The plan/apply specifies that everything has went smoothly until the credentials are ready to be used. Looking at the output/plan null values are recorded in the state. When looking at the debug output an EOF is observed
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform output creds
If using the sample codeImportant Factoids
Vault can lease the credentials to a user just fine that logs in via the UI and inputs the required fields. I have only observed this happening with the provider. I have not tried using the Vault CLI or a curl request to see if I can replicate it that way.
Note: The provider works with our previous version of vault 1.12.1
The text was updated successfully, but these errors were encountered: