Interview Prep/Terraform/Security, Secrets and Access

Does `sensitive = true` protect secrets?

BeginnerProductionSecurity, Secrets and Access
Answer

It only hides values in CLI output and logs. State and plan files still contain them in plaintext, and anyone with state read access sees them. Combine with a locked-down backend, and use ephemeral values to avoid storing secrets at all.

All Terraform questions Roadmap: Terraform in production

More on Security, Secrets and Access