MAQPNADocs

maqpna infra plan check

Check a plan's diff without secrets, its blast-radius tier and the policy decision

Govern-o json | yaml

Synopsis#

maqpna infra plan check PLAN.json [--policy FILE]... [--namespace NS] [--agent NAME] [--tiers FILE] [--values] [--fail-on deny|approval|never] [-o json]

Flags#

FlagTypeDescriptionDefault
--agentstringagent name (selects the policies)agent
--fail-onstringexit 3 on: deny, approval (deny or require_approval) or neverdeny
--namespacestringnamespace of the agent session (selects the policies)default
--policystringToolPolicy or policy bundle file or directory to evaluate infra__apply against (repeatable)none
--require-approval-at-tierintthe gateway's infra.requireApprovalAtTier (5 = never)3
--tiersstringJSON tier configuration (the gateway's infra.tiers block)none
--valuesswitchshow before/after values of changed attributes (never sensitive ones)none

The global flags (--context, -o, --no-color, ...) work with every command.

Examples#

# Check a saved plan offline (terraform show -json tfplan > plan.json): diff, tier, policy
maqpna infra plan check plan.json --values
maqpna infra plan check plan.json --policy policies/ --namespace team-a --agent sre-bot --fail-on approval

What happens when you run it#

  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)