Token Revocation Propagation
Revoke a token's rated access path then check every surface that could keep using it, from direct calls to queue workers
Use when: tokens, keys or federated credentials support an explicit revocation command whose effects must spread everywhere at once
Avoid when: all credentials are transactional sessions with no revocation dimension worth tracking
Procedure
- Revoke a token and immediately capture the callback in every surface the token can act from: endpoint, streaming, background and delegated callers.
- Test the token right after revocation, several minutes later and again across long-lived leases for whichever exists.
- Check whether the revocation command applies to refresh tokens and subordinate grants or only the access surface.
- Probe rate limits and monitoring surfaces while revocation propagates, to see whether revoked tokens evade or stick.
- Confirm signed-URL, webhook and export jobs that were created before revocation honor the revocation at use time.
- Record propagation timing, because revocation that converges within minutes is a design fact you explain, not an unknown.
Signals
- The token continues authorizing normal operation calls for several minutes after revocation is confirmed.
- Direct API calls halt but a background or streaming surface keeps consuming the same credential.
- Refresh is honored despite access revocation, so an attacker re-seeds the session with a fresh grant.
- A webhook signed using the same key accepts a callback far after its tokens were revoked.
Patterns
1. Revocation
POST /oauth/revoke tenant_token -> within 10s call /api/me -> 401 attempt check
2. Subsurface
background worker with cached token -> revocation at t0 still calls at t+5m -> propagation miss
3. Result row
credential=service-key revoked=t0 direct-call=t+2s=401 stream=t+5m=401 jobs=new-tokens=still-valid
Pitfalls
- Verifying revocation only on the direct surface and declaring the process fully complete.
- Ignoring the revocation propagation timing and reporting an unavoidable convergence lag as an instant anomaly.
- Assuming revocation of access tokens applies to refresh and subordinate token chains without testing each.
Done when
- Revocation is verified at least three times across all consuming surfaces, with each round recorded in the report.
- Refresh and subordinate grant propagation is tested, and propagation delay is documented with the observed window.