Interview Prep/Terraform/Security, Secrets and Access

How do you manage tfvars that contain sensitive values?

IntermediateProductionSecurity, Secrets and Access
Answer

Avoid it: use secret references. When unavoidable, encrypt files with SOPS (KMS-backed) and decrypt in CI via the carlpett/sops provider or a pipeline step, or inject through TF_VAR_ from the CI secret store or HCP Terraform sensitive variables. Never commit plain secrets.tfvars.

All Terraform questions Roadmap: Terraform in production

More on Security, Secrets and Access