syncvey.com

Your Terraform state file is a plaintext secrets store. Mine was too. (opens in new tab)

Covered by DEV CommunityDiscussed on DEV

Here's a fact that's easy to forget until it bites you: a Terraform state file stores resource attributes in plaintext — and that includes secrets. RDS master passwords, IAM access keys baked into user data, API tokens passed as variables. They're all just sitting there in terraform.tfstate as readable JSON. That's fine-ish when the file lives in an encrypted S3 backend that three people can touch. It is not fine the moment your tooling starts reading, persisting, or rendering those attribute...

Read the original article
Sign in to keep reading the full article.

Covered in 2 articles

DEV Community·
Discussed on DEV
Feeds
DEV Community·
Discussed on DEV
Feeds

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help