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.
More on Security, Secrets and Access
How do you avoid hardcoded credentials in Terraform?BeginnerIs reading a secret with a data source safe?IntermediateHow do ephemeral resources and write-only arguments keep secrets out of state?AdvancedWhat is the better pattern for RDS master passwords?BeginnerHow do you scope IAM for the Terraform deploy role?IntermediateWhat are dynamic provider credentials in HCP Terraform?Intermediate