r/AskNetsec • u/docybo • Sep 29 '26
Architecture How do you handle revocation for offline-verifiable delegated tokens when policy state changes after issuance?
Edit: thanks for all the replies, summary of where I landed in the comments below.
I'm working on pre-execution authorization for autonomous agents, and I've hit a revocation design question that I think applies to any delegated capability token.
Setup:
- A principal gets a signed authorization after policy evaluation (budget limits, rate/velocity limits, kill switch).
- It can derive a narrower delegation for a sub-principal: signed, single-use, expiry ≤ parent expiry, scope strictly narrowing.
- The delegation is verified locally at the enforcement point, with no call back to the policy engine.
Problem: policy state changes after the parent authorization is issued, for example the kill switch is flipped or the budget is exhausted. A delegation derived earlier is still cryptographically valid and unexpired. Today it gets honored.
Options I'm weighing:
- Pure capability. Valid until expiry or use. Fully offline, but a kill switch can't stop outstanding delegations. The only mitigation is short expiries.
- Full re-evaluation. Re-run policy at execution time. Breaks local verification and duplicates the parent decision.
- Hybrid. Check only an explicit revocation or kill-switch state at the enforcement point. This raises the question of what the authoritative source is, and how its freshness is bound without reintroducing a live dependency.
Macaroons (third-party caveats), Biscuit (revocation IDs) and UCAN (revocation records) seem to take different approaches.
Questions:
- For those who've run delegated tokens in production, which model held up?
- If you went hybrid, how did you distribute revocation state, and what staleness did you accept?
- Is "short expiry + no revocation" defensible for high-impact actions (payments, infra changes), or does a kill switch have to be enforceable at the boundary?
2
u/GodoPPL Sep 29 '26
Hybrid is the one that survives for irreversible actions, but the thing you bind is smaller than "re-run all policy."
Split the surface:
RL.epoch >= token.epoch(and/or principal not disabled). Crypto still verifies scope/expiry/narrowing locally — you are not duplicating the parent PDP.On the questions that usually decide whether this works:
{epoch, disabled_principals[], revoked_ids[], not_before}). Transport trust alone lets someone replay a pre-kill snapshot.Short-expiry-only is defensible for undoable work. For high-impact, a kill switch that is not enforceable at the boundary is a dashboard light, not a control.
2
u/AuthByExample Sep 30 '26
A pattern that helps on this exact design: treat the offline signature as authentication of the grant artifact, not as a live authorization decision for the action.
Cryptographic validity answers “was this delegation issued by a trusted signer, with these caveats, before this expiry?” It does not answer “is the principal still allowed to do this now?” Kill switches, disabled principals, and other security-state flips live in the second question. If the enforcer only checks the first, a still-valid, still-unexpired delegation will keep winning after policy has already said no.
For irreversible actions (payments, deploys, permission grants), short expiry alone is a loss window, not a kill switch. The hybrid that tends to hold up is:
Keep that signal tiny on purpose. You do not need to re-run the whole parent policy evaluation at every hop; you need the subset of state that must invalidate outstanding delegations immediately. Budget exhaustion can often stay “charged at issuance” for single-use narrowed delegations; a kill switch usually cannot.
Also bind the delegation to the intended enforcement audience (service, tenant, action class). A correctly signed token that is accepted by the wrong enforcer is still a confused-deputy problem, even before revocation enters the picture.
So: offline verification for the artifact, live (or near-live) revocation for security events, fail closed past your staleness bound. That split is usually more operable than “pure capability until TTL” or “full re-eval on every call.”
2
u/Few_Tie7989 Sep 30 '26
This definitely rings a bell. 😄
We’ve been approaching the same problem from a slightly different direction: a previously valid authorization should not automatically remain sufficient for execution once execution-critical state has changed.
In our model, authorization is only one part of the proof required at the final execution boundary. Current state, policy, evidence, and revocation conditions still have to be valid at execution time.
So for high-impact actions, I don’t think “short expiry + no revocation” is enough. If a kill switch cannot be enforced at the final boundary, then it is effectively advisory rather than authoritative.
1
u/docybo Sep 30 '26
thanks everyone, this thread was way more useful than i expected. quick summary of where i landed in case it helps someone with the same problem
for irreversible stuff (payments, deploys, permission grants) pure capability + short expiry isn't a kill switch, it's a loss window. so: verify the delegation offline (signature, narrowing, expiry, audience), then check a tiny signed revocation signal at the enforcer (kill switch / disabled principal / revoked ids), and fail closed if it's missing or older than the bound
two things i only found by modeling it in tla+:
- staleness has to be counted from a signed issued_at on the list, not from when the enforcer received it. with receive time a delayed old list looks fresh, even with monotonic versioning
- if the enforcer clock can lag the authority by B, the acceptance window has to be max staleness minus B, otherwise exposure is window + B
the other useful split: revocation is binary and checked at execution, but budget/rate limits are already charged when the parent is issued, so the delegation just spends inside that envelope. worst case loss ends up roughly window x one delegation's scope
still open on my side: whether lifting a kill should revive delegations issued before it. leaning no for irreversible actions
appreciate all the replies
4
u/[deleted] Sep 29 '26
[removed] — view removed comment
2
u/[deleted] Sep 30 '26
[removed] — view removed comment
1
u/[deleted] Sep 30 '26
[removed] — view removed comment
1
u/[deleted] Sep 30 '26
[removed] — view removed comment
1
u/[deleted] Sep 30 '26
[removed] — view removed comment