Request security controls

  • Follow proxy admission and the identity, role, channel/IP and payload decisions protecting an OBRH request.
100%
Inbound EnvoyOBRH Direct middlewareSecurity decisions before Direct dispatchAdmitted trafficPolicy dependencyadmittokenprincipalchannel + IPbody + APIactivity allowedallowedbody clearedLocal rate limitEnvoy sidecarRequest contextChannel and APIVerify signed JWTAccepted claimsRBACRole permits activity?Channel ABACSource IP allowed?Payload blacklistMapped body policyRoute dispatchRequired checks passadmittokenprincipalchannel + IPbody + APIactivity allowedallowedbody cleared

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • Envoy can reject excess arrivals before the Direct JVM receives them.
  • A verified token identifies the caller. RBAC checks the requested activity, while channel ABAC evaluates the trusted address.
  • The payload policy applies to the body. All required checks must permit dispatch.
Decisions on a Direct request

Decisions on a Direct request

Which policy decides?

Decision Input Effect
Arrival rate The matched Envoy route and its local token bucket An empty bucket can return 429 before the application receives the request.
Authentication A signed JWT and the token policy for the route A valid signature and accepted claims establish the caller for the authorization check.
Role-based access (RBAC) Verified identity, assigned roles and requested activity A valid token can still lack the grant required for the operation.
Attribute-based access (ABAC) Channel, consumer/service mapping and trusted source IP The channel policy checks the resolved address against its configured allowlist.
Payload policy Consumer/service policy mapping and inbound body A configured literal match blocks dispatch. A clean body clears this check only.

Channel and address must agree

  • Resolve the effective peer address at the trusted ingress/proxy boundary. Forwarded-address information needs an explicitly trusted proxy chain.
  • Select the channel and API from their configured association. Apply the channel’s exact-address or configured subnet policy to that request.
  • Treat unavailable policy data separately from a valid deny decision. A configuration change can reach different JVM caches at different times.

Work through the decisions

  • Read the fixture one row at a time. Each rejection changes one input from the admitted case.
  • An expired token stops the identity-dependent RBAC decision. A channel/address mismatch denies a request even with the correct activity grant.
  • For a body-policy match, record the policy, consumer/service identity and correlation ID according to the audit contract.
  • An exhausted rate budget has its own outcome. The runtime performs business-policy checks on requests that reach it.
Direct request decision casesjson
{
  "purpose": "Illustrative Direct API decision cases. Result describes whether this request can reach route dispatch.",
  "examplePolicy": {
    "apiActivity": "offer.read",
    "roleGrant": {"role": "inquiry-reader", "activity": "offer.read"},
    "channelRule": {"channel": "internal-inquiry", "consumer": "sample-consumer", "service": "sample-inquiry", "allowedSourceNetwork": "192.0.2.0/24"},
    "payloadRule": {"consumer": "sample-consumer", "service": "sample-inquiry", "policy": "standard-body"}
  },
  "baseline": {
    "rateBudget": "available",
    "token": "valid-for-this-api",
    "roleAllowsActivity": true,
    "channelAllowsTrustedClientIP": true,
    "payloadPolicy": "scan",
    "literalMatch": false
  },
  "cases": [
    {"case": "All required checks pass", "change": {}, "decision": "dispatch"},
    {"case": "Proxy budget exhausted", "change": {"rateBudget": "empty"}, "decision": "local-rate-rejection", "reachesDirect": false},
    {"case": "Expired token", "change": {"token": "expired"}, "decision": "authentication-denied", "trustedPrincipal": false},
    {"case": "Valid principal without activity grant", "change": {"roleAllowsActivity": false}, "decision": "authorization-denied"},
    {"case": "Known caller from a disallowed channel address", "change": {"channelAllowsTrustedClientIP": false}, "decision": "channel-policy-denied"},
    {"case": "Mapped scanner finds a blocked literal", "change": {"literalMatch": true}, "decision": "payload-policy-denied"}
  ]
}