StackGuardian / StackGuardian/tirith

feat(terraform_plan): `include_nested_expressions` on `direct_references`

Open
#337 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
165
Forks
42
Avg merge
1d 3h
Merged PRs (30d)
11

Description

One boolean plus a _collect_references helper. Reference edges inside nested blocks (e.g. Azure
private-endpoint private_service_connection blocks) are invisible today, blocking a whole family
of cross-resource checks (private endpoints, network associations and similar). Specify how
the flattened set plugs into references_to's counter at handler.py:461-474 (which already
double-counts — the break exits only the inner loop), and check in hand-written fixtures (the
existing suite shells out to the terraform binary). Document the cap: _normalize_reference
drops var/local/module, so module-per-service plans produce no edges at all.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the _collect_references helper and handler.py:461-474, then trace how direct_references and references_to count edges. Add hand-written fixtures for nested blocks such as Azure private_endpoint private_service_connection and verify the flattened references without relying only on the Terraform-binary suite. Document the _normalize_reference limitation for var, local, and module references.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, terraform
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.