github oocx/tfplan2md v1.50.0

one hour ago

Release Notes: Name-Matched Object Lists and Firewall Policy Rule Collection Groups

Lists of nested objects in Terraform plans (such as Application Gateway listeners, WAF custom rules, and firewall rule collections) used to be compared purely by array index. Inserting or removing one element shifted every subsequent element, causing noisy false diffs and numeric paths like http_listener[4]. This release matches qualifying nested object lists by name instead of index, adds a dedicated rule-collection template for azurerm_firewall_policy_rule_collection_group, and hides unchanged items by default across existing resource-specific item tables.

✨ Features

  • Name-matched nested object lists (#677):
    • Lists where every element on both sides has a known, non-empty, non-sensitive, unique name are matched by name instead of position at any nesting depth.
    • Generic Attribute | Before | After (and create/delete Attribute | Value) tables display each shown element as an indented group headed by its list attribute and element name, with change markers (➕, 🔄, ❌, ⏺️) and relative attribute names.
    • Added and removed elements show all attributes; changed elements show only changed attributes by default; unchanged elements are hidden unless --show-unchanged-values is passed.
    • Order-only changes (same elements with identical content in a different order) are reported once on the list without marking individual elements changed.
    • Resource summaries, large-value sections, and drift reports use escaped name-keyed paths (such as http_listener["app-private-http"].host_name) and count one change per added, removed, or changed element.
  • Dedicated azurerm_firewall_policy_rule_collection_group template (#676):
    • Automatically renders each changed, added, or removed rule collection as its own section ordered by Azure Firewall processing order (NAT, network, application) and ascending priority.
    • Displays NAT, network, and application rule tables with merged source/destination/translated cells, value-kind indicators (🌐 address, 🆔 IP group name, 📄 URL, 🏷️ FQDN tag, 📚 web category), -/+ inline diffs, uncolumned attribute changes (such as http_headers) inside Description, and nested (known after apply: <ref>) hints when referenced IP groups are being replaced.
    • Falls back to the generic renderer if collections or rule lists are marked unknown after apply, contain duplicate names, or have collection/rule order-only changes.
  • Consistent --show-unchanged-values behavior across existing item tables:
    • Existing resource-specific tables (classic firewall rule collections, NSG security rules, Azure DevOps variable groups and build definitions, and inline parent-child child tables) now hide unchanged items by default and reveal them with --show-unchanged-values.

🐛 Fixes

  • Fall back cleanly to the generic renderer when azurerm_firewall_policy_rule_collection_group collection or rule lists are unknown after apply or only reordered.
  • Escape newlines and pipe characters inside inline diff cells so multi-line values and special characters preserve Markdown table structure.
  • Mask per-element and descendant sensitive attributes (including unchanged sensitive siblings in http_headers) without prepending value-kind icons or leaking prior values on unknown collection priority/action headings.

📚 Docs

  • Updated README.md, docs/features.md, docs/architecture.md, docs/report-style-guide.md, CLI help text, and added docs/adr-012-name-keyed-attribute-paths.md.

▶️ Getting started

No new CLI options are required — name matching and the firewall policy rule collection group template activate automatically:

terraform show -json plan.tfplan | docker run -i oocx/tfplan2md:latest > plan.md

Pass --show-unchanged-values when you want unchanged elements, rules, collections, and unchanged attributes inside changed items included in the report.

📸 Screenshots

Name-matched element groups in the generic attribute table and summary (azurerm_application_gateway):

Name-matched object lists in generic attribute table

Dedicated azurerm_firewall_policy_rule_collection_group sections with merged cells and IP group replacement hints:

Firewall policy rule collection group template

🔗 Commits

  • feat: match nested object lists by name and add firewall policy RCG template
  • fix: handle unknown or reordered RCG lists and multiline item diffs
  • fix: mask per-element sensitivity and strip placeholder kind icons in RCG

Workflow simplification and #155 tooling fixes

Internal workflow and tooling updates (no shipped CLI or user-facing output changes):

  • Consolidated pre-implementation feature roles (Architect + Quality Engineer + Task Planner → Architect with design.md) and folded Technical Writer into Developer, with global doc verification checked by Code Reviewer.
  • Moved Retrospective directly onto main post-release and made it conditional on friction or Maintainer request, aligned Release Manager PR-approval rules with prior human gates, and eliminated standalone state.json bookkeeping commits.
  • Fixed bug-fix UAT artifact ownership and artifacts/*.md freshness rules, added scripts/env-paths.sh, hardened UAT submodule/retry/credential helpers, and added workflow/agent/freshness pre-flight checks in scripts/workflow-gate.sh and pre-pr-checklist.

Role and per-harness effort configuration

Internal workflow and tooling update (no shipped CLI or user-facing output changes):

  • Added per-harness default effort settings (claude: medium, gemini: high) to the deep tier in .agents/tiers.json, keeping developer and other deep roles harness-neutral while pinning medium on Claude Opus 5.5+ and high on Gemini 4 Neon.
  • Pinned effort: high in .agents/roles/requirements-engineer.md and .agents/roles/architect.md because upstream spec and design errors propagate through every downstream stage.
  • Updated scripts/sync-agent-config.sh, scripts/validate-agents.py, scripts/workflow-lib.sh, scripts/workflow-next.sh, and scripts/code-review.sh to resolve, validate, emit, and apply effort across .claude/agents/*.md, driver output, and cross-family code review runs, with regression coverage in scripts/test-workflow-driver.sh.

Don't miss a new tfplan2md release

NewReleases is sending notifications on new releases.