Authorization Regression Matrix
After any deploy that touches authorization, replay the previously recorded matrix exactly and record every changed cell before declaring the release safe
Use when: a release, config change or flag flip alters code or policy in a way that can move any authorization verdict
Avoid when: no change affects authorization at all, and the team's own change log makes that visible for the release in question
Procedure
- Read the change narrative and identify which endpoints, roles, objects and layers the deploy plausibly touches.
- Select matrix cells covering those surfaces, including the peer-object cells and the anonymous rows, since they move most often unnoticed.
- Execute each selected cell pre-change and post-change with the exact same account, credential versions and request bodies.
- Record every verdict difference as a changed cell, including expected-direction changes so the report does not alarm falsely.
- Replay the changed cells on the second and third application instance if the deployment is staged or sharded.
- Record which migration or config value moved each changed cell so the release can iterate precisely.
Signals
- Cells changed despite the release note claiming its scope was unrelated, since middleware-wide tweaks move everything quietly.
- Peer-object cells flip, so the direct case regressed without anyone testing that specific object-level row.
- Anonymous rows shift, converting a previously refused path into an open one after a route-matching cleanup.
- Verdicts differ between instances, so the release moved state unevenly on partial deployment.
Patterns
1. Cell diff
POST release #12: cells 40
/member->obj/B: 403 -> 404 (call body matching expected)
/anonymous->reports: 401 -> 200 changed
2. Instance check
instance-1: 403, instance-2: 401, instance-3: 403 -> value not fully deployed
3. Result row
release=2026-10-delta cells=40 changed=3 unexpected=0 instances-consistent=no at=inst-2
Pitfalls
- Sampling only the endpoints the release note mentions, while general middleware or library changes affect the full matrix.
- Running the matrix only once, where one instance may have missed the release and shape your conclusions incorrectly.
- Ignoring request body changes that the release introduced, which silently shift the expected response shape of every cell.
Done when
- Post-change matrix is executed against the identical pre-change state and every cell difference is explained.
- All deployment instances agree after re-testing the changed cells, or uneven rollout is correctly documented.