Identity and authorization

  • Authentication, token handling and business permissions within the API runtime.
100%
One flavour JVM · local security compositionCurrent · identity checks within the API runtimeAPI / businessControl / staterequestApprovedDispatchPublic certificateToken API · DirectA business request has already reached its selected runtime; network entry and site distribution are covered by the architecture view.Business APISelected APIGW/SMS compatibility code runs locally: validate the token, establish a principal and apply permissions/blacklist rules before dispatch. This block does not assert an unverified order between individual checks. JWT / JWSRBAC / blacklistThe complete product WAR, including Camel, runs with the separate Direct or IL extension. Token exchange is handled by the existing Direct runtime, not a separate token JVM.CMC-OBRHroutingIdentity provider supplies tokens and the public verification certificate. Consumer token requests go through Direct; consumers do not directly invoke Keycloak.KeycloakConfigured product processor; only an accepted and authorized request reaches business dispatch.ProviderApprovedDispatchPublic certificateToken API · Direct

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

  • The selected Direct or IL runtime contains the security checks and routing code. The validated identity and its permissions determine which business activity the caller can invoke.
  • The Keycloak arrows serve different operations. Direct can call Keycloak to issue a token. A runtime validating a signed request can use public-key material it already holds.
Identity and authorization

Identity and authorization

  • Product routing and identity responsibilities belong to the established gateway/product owners. The names APIGW Router, Zuul and APIGW do not independently prove multiple deployed hops.
  • Direct/IL composition includes selected verification functionality. Packaging a capability does not establish one universal filter order, every enabled authentication mode, or the absence of state lookups.
  • Token generation is a Direct use case that reaches Keycloak through OBRH. It is not a third Token Direct flavour. A separately deployed instance of the same flavour is an isolation option, not an asserted Current topology.
  • Keycloak public-key material supports local JWS validation. Public-key delivery/rotation is a control dependency, not a Key service or a mandatory Keycloak call on every business request.
Illustrative JWT validation and authorizationyaml
# Optional Proposed L7 guard; NOT existing SMS/APIGW security configuration.
# security v1beta1 example; verify support on the installed Istio/CRD release.
# Only works where this sidecar can actually decode the inbound HTTP request.
apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication
metadata:
  name: example-consumer-jwt
  namespace: obrh-example
spec:
  selector:
    matchLabels:
      app: obrh-direct-example
  jwtRules:
  - issuer: https://identity.example.com
    jwksUri: https://identity.example.com/.well-known/jwks.json
    audiences: [obrh-example]
    forwardOriginalToken: true # Keep only if downstream application requires it.
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
  name: example-require-jwt-for-dispatch
  namespace: obrh-example
spec:
  selector:
    matchLabels:
      app: obrh-direct-example
  action: ALLOW
  rules:
  - from:
    - source:
        requestPrincipals: ['*'] # Validated JWT principal, not mesh source.principal.
    to:
    - operation:
        methods: [POST]
        paths: [/obrh/route/dispatch] # Replace with actual sidecar-visible context/path.
    when:
    - key: request.auth.claims[roles]
      values: [obrh.invoke] # Illustrative signed claim, not actual SMS role names.
# An ALLOW policy makes unmatched inbound traffic denied for this selector.
# This is deliberately NOT a deployable whole-workload policy: inventory other routes,
# authenticated restricted diagnostics, and probe capture before composing exceptions.
# Never add a public /health* wildcard allowance just to make probes green.