Authorize a request at the gateway
What It Does
The gateway and receiving service share responsibility: the gateway verifies identity and builds the bounded grant context, while the service evaluates its declared operation, ownership and availability.
The Flow
The diagram separates the relevant success, alternative and failure paths. The numbered hop rows retain the detailed authority checks, delegated work and retry limits.
When Something Fails
The workflow applies to protected human routes. Machine and public routes have separate access contracts. No authorization step creates a missing membership, and a cached decision does not prove that the current database would still allow the request.
Fresh authorization does not create membership or identity records. Gateway cache keys include token, method and route template. One decision log is emitted per authorizer invocation, so cached gateway requests do not necessarily invoke or log fresh evaluation.
Fresh decisions use current database reads alongside per-process pool/manifest caches: sixty seconds fresh, with a last-known-good value for up to fifteen minutes during source failure. Missing usable metadata fails closed.
Open Design Questions
The recorded findings retain any stronger planning expectation, missing writer or unproved recovery path. Observed behavior does not approve those outstanding product choices.
License enforcement depends on the deployed mode. Unconfigured authorization defaults to licensing off; the design does not infer enforcement from the presence of a license record alone.