Skip to content

Latest commit

 

History

History
174 lines (143 loc) · 11.1 KB

README.md

File metadata and controls

174 lines (143 loc) · 11.1 KB

OpenFrame OSS Tenant

Purpose

OpenFrame OSS Tenant is the deployable, multi-service tenant platform for OpenFrame. It assembles Spring Boot services, Rust client functionality, shared OpenFrame OSS Library modules, data stores, messaging systems, and Helm-based deployment manifests into an end-to-end MSP operations platform.

The repository provides:

  • Tenant-facing API, authorization, gateway, client, management, external API, configuration, and stream services.
  • Centralized configuration and environment-specific deployment settings.
  • MongoDB, Redis, Cassandra, Kafka, NATS, Pinot, MySQL, ZooKeeper, and Debezium infrastructure.
  • Helm and Argo CD manifests for platform, datasource, and tenant deployment.
  • Container images published to GitHub Container Registry.
  • An OCI app-of-apps chart for release delivery.

The tenant services consume OpenFrame OSS Library artifacts pinned to version 7.0.11. The repository publishes Maven service artifacts at 1.0.0-SNAPSHOT and the Rust openframe_client artifact at 0.1.0.

Repository Structure

openframe-oss-tenant/
├── configs/
│   └── base/                    # Shared and service-specific configuration
├── manifests/
│   ├── apps/                    # Argo CD application composition
│   ├── datasources/             # Kafka, MongoDB, Redis, Cassandra, NATS, and related services
│   ├── platform/                # Namespace, ingress, configuration, and developer tooling
│   └── tenant/                  # Tenant-facing Helm deployment
├── openframe-oss-lib/           # Consumed library source and module layout
├── openframe/
│   └── services/                # Runnable Spring Boot service applications
└── .github/workflows/           # Build, release, image, and chart delivery workflows

The main runnable service area is openframe/services. The repository also documents the shared library modules that provide most of the reusable domain, security, data, client, gateway, and service-core behavior.

End-to-End Architecture

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"]
    Management --> Nats["NATS"]
    Management --> Kafka["Kafka"]

    Api --> Mongo
    Api --> Redis
    Api --> Kafka
    Api --> Nats

    Client --> Kafka
    Client --> Nats
    External --> Mongo
    External --> Redis
    Stream --> Kafka
    Stream --> Mongo
    Stream --> Pinot["Pinot"]

    Agent["Managed Device Agent"] --> Client
    Client --> Fleet["Fleet MDM"]
    Client --> Mesh["MeshCentral"]
Loading

Request, Event, and Device Flow

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
Loading

Core Services

Service Role Primary Integrations
openframe-api Internal API and GraphQL operations for devices, agents, tenants, tickets, RMM, and domain workflows MongoDB, Redis, Kafka, NATS
openframe-authorization-server OAuth2, OIDC, tenant authentication, invitations, password flows, and signing keys MongoDB, Redis
openframe-client Client-facing runtime integration for agent communication and client operations Kafka, NATS
openframe-config Centralized Spring Cloud configuration and logging-resource delivery Git-backed configuration
openframe-external-api External REST API for customers, devices, tickets, knowledge-base content, logs, and tools MongoDB, Redis
openframe-gateway Reactive HTTP and WebSocket gateway, routing, authentication, API-key protection, and tenant isolation Authorization server, internal services, integrated tools
openframe-management Startup initialization, scheduled jobs, tool configuration, package catalogs, and JetStream management MongoDB, Redis, Kafka, NATS
openframe-stream Kafka event ingestion, deserialization, enrichment, and projection delivery Kafka, MongoDB, Pinot

Core Modules Documentation

The following modules are documented as part of the repository’s OpenFrame OSS Library integration. Most implementations are consumed from the upstream library at version 7.0.11.

Module Source Path Responsibility
Openframe Services openframe/services Runnable Spring Boot applications and service composition
Openframe API Lib openframe-oss-lib/openframe-api-lib/src/main/java/com/openframe/api Shared API models, validation, ticket workflows, RMM orchestration, and read models
Openframe API Service Core openframe-oss-lib/openframe-api-service-core/src/main/java/com/openframe/api REST controllers, GraphQL fetchers, DTOs, tenant resolution, and API orchestration
Openframe Authorization Service Core openframe-oss-lib/openframe-authorization-service-core/src/main/java/com/openframe/authz OAuth2, OIDC, tenant authentication, onboarding, sessions, and signing keys
Openframe Client Core Java openframe-oss-lib/openframe-client-core/src/main/java/com/openframe/client Agent lifecycle, messaging, scheduling, RMM, updates, diagnostics, and platform integration
Openframe Client Core Rust openframe-oss-lib/clients/openframe-client/src Embedded client runtime for registration, authentication, execution, updates, monitoring, and device operations
Openframe Config Core openframe-oss-lib/openframe-config-core/src/main/java/com/openframe/config Spring Cloud Config Server behavior, Git-cache repair, and logging configuration delivery
Openframe Core openframe-oss-lib/openframe-core/src/main/java/com/openframe/core Shared validation, text processing, security-related utilities, and integration contracts
Openframe Data Device Aspect openframe-oss-lib/openframe-data-device-aspect/src/main/java/com/openframe/data Device and tag projection events for downstream analytics
Openframe Data Mongo Common openframe-oss-lib/openframe-data-mongo-common/src/main/java/com/openframe/data Shared MongoDB documents, tenant types, and repository contracts
Openframe Data Mongo Reactive openframe-oss-lib/openframe-data-mongo-reactive/src/main/java/com/openframe/data Non-blocking OAuth and onboarding repositories
Openframe Data Mongo Sync openframe-oss-lib/openframe-data-mongo-sync/src/main/java/com/openframe/data Synchronous repositories, queries, projections, auditing, and retry support
Openframe Data Redis openframe-oss-lib/openframe-data-redis/src/main/java/com/openframe/data Redis templates, cache integration, key isolation, and Lettuce compatibility
Openframe External API Service Core openframe-oss-lib/openframe-external-api-service-core/src/main/java/com/openframe/external External REST resources, DTO mapping, API-key security, and tool proxying
Openframe Gateway Service Core openframe-oss-lib/openframe-gateway-service-core/src/main/java/com/openframe/gateway Reactive routing, JWT and API-key authentication, WebSockets, rate limiting, and audit instrumentation
Openframe IDP Configuration openframe-oss-lib/openframe-idp-configuration/src/main/java/com/openframe/management Gateway OAuth client initialization and reconciliation
Openframe Management Service Core openframe-oss-lib/openframe-management-service-core/src/main/java/com/openframe/management Management initialization, scheduled jobs, JetStream streams, package catalogs, and integrations
Openframe Notification Mail openframe-oss-lib/openframe-notification-mail/src/main/java/com/openframe/notification/mail SMTP and HubSpot email delivery adapters
Openframe Security Core openframe-oss-lib/openframe-security-core/src/main/java/com/openframe JWT encoder, decoder, RSA key configuration, and access-denied extension points
Openframe Security OAuth openframe-oss-lib/openframe-security-oauth/src/main/java/com/openframe/security/oauth Browser and mobile OAuth flows, callbacks, refresh, logout, and Apple authentication
Openframe Stream Service Core openframe-oss-lib/openframe-stream-service-core/src/main/java/com/openframe/stream Kafka ingestion, typed deserialization, context enrichment, and event destinations
Openframe Tool Agent NATS Installation openframe-oss-lib/openframe-tool-agent-nats-installation/src/main/java/com/openframe/data Resolving Fleet MDM registration secrets during tool installation
Fleet MDM SDK openframe-oss-lib/sdk/fleetmdm/src/main/java/com/openframe/sdk/fleetmdm Typed Fleet MDM and osquery integration models

Deployment Architecture

The deployment layer is organized around Argo CD applications and Helm charts:

  • manifests/apps composes platform, datasource, and tenant applications.
  • manifests/platform provisions namespaces, ingress, developer tools, and configuration services.
  • manifests/datasources provisions Kafka, MongoDB, Redis, Cassandra, NATS, Pinot, ZooKeeper, MySQL, and Debezium.
  • manifests/tenant deploys the OpenFrame services and integrated Fleet MDM and MeshCentral components.
  • .github/workflows/release.yml publishes service container images and the OCI app-of-apps chart.

The primary runtime dependencies are MongoDB, Redis Cluster, Cassandra, Kafka, NATS, Pinot, and supporting integration services. Service-to-service routing is defined in configs/base/openframe-gateway.yml, while shared datasource configuration is defined in configs/base/application.yml.

Published Artifacts

The repository publishes these Maven service artifacts at 1.0.0-SNAPSHOT:

  • com.openframe:openframe-api
  • com.openframe:openframe-authorization-server
  • com.openframe:openframe-client
  • com.openframe:openframe-config
  • com.openframe:openframe-external-api
  • com.openframe:openframe-gateway
  • com.openframe:openframe-management
  • com.openframe:openframe-stream
  • com.openframe:openframe-test

It also publishes the Rust artifact openframe_client at version 0.1.0.