-
Notifications
You must be signed in to change notification settings - Fork 548
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
[Bug]: With mutualTLS setup getting error client_auth is being deprecated for auth_login_cert. #2130
Comments
Thanks @arpanrec for reporting! If I am understanding correctly there are 2 options
Does that sound right to you? If yes, I am curious if you have reason to prefer one over the other? Thanks! |
@fairclothjm
|
Thanks! Option 1 was hypothetical. I have not investigated if there are cases where it could make sense. I will discuss this issue with my team. Thanks! |
Hello, I have this need with The TLS termination is done at the reverse proxy level and Vault actually uses another authentication method like AppRole (or ideally OIDC with Terraform Cloud Workload Identity support), so we need to configure the client side TLS support but we must not use the cert method. Currently this is possible with Ideally it would also be nice if it were possible to specify the client and cert used as environment variables as this makes the integration with Terraform Cloud easier by using variables instead of pushing the cert and private key to a Git repository (this is not currently possible with the Vault SDK so it would need to be added there first). If you want I'm happy to provide a PR to remove the deprecation warning. We could also move all the TLS configuration to a |
Terraform Core Version
1.6.6
Terraform Vault Provider Version
3.24.0
Vault Server Version
1.15.2
Affected Resource(s)
provider "vault"
Expected Behavior
client_auth is being deprecated for auth_login_cert.
My current vault config doesn’t have any PKI Auth setup, I needed this client_auth because I have mutual TLS enabled. and the authentication process is userpass.
I am expecting I should be able to use vault userpass login with mutual TLS enabled
Actual Behavior
As auth_login and auth_login_cert both are login methods terraform is throwing an error saying it's a conflict.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Here is my vault provider config. I did a micro testing just the provider and a basic kv resource, you will always get the same error
Steps to Reproduce
Just add vault provider with auth_login and auth_login_cert.
Debug Output
No response
Panic Output
No response
Important Factoids
Now if you change
auth_login_cert
toclient_auth
your code will work with the below Warning.As i already explained before my vault doesn't have a PKI Auth module, but I was using
client_auth
for mutual TLS auth, Here is my vault server tcp listener templateReferences
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: