Openframe Gateway Service Core
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Openframe Gateway Service Core is the reactive edge layer used by the tenant repository's openframe-gateway service. It assembles Spring Cloud Gateway, Spring WebFlux, Netty, JWT resource-server authentication, API-key enforcement, and carefully controlled HTTP and WebSocket proxying for integrated tools.
The implementation is supplied by the com.openframe.oss:openframe-gateway-service-core library at version 7.0.11; this repository runs it in the openframe-gateway service. Tenant deployment configuration routes /sas/** to the authorization server, /api-docs/** to the external API, /api/** to the API service, /clients/** to the client service, and the remaining paths to the frontend. The gateway library adds the cross-cutting security and integrated-tool proxy behavior around those routes.
roles and scope claims to Spring authorities.flowchart LR
Browser["Browser or native client"] --> Gateway["Openframe Gateway"]
Agent["OpenFrame agent"] --> Gateway
ExternalClient["External API client"] --> Gateway
Gateway --> Auth["Authorization server"]
Gateway --> Api["Openframe API"]
Gateway --> ClientService["Openframe client service"]
Gateway --> ExternalApi["External API service"]
Gateway --> Frontend["Frontend"]
Gateway --> Mesh["MeshCentral upstream"]
Gateway --> Fleet["Fleet MDM upstream"]
The gateway is an edge component rather than a system of record. Requests are authorized, augmented, measured, and routed onward. Integrated-tool connections are the important exception: the gateway terminates the client-side connection and creates an upstream connection, allowing it to apply route-specific header changes, logging, command filtering, and cleanup.
The global filters intentionally run in this order:
-210 parses the optional X-OpenFrame-Client header and records observed client builds before policy evaluation.-200 can reject outdated mobile bundles with 426 Upgrade Required. WebSocket upgrades, OPTIONS, and selected health, OAuth, and WebSocket paths are exempt.-100 protects /external-api/**, except direct documentation routes. It validates an API key, applies rate limits, removes the raw key before forwarding, and adds verified key and user identifiers.flowchart TD
Request["Incoming request"] --> Metrics["Record client version metrics"]
Metrics --> Gate{"Upgrade required?"}
Gate -->|"yes"| Upgrade["Return 426 response"]
Gate -->|"no"| ApiPath{"External API path?"}
ApiPath -->|"yes"| ApiKey["Validate API key and rate limit"]
ApiKey --> Forward["Authorize and route upstream"]
ApiPath -->|"no"| Forward
| Submodule | Responsibility |
|---|---|
| Transport Configuration | Configures Netty socket behavior and the outbound reactive WebClient. |
| WebSocket Proxying | Proxies tool WebSockets, supports safe frame diagnostics, restricts MeshCentral control commands, and closes leaked sessions. |
| Security and CORS | Implements JWT issuer validation, route authorization, CORS policy, origin normalization, and observable upgrade rejections. |
| Request Filters | Enforces API-key and mobile-upgrade policy while gathering client traffic telemetry. |
| Integrated Tool Routing | Exposes REST proxy endpoints and resolves MeshCentral and Fleet MDM upstream targets safely. |
All five submodule documents listed above are generated with this module and provide the detailed component-level reference.
Openframe Gateway Service Core uses the Openframe core library for JSON codec compatibility, client-version policy primitives, proxy URL resolution, and JWT configuration. It uses Openframe data repositories for integrated-tool lookup and API-key statistics. The tenant repository supplies the gateway application entry point and platform configuration; service implementations that own API, client, authorization, and external API behavior remain separate services.
The gateway accepts the Openframe authorization server as its configured issuer in a self-hosted deployment. It can also support allowed tenant issuers through an IssuerUrlProvider implementation. In the OSS fallback, DefaultIssuerUrlProvider derives one allowed issuer from the configured issuer base and super-tenant identifier.
SO_LINGER to 0 and enable TCP_NODELAY.openframe.gateway.internal.enable is enabled.The library implementation is maintained in the Openframe OSS Library repository. Key sources include gateway transport configuration, gateway security, and MeshCentral upstream resolution.