zet

Hiding sensitive information from state file in terraform

Core Idea:
Terraform state files can leak secrets (passwords, tokens) because they store resource data as plain text. Use these strategies to protect sensitive info:


Summary:
Only ephemeral and external secrets truly keep sensitive data out of state files. Always encrypt and restrict access to state storage. The sensitive flag is for output/log masking only.


Sources: