Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heredoc not sensitive inline mode #48

Open
LeoK80 opened this issue Apr 25, 2023 · 0 comments
Open

heredoc not sensitive inline mode #48

LeoK80 opened this issue Apr 25, 2023 · 0 comments

Comments

@LeoK80
Copy link

LeoK80 commented Apr 25, 2023

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

@LeoK80 LeoK80 changed the title heredc heredoc not sensitive inline mode Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant