Project
Assessment and roadmap
Where Infraglass is, what it's for, and what comes next. Everything under Shipped is built and tested. Everything under Research is a design, not a feature.
What Infraglass is for
One promise: show which changes in a Terraform plan deserve a closer review, why they matter, and what depends on them, locally and in CI. Everything else (the graph, live applies, the access view and the explorers) supports that review or helps you investigate what it flags. It reads only Terraform's documented JSON, so it works with any Terraform 1.x project without changing it.
It is not a Terraform runner, a cloud console or a hosted platform. Those choices keep it safe to point at production and easy to adopt.
Architecture
| Package | Responsibility |
|---|---|
internal/inventory |
Load state and plans through terraform-json; mask; links; policies; plan diff; drift; checks; blast radius; risks; explorers; snapshot compare |
internal/policy |
Parse policy documents, findings, ARN patterns, what isn't evaluated |
internal/live |
Parse the machine-readable UI stream into runs; watch files; redacted copies |
internal/redact |
Best-effort secret scrubbing for free text |
internal/report |
Self-contained HTML, hosted page, Markdown, the infraglass.report/v1 JSON contract, gates, plan-vs-apply |
internal/server |
Local HTTP server and its security controls |
internal/source, internal/record, internal/demo |
Where snapshots come from, recording streams, the sample stack |
tools/sitegen |
The documentation site and hosted demo |
Each package depends only on those to its left above. There is one binary and no database.
Assessment of the earlier version (v0.1.x)
Strengths: the read-only security model, the strict reliance on documented formats, the tests (race, fuzz, real Terraform 1.5 to latest) and the release supply chain.
Gaps that limited real use:
- Privacy bugs. An external audit found sensitive values leaking through parsed policies and run exports, file modes not enforced on overwrite, an unsafe site-generator delete, and publishing not gated on checks. All are fixed, with regression tests (v0.1.2).
- Review depth. It showed what changes, but not what a change could break, what drifted, or whether conditions failed.
- CI. Only a Markdown export existed: no machine contract, no gates, no exit codes, no Action.
- Understanding. The graph showed links, but nothing answered "what's in this VPC", "who can assume this role" or "who writes to this table".
- Runs. There was a single run view, with no history browser, no log search and no plan-to-apply comparison.
Shipped in this release
| Area | What | Tested by |
|---|---|---|
| Security | Sensitive values never parsed into policies, links or reports; run output redacted in shares; 0600 enforced on overwrite; sitegen delete guard; release gate |
privacy_test.go, report leak tests, record/export mode tests, sitegen guard tests |
| Review | Blast radius (direct and transitive dependents), stateful replace/delete risks, drift from resource_drift, check results (pre/postconditions, check blocks, validations) |
analysis_test.go on real and synthetic fixtures |
| CI | check with --fail-on gates and exit code 3; infraglass.report/v1 JSON; plan-vs-apply outcomes; a composite GitHub Action, run in CI against fixtures |
contract_test.go, CLI tests, the CI GitHub Action job |
| Explorers | Network (VPCs, subnets, public or private with the reason, routes, gateways, placement, security groups and exposure); IAM (roles, trust, attachments with evaluation status, users, reach, resource policies); DynamoDB (keys, indexes, streams, TTL, encryption, backups, readers and writers with actions, references) | explore_test.go on the sample stack, and the accuracy tests on real AWS provider output |
| Runs | History list, timeline, filterable log viewer with jump-to-resource and redacted download, plan-vs-apply table | browser checks; outcome logic tested in Go |
| Compare | infraglass compare A B across states and plans |
CLI and inventory tests |
| Accuracy | Hand-written expected facts for real AWS provider output: a state, plans before and after creation, drift and a failed apply. Plan-time analysis follows configuration references when IDs are unknown | internal/accuracy on testdata/fixtures/aws, reported in Accuracy |
Competitors and where Infraglass stands
As of November 2026, from each project's public descriptions. Strengths named here are theirs, not ours.
| Project | Strongest at | Where Infraglass differs |
|---|---|---|
| Rover | Interactive exploration of a plan's configuration and state | Rover draws the graph; Infraglass adds access analysis, plan diffs with replacement causes, live applies, risks and CI gates |
| InfraMap | Clean, simplified provider diagrams | InfraMap aims at diagrams; Infraglass at review and investigation |
| Pluralith | PR diagrams, plan change highlighting, history, drift, cost and IAM views | Overlapping goals and features; Infraglass is open source and runs locally with no account |
| InfraLens | GCP estate viewing with IAM and network views | Comparable explorer idea for another cloud; Infraglass is Terraform-first and AWS-first |
| AIB | Multi-IaC graphs, drift and blast radius | Broader IaC coverage than ours; Infraglass is narrower and stricter about read-only local use |
| TerraGUI, TerraLens | Running and managing Terraform (GUI or terminal) | They run Terraform; Infraglass deliberately never does |
| InfraGraph | Multi-IaC visualization with an AI advisor | Infraglass has no AI and no hosted service |
| HCP Terraform, Spacelift, env0 | Hosted runs, speculative plans on pull requests, policy checks, cost and governance | Infraglass leaves your workflow alone and needs no account, but does far less |
Where it stands: this is a crowded category, and each of Infraglass's parts exists elsewhere. What it offers is a combination: plan review with risks and blast radius, CI gates, observed access and AWS explorers, and live applies, in one local, read-only binary that is strict about privacy. Whether that combination is worth adopting is unproven: there are no users to point to yet.
Where competitors are stronger: multi-IaC (CloudFormation, CDK, Pulumi), multi-cloud access analysis, cost estimates, hosted collaboration, and real drift against live cloud APIs.
Roadmap
There is no evidence yet of who uses Infraglass, so the plan is to prove the core promise before adding to it.
Now: prove it's accurate and useful
- Real AWS provider fixtures. Done. A state, three plans (create, change, drift) and two applies recorded from the real AWS provider on LocalStack, each with a hand-written list of what Infraglass should report; the tests fail on any miss or false alarm. The first run found more than a hundred discrepancies, all fixed (see the changelog).
- An accuracy report. Done. Accuracy is generated from those tests and CI keeps it current. Next: more cases, starting with what people report.
- OpenTofu in CI. Run the same
TestDir*suite on OpenTofu. Done when it passes on OpenTofu 1.8 or later. - Real pull requests. Try it with a few teams that maintain Terraform. For each pull request, ask: did it change the review, catch something, or save time? Done when there's a written answer from at least three teams, and the next step follows from it: keep going, narrow further, or stop.
Only if people using it ask
Each of these is a real idea with a design below or in an issue, but none starts without demand:
- Fuller policy evaluation: customer-managed policies attached by ARN, a bundled set of common AWS-managed policies, and later conditions, boundaries and SCPs (effective permissions).
- Offline cost estimates for common AWS resources.
- Several states or workspaces in one view.
- Live drift against cloud APIs, beyond what
plan -refresh-onlyalready shows. - The visual editor, team mode and DynamoDB data viewer researched below.
Research: a visual Terraform editor
The goal: drag resources onto a canvas, connect them, edit properties, and get a correct,
reviewable change to the .tf files.
Why it's hard: HCL is a language, not a data format. Real code uses variables, locals,
modules, for_each, conditionals, dynamic blocks, references and comments. Regenerating files
from a diagram destroys all of that. A trustworthy editor has to make minimal edits to the
existing syntax tree.
Approach:
- Read with
hashicorp/hcl/v2andhclwrite, which keep comments and formatting, and map each block to its resource address.terraform-config-inspectgives modules and variables. - Edit only through operations that are safe on the tree: set a literal attribute, add or remove a block, add a reference between two resources, add a new resource from a template. Anything computed (an expression, a variable, a module input) is shown read-only, labeled with where it comes from.
- Validate by writing to a scratch copy, then running
terraform fmt,terraform validateandterraform plan, and showing the plan in Infraglass's own review view. - Propose the result as a unified diff for the user to apply or commit. Infraglass would never apply infrastructure and would never write files without an explicit confirmation.
A realistic first version: editing literal attributes of resources that already exist (an
instance type, a tag, a retention period). It would cover literals only, never expressions, and
go diff, then fmt, then validate, then plan review.
Later: add new resources from templates with references, and drag-to-connect for the few reference attributes that are unambiguous (a security group to an instance).
Out of reach for now: editing inside modules from the root, rewriting for_each/count
structures, and round-tripping arbitrary expressions.
Effort: about 6 to 8 weeks for the first version with tests. It adds hcl/v2, which
HashiCorp maintains. It changes the product from read-only to an editor and needs its own
security review, so it waits for clear demand.
Research: a team or central mode
The need: one place to see many projects, workspaces and runs.
The constraint: state files contain secrets and must not be uploaded to a service by default.
Recommended design (if demand appears):
- Push reports, not state. CI already produces the redacted
infraglass.report/v1JSON and the HTML report. A central server would accept only those, signed with the CI's OIDC token, so it never sees raw state. - Isolation. Projects are tenants. Each report is bound to a repository and workspace taken from the OIDC claims, not chosen by the uploader.
- Authentication. SSO through OIDC, with read access per project mapped from the identity provider's groups.
- Storage. Object storage plus a small metadata index, encrypted at rest, with a retention period per project (30 to 90 days by default) and deletion on request.
- Operations. It would be a separate deployable with its own threat model and penetration test before release. The local tool stays fully functional without it.
Recommendation: not before users ask for it. Exported reports and CI artifacts cover sharing today.
Research: a DynamoDB data viewer
The value: see a few real items next to the table's keys and indexes, to understand access patterns.
Design:
- Separate and opt in.
serve --dynamodb-dataenables a read-only endpoint; without the flag, no AWS SDK code path exists at run time. It uses the user's own credentials through the default AWS chain. - Narrow. Only tables present in the loaded snapshot, never arbitrary names. Only
DescribeTable,Scanwith a smallLimit(25) andQueryon declared keys, paginated with an opaque cursor, and nothing that writes. - Masked by default. The viewer shows attribute names and types, with values masked. Values appear only after an explicit "reveal sample" click per page, and attributes named like secrets or personal data stay masked. Every request is logged locally.
- Labeled. "Live data from table X in account …9012, region Y", never mixed with state.
Not built yet because it adds the AWS SDK and live cloud calls, which change the security posture this tool is built on. It needs that trade-off made deliberately, with DynamoDB Local integration tests, before it ships.