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.
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