Design Access Decisions for a Policy-Service Outage
Specify how access should behave when a policy service is unavailable, using bounded decision reuse, action classes, and an explicit recovery procedure.
An access architecture is incomplete until it explains what happens when the policy service cannot answer. Normal operation hides the hardest choice. During a network partition, the enforcement point must either deny, reuse previous authority, or apply some local rule. Every implementation eventually makes that choice, even when the architecture document does not.
The productive question is not whether the entire organization should fail open or fail closed. It is which actions can proceed under which previously established facts, for how long, and with what exposure. A dashboard read, a bulk export, and a privilege change do not have equivalent consequences.
This design exercise considers a fictional organization with three access classes. Routine reads expose limited operational data. Sensitive reads expose larger or more consequential datasets. Administrative writes alter permissions or configuration. The numbers below are scenario assumptions intended to make trade-offs visible, not recommended universal thresholds.
Separate a decision from the facts supporting it
A cached allow result is meaningful only within its original scope. Bind it to the principal, resource, action, relevant context, policy version, and expiration. Reusing an allow result for the same user but a different action is not caching; it is expanding authority.
Some facts change more quickly than others. A resource's classification may remain stable for days, while a device's managed status can change within minutes. If one decision depends on several facts, its safe reuse period cannot exceed the freshness requirement of its most time-sensitive prerequisite.
Avoid treating a signed decision as timeless. A signature can establish that a particular issuer approved particular contents. It does not establish that the decision remains appropriate after access is removed. The enforcement point still needs an expiration policy and, where available, a revocation path.
Record the reason a decision was reused. Distinguish ordinary low-latency caching from outage-mode reuse. Otherwise the telemetry cannot tell whether availability depended on deliberately accepted residual authority or whether clients quietly stopped consulting the policy service.
Give each action class an outage contract
For routine reads, the example organization permits reuse for five minutes after a successful decision, provided the request matches the original scope and local device checks remain healthy. Sensitive reads permit one minute. Administrative writes require a live decision and are denied when it is unavailable.
These limits run from the original decision time, not from the start of the outage or the most recent reuse. Refreshing expiration on every successful cache hit creates authority that can survive indefinitely without new evidence. That behavior defeats the purpose of a bounded allowance.
Fresh sessions have no previously established decision to reuse. An outage contract that permits existing readers to continue does not automatically permit new users or new devices. This asymmetry can be operationally valuable, but support staff need to understand it before an incident begins.
The contract should also specify scope ceilings. A cached decision for reading one record must not authorize listing the entire dataset. A limit on request rate or cumulative volume can bound damage during the reuse interval, although it cannot substitute for correct authorization.
Figure 1 — The example assigns different residual-authority windows to different actions. Illustrative model — not measured data.
Quantify availability without disguising exposure
Assume an outage lasts eight minutes and requests arrive uniformly. Also assume every relevant cached decision was freshly issued when the outage began. Routine reads remain eligible for five of eight minutes, or 62.5% of the outage. Sensitive reads remain eligible for one of eight minutes, or 12.5%. Administrative writes remain unavailable throughout.
This is an optimistic availability bound because real cached decisions have different ages. If the routine-read decision is already four minutes old when the outage starts, only one minute remains. An availability forecast should use the observed age distribution, rather than assuming every cache entry has a full lifetime left.
Now consider exposure after an access removal that cannot reach the enforcement point. A five-minute reuse window permits up to five minutes of stale authority under the least favorable timing. Reducing the window improves revocation responsiveness while reducing outage tolerance. Both effects come from the same control and should appear in the same decision record.
Do not label that interval a probability of compromise. It is a duration during which an undesired request might be accepted, given a specific sequence of events. Translating it into expected harm requires further assumptions about request frequency, data sensitivity, and the likelihood of the removal event.
Figure 2 — A five-minute decision lifetime does not guarantee five minutes of outage tolerance. Illustrative model — not measured data.
Local enforcement must survive the central failure
The enforcement point needs a trusted time basis, access to the decision envelope, and a way to recognize the outage. If it cannot evaluate expiration reliably, a bounded allowance becomes unbounded. Clock handling therefore belongs in the security design rather than being dismissed as infrastructure housekeeping.
Avoid making outage detection itself dependent on a single failing service. A timeout should lead to an explicit unavailable state, with bounded retries and a defined decision path. Repeatedly blocking request threads while waiting for the same unavailable dependency can turn a policy outage into a broader application outage.
Local controls still apply during decision reuse. Resource ownership checks, request-size limits, and action matching must not be skipped simply because central evaluation is unavailable. The cached decision should narrow the work permitted during the partition, not disable the enforcement layer.
Protect the cache as security state. Changes to a principal, resource identifier, expiration, or policy version can alter authority. Encryption at rest may protect confidentiality, but integrity and provenance are the central concerns for an allow envelope. Restrict who can write it and verify its authenticity before use.
Recovery is a second transition, not the end of the incident
When the policy service returns, enforcement points may send a surge of refresh requests. If every cached decision expires together, that surge can recreate the outage. Stagger refresh attempts within the permitted lifetime and prioritize requests that cannot safely use existing decisions.
Never extend stale authority merely to smooth the recovery traffic. Capacity management must operate within the approved bounds. If the policy service cannot absorb revalidation quickly enough, some requests must remain denied or delayed until valid evidence is available.
Compare the recovered policy version with the versions used during the outage. Retain records of reused decisions so investigators can determine which actions relied on older authority. This does not imply those actions were improper; it establishes what the system knew when it allowed them.
An emergency access procedure should be separate from automatic caching. It needs named operators, narrow scope, an expiration, and a durable record. Hiding emergency access behind a generic availability flag makes it difficult to distinguish deliberate intervention from accidental bypass.
Prove the contract with controlled faults
Exercise a policy timeout, a partition affecting only some enforcement points, an expired decision, and a local clock anomaly. Test a new session alongside an established one. Attempt an administrative write using a previously allowed read decision. Each experiment should produce an explainable outcome tied to the action contract.
Include a response delayed across expiry in the fault exercise. A decision that was valid when requested may be expired when it arrives. The enforcement point must check the envelope at use time, using the agreed time basis, rather than trusting the response solely because the request began earlier. Otherwise slow recovery can revive authority that should already have ended.
Then remove a user's access while one enforcement point is disconnected. Measure the latest time at which it accepts a request and compare that with the approved bound. A successful normal-operation test cannot establish this property; the timing and partition are essential parts of the experiment.
Publish the operational consequences to service owners. They should know which workflows continue, which stop, and what users will see. A carefully bounded loss of availability can be a deliberate security outcome. The architecture earns trust when that outcome is predictable, tested, and recoverable rather than discovered during the first real failure.