OpenFrame OSS Tenant is the deployable, multi-service tenant platform for OpenFrame — an AI-driven MSP operations stack. The repository assembles nine Spring Boot services (defined under openframe/services), a Rust-based device agent (clients/openframe-client), shared OpenFrame OSS Library modules, data stores, messaging infrastructure, and Helm/Argo CD deployment manifests into one end-to-end platform.
This document gives a map of the pieces, how they talk to each other, and the decisions behind that shape. For module-by-module implementation detail, see the reference architecture documentation listed throughout this page, and the generated ecosystem facts for the exact dependency versions.
This repository does not record any downstream consumers in the organization's code graph (coverage is partial, so this is informative rather than exhaustive). It is the outermost, deployable layer of OpenFrame: other repositories feed into it, it does not feed into others.
The tenant's services are fronted by a single reactive gateway. Each backend service is a thin Spring Boot application built mostly from shared library code published by OpenFrame OSS Library at version 7.0.11. The managed-device agent is a separate Rust binary that talks to the platform over NATS and Kafka.
flowchart LR
User["Browser, API Client, or Agent"] --> Gateway["OpenFrame Gateway"]
Gateway --> Auth["Authorization Server"]
Gateway --> Api["OpenFrame API"]
Gateway --> External["External API"]
Gateway --> Client["OpenFrame Client Service"]
Gateway --> Frontend["OpenFrame Frontend"]
Config["OpenFrame Config"] --> Api
Config --> Auth
Config --> Client
Config --> External
Config --> Management
Config --> Stream
Management["OpenFrame Management"] --> Mongo["MongoDB"]
Management --> Redis["Redis Cluster"]
Management --> Nats["NATS"]
Management --> Kafka["Kafka"]
Api --> Mongo
Api --> Redis
Api --> Kafka
Api --> Nats
Client --> Kafka
Client --> Nats
External --> Mongo
External --> Redis
Stream["OpenFrame Stream"] --> Kafka
Stream --> Mongo
Stream --> Pinot["Pinot"]
Agent["Managed Device Agent"] --> Client
Client --> Fleet["Fleet MDM"]
Client --> Mesh["MeshCentral"]
Each box that is also an upstream dependency (the shared library modules consumed at version 7.0.11) is described further in the architecture reference index and its ecosystem page.
| Service / Component | Role | Primary Dependencies | Source / Build Module |
|---|---|---|---|
openframe-gateway |
Reactive HTTP/WebSocket entry point: routing, JWT and API-key authentication, rate limiting, tenant isolation | Authorization server, all internal services | openframe/services/openframe-gateway |
openframe-authorization-server |
OAuth2/OIDC authorization server, tenant login, invitations, SSO, signing keys | MongoDB, Redis | openframe/services/openframe-authorization-server |
openframe-api |
Internal REST/GraphQL API for devices, agents, tenants, tickets, and RMM workflows | MongoDB, Redis, Kafka, NATS | openframe/services/openframe-api |
openframe-external-api |
External, API-key-protected REST API for customers, devices, tickets, knowledge base, logs, and tool proxying | MongoDB, Redis | openframe/services/openframe-external-api |
openframe-client (service) |
Client-facing runtime for agent registration, messaging, and lifecycle operations | Kafka, NATS | openframe/services/openframe-client |
openframe-config |
Centralized Spring Cloud Config server and shared logging-resource delivery | Git-backed configuration | openframe/services/openframe-config |
openframe-management |
Startup initialization, scheduled jobs, package catalogs, JetStream stream management | MongoDB, Redis, Kafka, NATS | openframe/services/openframe-management |
openframe-stream |
Kafka event ingestion, deserialization, enrichment, and projection delivery | Kafka, MongoDB, Pinot | openframe/services/openframe-stream |
openframe-test |
Shared test-support application module | — | openframe/services/openframe-test |
openframe-client (Rust agent) |
Endpoint agent: registration, auth, execution, updates, monitoring, remote access | NATS, OpenFrame backend | clients/openframe-client (Cargo package openframe-client) |
The managed-device agent is published as a thin binary over the upstream openframe-agent-lib crate (pinned at tag v0.0.5 in clients/openframe-client/Cargo.toml), while all Java services are thin Spring Boot shells over the com.openframe.oss:* library artifacts pinned at 7.0.11 in the root pom.xml.
| Component | Used By | Manifest |
|---|---|---|
| MongoDB | openframe-api, openframe-external-api, openframe-authorization-server, openframe-management, openframe-stream |
manifests/datasources/mongodb |
| Redis Cluster | openframe-api, openframe-client, openframe-authorization-server, openframe-external-api, openframe-management |
manifests/datasources/redis-cluster |
| Kafka | openframe-api, openframe-client, openframe-external-api, openframe-management, openframe-stream |
manifests/datasources/kafka |
| NATS | openframe-api, openframe-client, openframe-external-api, openframe-management |
manifests/datasources/nats |
| Cassandra, ZooKeeper, Pinot, MySQL, Debezium Connect | Analytics, Kafka coordination, Fleet MDM storage, change-data-capture | manifests/datasources/* |
Shared and service-specific datasource endpoints are declared in configs/base/application.yml and per-service files such as configs/base/openframe-api.yml, configs/base/openframe-client.yml, configs/base/openframe-external-api.yml, and configs/base/openframe-management.yml. Gateway routing is declared in configs/base/openframe-gateway.yml.
Most service behavior is implemented in shared library modules consumed from OpenFrame OSS Library rather than written directly in this repository. These are documented individually under the architecture reference:
| Module | Backing Service(s) | Reference |
|---|---|---|
| Openframe API Lib | openframe-api |
openframe-api-lib.md |
| Openframe API Service Core | openframe-api |
openframe-api-service-core.md |
| Openframe Authorization Service Core | openframe-authorization-server |
openframe-authorization-service-core.md |
| Openframe Client Core (Java) | openframe-client |
openframe-client-core-java.md |
| Openframe Client Core (Rust) | Device agent | openframe-client-core.md |
| Openframe Config Core | openframe-config |
openframe-config-core.md |
| Openframe Core | All services | openframe-core.md |
| Openframe Data Device Aspect | openframe-api and friends |
openframe-data-device-aspect.md |
| Openframe Data Mongo Common / Sync / Reactive | All Mongo-backed services | openframe-data-mongo-common.md, openframe-data-mongo-sync.md, openframe-data-mongo-reactive.md |
| Openframe Data Redis | openframe-api |
openframe-data-redis.md |
| Openframe External API Service Core | openframe-external-api |
openframe-external-api-service-core.md |
| Openframe Gateway Service Core | openframe-gateway |
openframe-gateway-service-core.md |
| Openframe Management Service Core | openframe-management |
openframe-management-service-core.md |
| Openframe Stream Service Core | openframe-stream |
openframe-stream-service-core.md |
| Openframe Notification Mail | Authorization and API services | openframe-notification-mail.md |
| Openframe Security Core / OAuth | All services with JWT/OAuth needs | openframe-security-core.md, openframe-security-oauth.md |
| Fleet MDM SDK | Client and management services | sdk-fleetmdm.md |
The sequence below traces a typical authenticated API request through the gateway and out to a managed device, with the event ultimately landing in the analytics pipeline.
sequenceDiagram
participant User as User or API Client
participant Gateway as OpenFrame Gateway
participant Auth as Authorization Server
participant Api as OpenFrame API
participant Data as MongoDB and Redis
participant Bus as Kafka and NATS
participant Agent as Managed Device Agent
participant Stream as Stream Service
User->>Gateway: Send authenticated request
Gateway->>Auth: Validate token or session
Auth-->>Gateway: Return authorization result
Gateway->>Api: Forward tenant-scoped request
Api->>Data: Read or update tenant data
Api->>Bus: Publish command or domain event
Bus->>Agent: Deliver device operation
Agent->>Bus: Publish result, heartbeat, or status
Bus->>Stream: Deliver normalized event
Stream->>Data: Persist projections and analytics data
Api-->>Gateway: Return response
Gateway-->>User: Return tenant response
Gateway routing is table-driven, mapping path prefixes to services: /sas/** to the authorization server, /api-docs/** to the external API, /api/** to openframe-api, /clients/** to openframe-client, and /** to the frontend, as declared in configs/base/openframe-gateway.yml.
The Rust agent (openframe-client Cargo package) registers with the platform, authenticates, and then listens for commands over NATS:
flowchart LR
Install["Install or Start"] --> InitialConfig["Initial Configuration"]
InitialConfig --> Register["Register Agent"]
Register --> Authenticate["Authenticate Agent"]
Authenticate --> Connect["Connect to NATS"]
Connect --> Receive["Receive Commands and Events"]
Receive --> Execute["Execute Scripts or Tool Operations"]
Execute --> Report["Publish Results and Device Reports"]
Report --> Monitor["Monitor Health and Lifecycle"]
Monitor --> Update["Update or Uninstall"]
On the Java side, openframe-client (the service, backed by Openframe Client Core Java) and openframe-management coordinate registration, scheduling, tool installation, and OS-update reconciliation with the device fleet, publishing device projections to Kafka for the Stream service to enrich and persist.
Deployment is organized around Argo CD applications composed in manifests/apps, which fan out into three groups:
manifests/platform— namespace, ingress-nginx, dev-tools, andopenframe-config(the Config Server chart that serves theopenframe-configimage).manifests/datasources— Cassandra, Debezium Connect, Kafka, MongoDB, MongoDB (MeshCentral), MySQL (Fleet MDM), NATS, Pinot, Redis Cluster, and ZooKeeper, each wave-ordered ahead of tenant workloads.manifests/tenant— the OpenFrame service images (openframe-api,openframe-authorization-server,openframe-client,openframe-external-api,openframe-gateway,openframe-management,openframe-stream) plus the integrated Fleet MDM and MeshCentral Helm charts and the separately published OpenFrame frontend image.
flowchart TD
Apps["manifests/apps (Argo CD root)"] --> Platform["manifests/platform"]
Apps --> Datasources["manifests/datasources"]
Apps --> Tenant["manifests/tenant"]
Platform --> ConfigChart["openframe-config chart"]
Datasources --> MongoChart["mongodb, mongodb-meshcentral"]
Datasources --> KafkaChart["kafka, zookeeper"]
Datasources --> OtherData["cassandra, nats, pinot, mysql-fleetmdm, debezium-connect, redis-cluster"]
Tenant --> Services["openframe-api, gateway, client, external-api, management, stream, auth-server"]
Tenant --> Fleet["Fleet MDM chart"]
Tenant --> Mesh["MeshCentral chart"]
.github/workflows/release.yml publishes each service's container image to ghcr.io/flamingo-stack/openframe-oss-tenant/<service> and packages the OCI app-of-apps chart at oci://ghcr.io/flamingo-stack/openframe-oss-tenant/app-of-apps from ./manifests/app-of-apps, which is the entry point Argo CD syncs against.
Every Java service module (openframe-api, openframe-authorization-server, openframe-client, openframe-config, openframe-external-api) has a minimal pom.xml whose only meaningful dependency is its corresponding *-service-core or *-core artifact from OpenFrame OSS Library, plus Spring Cloud Config and Spring Boot starters. For example, openframe/services/openframe-api/pom.xml pulls in openframe-api-service-core and openframe-data-redis; the application class ApiApplication in openframe/services/openframe-api/src/main/java/com/openframe/api/ApiApplication.java is the thin bootstrap. This keeps domain logic, security, and persistence behavior centralized and versioned in one place (pinned at 7.0.11), while this repository owns deployment composition, configuration, and release packaging.
openframe-config runs Spring Cloud Config Server (via openframe-config-core) backed by a Git repository clone. A dedicated startup component repairs a corrupted local Git cache (stale JGit locks, dirty working trees) before the server starts handling requests, falling back to a full wipe-and-reclone rather than risking an inconsistent cache. Shared Logback XML resources are served over HTTP from the same service so every downstream service can use one packaged logging configuration.
openframe-gateway is the only externally routable service for application traffic. It owns JWT and API-key authentication, rate limiting, WebSocket upgrades, and tenant-isolation enforcement, and routes by path prefix to backend services declared in configs/base/openframe-gateway.yml. Internal services trust gateway-supplied identity headers (for example X-User-Id, X-Api-Key-Id, X-Tenant-Domain) rather than re-implementing authentication.
Tenant scoping is not an afterthought bolted onto controllers: MongoDB documents implement a shared TenantScoped contract, DefaultTenantIdProvider supplies a fallback tenant ID (oss by default, overridable via the TENANT_ID environment variable), and OpenframeRedisKeyBuilder namespaces every Redis key by tenant (optionally using Redis Cluster hash tags for slot locality). Reactive onboarding/OAuth repositories deliberately require explicit tenant IDs as query parameters instead of relying on ambient context, since they bypass the synchronous tenant aspect.
Device, tag, and software state changes are propagated asynchronously: Spring AOP aspects (such as the device/tag event aspect) observe repository writes and publish MachinePinotMessage projections to Kafka, which openframe-stream consumes, enriches, and persists into Pinot for analytics and MongoDB for operational projections. Device commands and results flow the other direction over NATS between the backend and the Rust agent. This decouples write-path latency on API requests from downstream projection and fan-out work.
The endpoint agent (clients/openframe-client) is a small Rust binary (src/main.rs) that depends on the openframe-agent-lib crate pinned by Git tag (v0.0.5) in clients/openframe-client/Cargo.toml, mirroring the Java pattern: the tenant repository supplies only the thin executable and packaging, while registration, authentication, messaging, execution, diagnostics, and platform-specific logic live in the shared library.
Several cross-cutting library behaviors favor availability over strict correctness at the edges: disposable-email-domain checks fail open on timeout rather than blocking registration; device-projection publication failures are logged rather than rolled back into the original write; and the Config Server's Git cache repair wipes and re-clones rather than leaving a broken cache in place. These choices are documented per-module in the architecture reference (see Openframe Core and Openframe Config Core).
For environment setup and running services locally, see the development overview and environment setup. For the full dependency and delivery-chain listing (container images, chart dependencies, and gateway routes) consult the ecosystem reference and the architecture reference index, which links to every library module's detailed documentation.