Skip to content

Latest commit

 

History

History
178 lines (138 loc) · 18.2 KB

README.md

File metadata and controls

178 lines (138 loc) · 18.2 KB

Overview

This section is the entry point for developers working on OpenFrame OSS Tenant — the deployable, multi-service tenant platform for OpenFrame. The repository assembles nine Spring Boot / Maven services, a Rust client binary, shared OpenFrame OSS Library modules, and the Helm/Argo CD manifests that deploy all of it.

com.openframe:openframe-api                     (Spring Boot service)
com.openframe:openframe-authorization-server    (Spring Boot service)
com.openframe:openframe-client                  (Spring Boot service)
com.openframe:openframe-config                  (Spring Boot service)
com.openframe:openframe-external-api            (Spring Boot service)
com.openframe:openframe-gateway                 (Spring Boot service)
com.openframe:openframe-management              (Spring Boot service)
com.openframe:openframe-stream                  (Spring Boot service)
com.openframe:openframe-test                    (Spring Boot service)
openframe_client                                (Rust cargo binary)

All nine Maven artifacts share version 1.0.0-SNAPSHOT and build from the multi-module root pom.xml, which declares Java 25, Spring Boot 4.1.1, and Spring Cloud 2025.1.3. Every service module pulls shared behavior from the OpenFrame OSS Library (flamingo-stack/openframe-oss-lib), pinned at version 7.0.11 for Maven artifacts (openframe-api-service-core, openframe-client-core, openframe-config-core, openframe-authorization-service-core, openframe-external-api-service-core, and others) and tag v0.0.5 for the Rust openframe_agent_lib crate consumed by clients/openframe-client.

This document covers:

  • An overview of the development documentation set and how the pieces relate.
  • Links to every development document that exists for this repository.
  • A quick navigation guide to find the right document for a given task.

Note: The OpenFrame CLI used to bootstrap local environments is maintained in its own, external repository. Its installation and usage docs live at openframe-cli#installation and openframe-cli/docs — do not expect its source under this repository's tree.

How the Development Docs Fit Together

flowchart TD
    Dev["Development (this document)"] --> Env["Environment Setup"]
    Dev --> Local["Local Development Workflow"]
    Dev --> Arch["Architecture Overview"]
    Dev --> Test["Testing"]
    Dev --> Sec["Security"]
    Dev --> Contrib["Contributing Guidelines"]
    Arch --> Ref["Reference Architecture (modules)"]
    Env --> Quick["Getting Started: Quick Start"]
    Local --> First["Getting Started: First Steps"]
Loading

Before diving into any single topic, it helps to know the layering:

  1. Getting Started docs (outside this section) take a new contributor from zero to a running system.
  2. Development docs (this section) describe how to work inside the codebase day to day: environment configuration, local workflows, architecture, testing, security practices, and contribution rules.
  3. Reference docs describe the individual OpenFrame OSS Library modules this repository consumes (openframe-api-service-core, openframe-client-core, openframe-stream-service-core, and so on) in deep detail.

Repository Layout Relevant to Development

openframe-oss-tenant/
├── configs/
│   └── base/                    # Shared and per-service configuration (application.yml, openframe-*.yml)
├── manifests/
│   ├── apps/                    # Argo CD application composition (values.yaml)
│   ├── datasources/             # Kafka, MongoDB, Redis, Cassandra, NATS, Pinot, MySQL, ZooKeeper, Debezium
│   ├── platform/                # Namespace, ingress-nginx, dev-tools, ngrok-operator, openframe-config
│   └── tenant/                  # Tenant-facing Helm deployment (Fleet MDM, MeshCentral, OpenFrame services)
├── openframe/
│   └── services/                # Runnable Spring Boot service modules (see below)
├── clients/
│   └── openframe-client/        # Rust agent binary (Cargo.toml, src/main.rs)
└── pom.xml                      # Maven parent POM, Java 25 / Spring Boot 4.1.1 / Spring Cloud 2025.1.3

The nine runnable service modules live under openframe/services, each with its own pom.xml:

Module pom.xml path Key library dependency
openframe-api openframe/services/openframe-api/pom.xml com.openframe.oss:openframe-api-service-core
openframe-authorization-server openframe/services/openframe-authorization-server/pom.xml com.openframe.oss:openframe-authorization-service-core
openframe-client openframe/services/openframe-client/pom.xml com.openframe.oss:openframe-client-core
openframe-config openframe/services/openframe-config/pom.xml com.openframe.oss:openframe-config-core
openframe-external-api openframe/services/openframe-external-api/pom.xml com.openframe.oss:openframe-external-api-service-core

The Rust agent binary is a thin wrapper over the upstream openframe-agent-lib crate: see clients/openframe-client/Cargo.toml and its entry point clients/openframe-client/src/main.rs.

Each service's main application class is the natural starting point when tracing request flow in the code, for example openframe/services/openframe-api/src/main/java/com/openframe/api/ApiApplication.java, openframe/services/openframe-gateway/src/main/java/com/openframe/gateway/GatewayApplication.java, and openframe/services/openframe-stream/src/main/java/com/openframe/stream/StreamApplication.java.

Linkable Development Documents

These are the documents that exist and can be linked from here. If a document you expect is missing from this list, it has not been generated yet — refer to it in prose rather than inventing a link.

Getting Started (Prerequisite Reading)

Document Purpose
Introduction What OpenFrame OSS Tenant is and how it fits the broader OpenFrame/Flamingo platform
Prerequisites Tooling and accounts required before developing against this repository
Quick Start Fastest path to a running instance
First Steps What to do immediately after the quick start

Development

Document Purpose
Environment Setup Configuring the Java, Maven, and Rust toolchains, plus service configuration under configs/base
Local Development Workflow Running services and datasources locally, iterating on code
Architecture Overview How the nine services, the Rust client, and infrastructure components relate
Testing Test layout and conventions across the Maven modules
Security Authentication, authorization, secrets, and security practices across services
Contributing Guidelines How to propose and land changes

Reference Architecture (Module Deep Dives)

The Development docs describe workflow and process; the Reference Architecture docs describe the individual modules in detail. The top-level reference entry points are:

  • Architecture Reference Overview — repository structure, end-to-end architecture diagram, and the full module table.
  • Ecosystem — published artifacts, upstream dependency versions, and the delivery chain (CI images, Helm charts, Argo CD apps, datasources, gateway routes).

Below that overview sit the per-module reference documents, organized by the OpenFrame OSS Library module they describe. A selection most relevant to day-to-day development:

Within openframe-api-service-core and openframe-client-core-java, the reference docs are further broken out by sub-package — for example API Controllers, API Data Fetchers, API DTOs, Agent Registration Processors, and RMM Services. See the Architecture Reference Overview for the complete module table before searching for a specific sub-document.

Quick Navigation Guide

Use this table to jump straight to the document that matches what you are trying to do.

I want to... Go to
Understand what this repository is before touching code Introduction
Install the tools I need (Java, Maven, Rust, kubectl, Helm) Prerequisites
Get something running as fast as possible Quick Start
Know what to do right after the quick start First Steps
Configure environment variables and per-service configs/base settings Environment Setup
Run services and datasources locally while iterating Local Development Workflow
See how the nine services, datasources, and the gateway route to each other Architecture Overview
Understand the full system end-to-end, including Helm/Argo CD delivery Architecture Reference Overview, Ecosystem
Write or run tests for a Maven module Testing
Review authentication, authorization, or secrets handling Security
Submit a change Contributing Guidelines
Look up a specific library module's internals (controllers, DTOs, listeners, etc.) The relevant Reference Architecture sub-document listed above
Use the OpenFrame CLI to bootstrap or manage the stack External repository: openframe-cli

Working Across the Multi-Module Build

All nine services are declared as <module> entries in the root pom.xml under com.openframe:openframe-parent. Building, testing, or packaging the whole platform happens from the repository root; building a single service happens from its own directory under openframe/services/<service-name>. Each module's pom.xml declares only the dependencies specific to that service (for example openframe-client's pom.xml depends on com.openframe.oss:openframe-client-core and com.openframe.oss:openframe-data-redis), while shared versions, plugin configuration (including the Lombok and spring-boot-configuration-processor annotation processors), and the Spring Boot/Spring Cloud BOM imports live in the parent pom.xml.

The Rust agent (clients/openframe-client) is built independently of the Maven reactor using Cargo, and depends on the external openframe-agent-lib crate tagged v0.0.5 in the flamingo-stack/openframe-oss-lib repository, as declared in clients/openframe-client/Cargo.toml.

Note on dependencies: Every com.openframe.oss:* artifact referenced across these modules — openframe-core, openframe-api-lib, openframe-security-core, fleetmdm, and the rest — is pinned to 7.0.11 and resolved from the external flamingo-stack/openframe-oss-lib repository, not built from source in this repository. When a development task requires changing that shared behavior, the change belongs upstream in openframe-oss-lib, not here.

Where Deployment Configuration Lives

Development work on a service often requires understanding how it is configured once deployed, since local and cluster configuration share the same files:

  • configs/base/application.yml — shared datasource configuration (MongoDB, Redis Cluster, Cassandra, Pinot controller/broker URLs) used by every service.
  • configs/base/openframe-api.yml, configs/base/openframe-client.yml, configs/base/openframe-external-api.yml, configs/base/openframe-management.yml, configs/base/openframe-stream.yml — per-service Kafka and NATS bootstrap settings.
  • configs/base/openframe-gateway.yml — the gateway's routing table (sas, swagger-api-docs, openframe-api, openframe-client, openframe-ui-spa routes).
  • manifests/tenant/values.yaml — image references and Helm values for the tenant deployment, including the Fleet MDM and MeshCentral integrations.
  • manifests/datasources/ and manifests/platform/ — Helm charts and values for every backing datastore and platform service (Kafka, MongoDB, Redis Cluster, Cassandra, ZooKeeper, Pinot, NATS, ingress-nginx, dev-tools).

The Architecture Overview and Architecture Reference Overview expand on how these pieces connect; the Environment Setup and Local Development Workflow documents cover how to work with them during day-to-day development.

Questions and discussion about development on this repository happen on the OpenMSP Slack community rather than GitHub Issues or Discussions; see the community link in the Contributing Guidelines.