Reference SecurityMenu

Reference

Security

Infraglass is a local, read-only viewer for one person's infrastructure. The full model, and how to report a vulnerability privately, are in SECURITY.md. In short:

It can't change anything

  • It reads terraform show -json and recorded streams. It never runs plan, apply, import or state commands, never takes a lock and never writes state.
  • The HTTP API answers only GET and HEAD.
  • It makes no cloud API calls of its own and there is no telemetry. With --dir, terraform show reads your state through your backend, so a remote backend needs its usual credentials; Infraglass never sees them. Saved JSON (--state, --plan) needs none.

Only you can open it

  • It listens on 127.0.0.1 unless you pass --allow-remote.
  • Each start makes a random 192-bit session token. The printed link carries it once; the page swaps it for an HttpOnly, SameSite=Strict cookie and removes it from the address bar.
  • Unknown Host headers are refused, which blocks DNS rebinding.

The page can't be turned against you

  • A strict Content-Security-Policy with no inline code, X-Frame-Options: DENY, nosniff and no-referrer.
  • Values from Terraform are inserted as text, never as HTML.
  • Exported reports allow only their own inline code, by hash, and carry their data as inert JSON.

It shows less than Terraform does

  • Values Terraform marks sensitive appear as (sensitive). Attributes with credential-shaped names (password, secret, token, private_key and similar) are hidden even when a provider forgot to mark them.
  • AWS account IDs are masked (••••••••9012) unless you pass --show-account-ids.
  • Recorded runs and exported reports are owner-only (0600), even when they replace a file.
  • Run text goes through a secret scrubber, and shared reports leave out provisioner output and diagnostic messages unless you pass --include-run-output.
  • Policies inside values Terraform marks sensitive are never parsed.

How the code is checked

Every change runs tests with the race detector on Linux, macOS and Windows; real Terraform 1.5, 1.9 and latest; golangci-lint with gosec; govulncheck; and CodeQL for Go, JavaScript and GitHub Actions. The parsers that read untrusted input are fuzz-tested. Actions are pinned to commit SHAs with least-privilege permissions, main is protected, and release binaries and images carry signed build provenance.

Improve this page on GitHub · Report a problem