Security, Governance and PlatformAction authorization and policyPrincipal
When can a distributed policy rollout promise that no new revoked reads will be accepted?
By Amit Kumar3 min readWorked answer includedReviewed 27 Sept 2026
The question
Interview question
Policy revision 42 revokes a partner’s access, but half the active fleet still serves revision 41. Define when the product may acknowledge the cutoff, how to gate stale and returning nodes and which in-flight responses need rechecking. Explain failure behavior when the authority is unreachable without assuming publication equals deployment.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Only when the acceptance path has a real cutoff. Publishing revision 42 is not the same as every active node enforcing it. OPA status reports active bundle revisions, and decision logs can include the bundle revision used for an evaluation. Those are useful observations. They do not automatically fence a node that is still serving with revision 41.
I would define an effective policy epoch for this revocation and a gateway rule: a partner read for this customer cannot proceed unless the authorization decision comes from a policy view at least as new as epoch 42. That can be implemented through an online authoritative check, a propagated minimum epoch that every serving path enforces, or by draining and excluding nodes that have not activated revision 42. The design depends on availability and latency targets, but there must be one place that prevents the old node from accepting the forbidden operation. A node that missed the update cannot simply keep accepting because its local policy says yes.
Now ask when we acknowledge the revocation. If the promise is immediate after acknowledgement, first establish the gate or remove stale nodes from all routes, including retry and background job routes, then acknowledge. In-flight reads already authorized or submitted need a written rule. If a response containing private data has already crossed the disclosure boundary, a later epoch cannot pull it back. If a request was admitted before the cutoff but has not returned bytes, the product may need to recheck at disclosure. The exact boundary should be chosen from the customer contract and made observable. Do not imply that all machines share an instantaneous wall-clock moment.
For the rollout, record the intended revision, active revision by node and region, last decision under revision 41, decision outcome, principal and resource scope, and when a node was removed from traffic. Keep enough audit detail to determine whether any disallowed read was accepted after the promised cutoff, while protecting sensitive inputs in logs. A stale node that was offline during rollout must come back behind the same minimum-epoch gate. Health checks need to distinguish process alive from policy ready. Count the active fleet and the policy age distribution, not just successful bundle downloads.
If the policy backend is unreachable, decide whether a protected read waits or denies. Falling back to revision 41 violates the new revocation promise. For less sensitive policy changes, the product may accept bounded staleness, but state and measure that contract rather than pretending every change has the same urgency. If the interviewer says waiting for all nodes will hang forever because one node is dead, do not wait for that node. Prove it cannot serve through routing and credentials, and require it to catch up before rejoining.
The rollout is complete for this customer when every path that could disclose the documents is either enforcing the required epoch or fenced from accepting the read, and the last old-policy acceptance is before the committed cutoff. The batch passed policy at 9 AM. Can it publish results after the rule changes at noon? asks whether a batch can publish after the policy changes. This page asks how a distributed serving fleet makes that commit-time check mean the same thing across nodes.
Related questions
- How should an agent’s refund tool enforce credentials, approval and current user authority?Principal
- How should emergency authorization work for an agent when policy and identity services are unavailable?Principal
- How do you keep authorization correct when a tool adds a field that changes its effects?Staff
Keep practising security, governance and platform
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux