Plan-time validation of selector grammar and cross-resource invariants #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem. DESIGN.md says bare selectors are "rejected at plan time", but
terraform plannever contacts tomswallapi — rejection currently happensserver-side at apply, after half the plan may have been created. Firewall
changes are exactly where you want failures before anything mutates.
Proposal.
ValidateConfig/attribute validators in the provider using thesame selector parser as the server (trivial once #7's shared module exists):
bare
+ipset, unknown grammar, malformed CIDRs all fail at plan.binding references), add a
POST /validateendpoint the provider can callduring plan, degrading gracefully when unreachable.