From APIGW to middleware

  • See where security checks run on the product gateway route and the Direct middleware route.
100%
Earlier · API gatewayEarlier · SMS serviceGateway with embedded authorizationDirect middleware · specialized API routeSecurity ownership on the specialized API pathService callInside the runtimeHTTP authorization calllocal callprincipalAPIGWRequest handlingSMS serviceRole/activity decisionAPIGWVerify caller identityEmbedded RBACAuthorize activityGateway request policyChannel/IP controlsLocal JWT/JWSAccept principalLocal SMS-style RBACAuthorize activityChannel/IP allowlistPayload blacklistHTTP authorizationcalllocal callprincipal

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

  • Each row shows a different placement of the authorization decision.
  • The specialized route now uses the middleware’s local security handlers. Separate product routes retain the gateway and SMS services.
Where authentication and authorization run

Where authentication and authorization run

How the specialized API path changed

Architecture Where the request is checked Operational consequence
APIGW calls SMS APIGW handles the request and asks SMS to authorize the activity. This authorization decision depends on the remote service and its response time.
APIGW embeds RBAC APIGW authenticates the caller and calls local role/activity logic for the selected dispatch path. Gateway channel/IP policy also applies to its configured routes. The selected path can authorize locally. Other gateway operations still call SMS.
OBRH handles Direct requests Direct performs JWT/JWS verification and SMS-style RBAC in its own runtime. Channel/IP and payload policies also protect the middleware dispatch path. The designated checks run before provider work. Each replica needs compatible policy data and correctly wired handlers.

Which traffic still goes through the product gateway?

  • Product routes still have their own topology. APIGW Router/Zuul calls SMS and can offload work to APIGW code, which makes its own SMS calls.
  • The token-service route can still involve Keycloak. The middleware’s token-validation decision and the identity provider’s issuance decision have separate owners.
  • The arrival-rate bucket belongs to the configured proxy. Gateway responsibility migration concerns application authentication, authorization and request handling.

A change in code ownership

  • Current Direct has local security implementations. The proposed build packages shared SMS/APIGW dependencies with Direct integration adapters.
  • Test the assembled release against role denials, channel/address mismatches, invalid tokens and payload blocks. Configure and verify the proxy budget separately.
  • During a mixed-version rollout, check policy/cache compatibility across both generations before retiring the previous release.