Berildocs GitHub

Memory cards

Terraform state is a secret store

confidence: mediumupdated: 2026-11-24status: activecloudterraformstate

Claim#

The state file holds resource attributes, connection strings and sometimes plaintext secrets. A public bucket or repo leaks it.

Test#

Find the backend. Check access. Grep state for passwords, keys and endpoints.

Proof#

A secret from state used against the resource.

Failure modes#

An encrypted remote backend with narrow access is safer. Lock files matter for integrity.