Closed niklas-beck closed 3 weeks ago
@niklas-beck Hello, thanks for reporting and I am sorry you are having issues.
The sys/mounts/auth/{path}
endpoint is a valid endpoint and is documented here. I am unable to reproduce this. Could you please provide debug output with the TF_LOG=DEBUG
env variable set?
@fairclothjm Thank you for your answer. After digging deeper, I resolved the issue. The root cause was a faulty terraform state. I renamed the resource vault_jwt_auth_backend and for some reason the old resource remained in the state and was interpreted by Terraform and tried to access the sys/mounts/auth/oidc path. I am still not exactly sure how and why the API request failed. Nonetheless, sorry for my self-made issue :)
Terraform Core Version
1.8.2
Terraform Vault Provider Version
4.2.0
Vault Server Version
1.16.2
Affected Resource(s)
resource "vault_jwt_auth_backend" with type "oidc"
Expected Behavior
Create a new auth engine at the given path "oidc"
Actual Behavior
Terraform plan fails after sending an API GET request to/v1/sys/mounts/auth/oidc
The correct API path should be /v1/sys/auth/oidc
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
add the resource "vault_jwt_auth_backend" with type "oidc" to terraform deployment and run
terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None