Open PavGregor opened 2 months ago
Some more details to hopefully help with identifying the root cause, compared to #2131 I'm not triggering the issue here with a login timeout due to inactivity or due to an expired token.
When I run terraform apply
on the above snippet I get redirected to a browser for SSO login, that immediately succeeds and returns back to Terraform, which then proceeds to crash within a second or two.
One strange workaround that I stumbled upon just now, if I change the access policy to the following:
path "*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
then the terraform run succeeds. Changing it back to:
path "aws/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
and I get the error. I've tried this a few times and it seems to be consistent behaviour. Is there any reason why this policy change would affect the oidc login process?
Terraform Core Version
1.9.5
Terraform Vault Provider Version
4.4.0
Vault Server Version
1.16.5+ent
Affected Resource(s)
vault_aws_secret_backend_static_role
Expected Behavior
Terraform should create vault_aws_secret_backend_static_role.role resource.
Actual Behavior
Terraform crashes with the below error.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
backend.tf
main.tf
Steps to Reproduce
Run
terraform apply
on the above resource definition.Debug Output
No response
Panic Output
No response
Important Factoids
Here is the relevant auth role configuration in Vault:
vault.tf
user-policy.hcl
Creating the same resource using the Vault CLI works ok:
References
No response
Would you like to implement a fix?
None