Terraform & OpenTofu (.tf / .tfstate) in Infrastructure Plan & Drift Auditing
During speculative infrastructure drift evaluation, serialized Terraform & OpenTofu (.tf / .tfstate) outputs and plan files expose sensitive production fields including `password`. Passing raw configuration files to external LLMs for drift analysis exfiltrates production credentials beyond the perimeter. StackEngine sanitizes `main.tf` locally, mapping sensitive scalars into `__SE_AWS_8A68CC__` before speculative review.
1. Workstation Setup & Local CLI
Install the deterministic client-side CLI. Runs 100% offline with zero cloud telemetry and zero plaintext egress:
Free for Individual Developers
Ad-hoc CLI, local memory vaults, and standard heuristic redaction are free forever.
Infrastructure Plan & Drift Spec Sanitizer
resource "aws_db_instance" "prod" {
identifier = "fin-prod-primary"
engine = "postgres"
username = "pg_admin"
password = "__SE_DB_476008__"
}
provider "aws" {
access_key = "__SE_AWS_5DF6B0__"
secret_key = "__SE_AWS_8A68CC__"
}2. Local AST Scalar Extraction & Shadow Tokenization
Deterministic Verified BaselineEngineers execute `stackengine redact` to sanitize speculative infrastructure diffs before AI-assisted troubleshooting. `TreeSitterWasmExtractor` maps sensitive scalars to deterministic shadow tokens in local process memory, enabling high-fidelity drift analysis while guaranteeing zero plaintext credential egress.