-
Notifications
You must be signed in to change notification settings - Fork 11
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
QUESTION: embedded_client authentication #219
Comments
Hi @pudovd,
You can (and actually have to) specify the
Using a Personal API Key is recommended over Email and Password, as it allows you to easily revoke external access to the Vault, without changing your master password. You haven't shared how you configured the plugin, therefore it's hard to tell exactly why this message is showing up.
Not necessarily. If you use a Terraform Input Variable, the input can be asked to you interactively.
I wasn't aware Terraform reads
When using the embedded client, the Terraform provider writes a small file |
Hi @maxlaverse! I'll describe exactly which provider configuration I used in this case.
And a simple shell script which exports required environment variables before run terraform:
So, if I don't export
|
Hi @pudovd, provider "bitwarden" {
server = "https://bitwarden.local"
experimental {
embedded_client = true
}
} And running: export BW_EMAIL="[email protected]"
export BW_PASSWORD="pass"
export BW_CLIENTID="clientid"
export BW_CLIENTSECRET="clientsecret" before your Terraform command, what error do you have ?
I'm sorry if I misled you, but you will always have to provider your Vault's password. It's just that with client ID/Secret, the retrieval of the Vault is made through an API Key, but decrypting the Vault still requires the master password. Without client ID/Secret, the retrieval of the Vault would use your email and password. |
Technically, you don't need to pass an email if your using API keys with the embedded client btw. I'm fixing the documentation in #220 |
Hi @maxlaverse,
If all environment variables are set, no errors occur.
No problem. Thanks for your clarification and good work!
Got it. |
For this statement I've found workaround with terragrunt.
So, we can close the issue. |
The
embedded_client
feature works great but has has several concerns.The first, all settings must be known before running terraform. Looks, we can't specify
master_password
via terraform input:So, all settings must be stored in the
.env
file, which looks as non-secure.The second, Vaultwarden sends the "New Device Logged" email notification for every terraform run.
Could you give any recommendations for these concerns?
provider version:
0.13.0
The text was updated successfully, but these errors were encountered: