Critical Terraform Data protection

Terraform state stored in a public or unencrypted bucket

The Terraform state file records your infrastructure — and often resolved secrets (passwords, keys) in plaintext. Storing it in a public, unencrypted or unversioned bucket exposes all of that.

Why it matters

A readable state file hands an attacker a map of your environment and, frequently, live credentials.

No versioning or locking also risks corruption and lost history, which turns a small mistake into an outage.

How to check for it

How to fix it

SkyShield checks this automatically

Connect your AWS, Cloudflare, GitHub, GitLab, Hetzner or DigitalOcean account read-only and SkyShield flags this across every account and region, with the fix in plain words — alongside the agent that watches your servers. Start free.

FAQ

How do I keep secrets out of state entirely?
You can't fully — Terraform records resolved values — so the real control is protecting the backend and rotating anything that leaks.