TECHNOLOGY

How can Envoy authorization errors remain distinct from denials?

In this article
THE QUICK TAKE

Fail-open continuation is a configured error outcome, not a positive authorization decision.

The operational scenario

An inference gateway uses external authorization and reports every request reaching the model as authorized. During an authorization-service outage, failure_mode_allow permits some requests to continue. Their admission is real, but the claimed decision is not. The gateway must distinguish an explicit allow, explicit denial, failed authorization check and any configured continuation, because these outcomes support different security and availability conclusions.

The trust-boundary mechanism

Envoy’s ext_authz configuration documents continuation on communication failures or authorization-service server errors when failure_mode_allow is enabled. Explicit denial is a different response path. The filter exposes separate ok, denied, error, disabled and failure_mode_allowed counters. A successful upstream inference response therefore cannot establish that an external positive decision existed; it may follow an intentionally configured error fallback or disabled filter.

Define the control contract

Define the protected routes, external-check boundary and acceptable failure behavior before deployment. Record the effective filter configuration, including per-route enablement and any supported annotation of fail-open requests. Decide how downstream applications treat continued requests and which operations may occur. A caller-supplied header resembling an internal annotation must not become authority; provenance of the observation still needs the trusted gateway boundary.

A step-by-step verification

First exercise harmless accepted and explicitly denied checks against a fixture authorization service. Next simulate a bounded communication error and an authorization-service error under each intended failure policy. Verify whether the model fixture is reached and how the outcome is recorded. Include a disabled-filter case so missing external checks cannot be mislabeled as positive decisions. Keep application-server errors separate from failures of the authorization service.

Evidence required for acceptance

Evidence should preserve route identity, effective policy, external outcome and trusted continuation observation for each fixture. Reconcile request records with the documented outcome counters without assuming global counters identify an individual request. A control that reaches the model during fail-open must be reported as error-continued, not allowed-by-policy. Acceptance means the recorded security meaning matches the actual executed route and failure mode.

Failure cases and limits

Fail-open may be a deliberate availability tradeoff under an explicitly bounded policy; it is not automatically appropriate for every protected operation. Additional filters, body limits and routing behavior can create other rejection paths. This review changes no gateway. Its conclusion separates external decisions from error handling, allowing operators to assess the configured tradeoff without inventing authorization evidence from a successful inference response.

Fail-open continuation is a configured error outcome, not a positive authorization decision. Envoy external authorization outcomes; Envoy external authorization failure policy.

The proposed investigation of envoy extauth error versus denial failopen is a proposed control review; no live security test was executed. Related reading: Request IDs and trace context across gateway, API and engine; Inference API telemetry without default prompt capture.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles