Interview Prep/Terraform/Security, Secrets and Access

Should you use the Vault provider to fetch secrets?

IntermediateProductionSecurity, Secrets and Access
Answer

It centralises secrets and supports dynamic credentials, but values read through the provider are stored in state like any data source. Use Vault's dynamic credentials for Terraform's own authentication (short-lived cloud creds) and let applications talk to Vault directly for runtime secrets.

All Terraform questions Roadmap: Terraform in production

More on Security, Secrets and Access