fix-gate-after-identity
Region HA P3a blocker 1 (#421). The merged plan gate (scripts/check-region-group-plan.py) refused every OpenTofu 1.12.5 plan: 1.12 adds before_identity/after_identity to each resource change, and the gate's CHANGE_FIELDS didn't list them, so every row read as "a change shape this gate cannot safely read".
- Accept both keys when null or an object; anything else is still refused. Their values repeat what's already in before/after, so the gate otherwise ignores them.
- Every existing refusal is unchanged (27 tests pass).
- Fixtures from a real 1.12.5 saved plan (fake account/ids):
tofu-1.12-identity.json(ingress create + protected EIP no-op, approved) andtofu-1.12-fixed-replace.json(fixed instance replace, refused, same message with or without identity). - Test: a fixed instance user_data update carrying identity is refused as a fixed-box change; a non-object identity is refused. The new test fails on main.
Script only; not census-scoped (no Go root read). CI doesn't run the Python suite; run locally: python3 -I scripts/check_region_group_plan_test.py.
Commits
1
Discussions
0
0 open
Tasks
0/0
done
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev pushed 0f4918d53 region plan gate: accept OpenTofu 1.12 identity fields