You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform applies successfully.
After a successful attempt to authenticate via the OIDC role, the generated token should inherit all the token_policies set in the role.
Actual Behavior
Terraform applies successfully.
However, tokens generated via the role only has the default policy.
Thank you @lawliet89! I did upgrade to the latest version and it did fix the issue.
However, my question could still be of interest, as the server's version remained the same in the scenario described above yet the different methods of creating and OIDC role resulted in a different outcome.
Happy to close the ticket though if you don't think any further investigation is necessary.
Terraform Version
Vault Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform applies successfully.
After a successful attempt to authenticate via the OIDC role, the generated token should inherit all the token_policies set in the role.
Actual Behavior
Terraform applies successfully.
However, tokens generated via the role only has the
default
policy.Steps to Reproduce
Using Terraform
terraform apply
vault read auth/oidc/role/testRole
vault login -method=oidc role=testRole
Compared to using Vault API
vault auth enable oidc
vault login -method=oidc role=testRole
The text was updated successfully, but these errors were encountered: