terrahelp
terrahelp copied to clipboard
heredoc not sensitive inline mode
Issue
Any heredoc entries in the terraform.tfvars
file are not considered as sensitive values but appear in the encrypted file as is when running as --mode=inline
. Examples of usage for these is PEM formatted certificates in HCL. E.g.
some_cert=<<EOT
-----BEGIN CERTIFICATE-----
<bunch of hash stuff>
-----END CERTIFICATE-----
EOT
This leaves these very important bits of information exposed in the state files for anyone to read/copy and abuse.
Woraround
use of flag --mode=full