Skip to content

Latest commit

 

History

History
219 lines (156 loc) · 13.7 KB

quick-start.md

File metadata and controls

219 lines (156 loc) · 13.7 KB

ecosystem.# Quick Start

This guide gets you from a clean checkout of OpenFrame OSS Tenant to a running understanding of the platform's services in about five minutes of reading plus whatever your local Maven/Kubernetes build takes. It covers the TL;DR install path, a minimal "Hello World" call through the gateway, what to expect back, and where to go next.

Scope note: OpenFrame OSS Tenant is the deployable, multi-service tenant platform. It assembles Spring Boot services (Java 25, Spring Boot 4.1.1) and a Rust client binary on top of shared library modules pinned from OpenFrame OSS Library at version 7.0.11, plus Helm/Argo CD manifests for the datasources and platform layer it depends on. No repository is currently recorded as consuming this one — it sits at the end of the dependency chain shown in the ecosystem graph.

What You Are Installing

flowchart LR
    r1["OpenFrame OSS Tenant"] -->|"maven 7.0.11"| r2["OpenFrame OSS Library"]
Loading

The tenant repository builds nine Maven artifacts (all 1.0.0-SNAPSHOT) and one Rust crate:

Artifact Kind
com.openframe:openframe-api Maven, internal API/GraphQL service
com.openframe:openframe-authorization-server Maven, OAuth2/OIDC authorization server
com.openframe:openframe-client Maven, client-facing runtime integration
com.openframe:openframe-config Maven, Spring Cloud Config server
com.openframe:openframe-external-api Maven, external REST API
com.openframe:openframe-gateway Maven, reactive HTTP/WebSocket gateway
com.openframe:openframe-management Maven, startup init and scheduled jobs
com.openframe:openframe-stream Maven, Kafka event ingestion/enrichment
com.openframe:openframe-test Maven, shared test support
openframe_client Cargo, the endpoint agent binary

Every service inherits from the root pom.xml (com.openframe:openframe-parent), which pins Java 25, Spring Boot 4.1.1, and the OpenFrame OSS Library artifacts at 7.0.11.

Prerequisites (TL;DR)

Before you start, make sure you have:

  • Java 25 and Maven — the root pom.xml targets java.version 25 and is built with the Maven wrapper settings in .mvn/settings.xml (used by every service Dockerfile, e.g. openframe/services/openframe-api/Dockerfile).
  • Rust/Cargo — required only if you are building the openframe-client agent from clients/openframe-client/Cargo.toml.
  • Docker — each service ships a multi-stage Dockerfile (builder stage eclipse-temurin:25-jdk-alpine-3.23, runtime stage eclipse-temurin:25-jre-alpine-3.23).
  • A Kubernetes cluster with Argo CD (or equivalent) — the manifests/ tree is an Argo CD application set, not a docker-compose stack.
  • A GitHub token for the Maven build — the Dockerfiles mount a GITHUB_TOKEN build secret to pull com.openframe.oss:* artifacts at 7.0.11 from the private OpenFrame OSS Library registry.

For a full breakdown of required tooling and accounts, see Prerequisites. For how the pieces fit together at a system level, see Introduction and the architecture overview.

Full local development workflows (running services outside containers, pointing at local datasources, iterating on a single module) belong in Local Development and Environment Setup. This page only gets you to a first successful run.

TL;DR: 5-Minute Setup

1. Clone the repository

git clone https://github.com/flamingo-stack/openframe-oss-tenant.git
cd openframe-oss-tenant

2. Build the Java services with Maven

The repository root pom.xml defines a multi-module reactor covering every service under openframe/services:

openframe-config
openframe-api
openframe-client
openframe-stream
openframe-management
openframe-gateway
openframe-external-api
openframe-authorization-server
openframe-test

Build the full reactor (requires a GITHUB_TOKEN with access to the OpenFrame OSS Library packages, since the OpenFrame OSS artifacts are resolved from there):

export GITHUB_TOKEN=<your-token>
mvn clean package -U --batch-mode --no-transfer-progress -Dmaven.test.skip=true

To build a single service only (mirroring what each Dockerfile does, for example openframe/services/openframe-api/Dockerfile):

mvn clean package -U -pl openframe/services/openframe-api -am --batch-mode --no-transfer-progress -Dmaven.test.skip=true

3. Build service container images

Each service has its own Dockerfile at the module root (for example openframe/services/openframe-api/Dockerfile, openframe/services/openframe-gateway/Dockerfile, openframe/services/openframe-client/Dockerfile, openframe/services/openframe-config/Dockerfile, openframe/services/openframe-authorization-server/Dockerfile, openframe/services/openframe-external-api/Dockerfile). They all follow the same two-stage pattern: a Maven/JDK build stage producing target/*.jar, and a slim eclipse-temurin:25-jre-alpine-3.23 runtime stage that runs as a non-root appuser.

docker build \
  --secret id=GITHUB_TOKEN,env=GITHUB_TOKEN \
  -f openframe/services/openframe-api/Dockerfile \
  -t openframe-api:local .

Repeat per service, swapping the -f path and tag. In CI, these images are published to ghcr.io/flamingo-stack/openframe-oss-tenant/<service> by .github/workflows/release.yml.

4. Deploy via the Argo CD manifest tree

OpenFrame OSS Tenant does not ship a docker-compose.yml; it is deployed as a set of Argo CD applications defined under manifests/:

manifests/
├── apps/          # Argo CD application composition (manifests/apps/values.yaml)
├── platform/      # namespace, ingress-nginx, dev-tools, openframe-config
├── datasources/   # cassandra, kafka, mongodb, mongodb-meshcentral, mysql-fleetmdm, nats, pinot, redis-cluster, zookeeper
└── tenant/        # the OpenFrame services themselves, plus Fleet MDM and MeshCentral charts

manifests/apps/values.yaml composes, in wave order: namespace-platform (wave -1) → ingress-nginx, dev-tools, openframe-config (wave 0, platform) → namespace-datasources (wave -1) → cassandra, debezium-connect, kafka, mongodb, mongodb-meshcentral, mysql-fleetmdm, nats, pinot, redis-cluster, zookeeper (wave 0, datasources). The manifests/tenant chart then deploys openframe-api, openframe-authorization-server, openframe-client, openframe-external-api, openframe-gateway, openframe-management, openframe-stream, plus the oci://ghcr.io/flamingo-stack/fleetmdm/helm-charts/fleet and oci://ghcr.io/flamingo-stack/meshcentral/helm-charts/meshcentral dependency charts.

Point Argo CD at the manifests/apps application set (or apply the Helm charts directly with helm/kubectl if you are not running Argo CD) to bring up the full platform, datasources first.

If you only need the agent binary, skip straight to Building the Rust Client below.

For step-by-step first actions once something is running, continue to First Steps.

Hello World: Calling the Gateway

Once the tenant namespace is up, every inbound HTTP request flows through openframe-gateway, which routes by path. The routes are defined in configs/base/openframe-gateway.yml:

Path Prefix Routed Service
/sas/** openframe-authorization-server.tenant.svc.cluster.local
/api-docs/** openframe-external-api.tenant.svc.cluster.local (Swagger docs)
/api/** openframe-api.tenant.svc.cluster.local
/clients/** openframe-client.tenant.svc.cluster.local
/** openframe-frontend.tenant.svc.cluster.local (SPA)

A minimal "Hello World" for this platform is confirming the gateway is alive and correctly routing to the internal API service's health endpoint. Every service in this repository exposes Spring Boot Actuator under a versioned base path, configured once in the shared configs/base/application.yml:

management:
  base-path: /management
  endpoints:
    web:
      base-path: /management/${RELEASE_VERSION:v1}
      exposure:
        include: health,info,metrics,prometheus

From inside the cluster (or through your ingress), call the API service's health endpoint through the gateway:

curl -s https://<your-ingress-host>/api/management/v1/health

If you are port-forwarding directly to the openframe-api service instead of going through the gateway:

kubectl port-forward -n tenant svc/openframe-api 8080:8080
curl -s http://localhost:8080/management/v1/health

Replace <your-ingress-host> with whatever host your manifests/platform/ingress-nginx deployment is bound to, and tenant with your actual namespace if it differs. Refer to your environment configuration for the exact host and namespace — these are not fixed values in this repository.

Expected Output

A healthy service responds on its actuator health endpoint with a JSON body resembling:

{
  "status": "UP"
}

Because management.endpoint.health.show-details is set to always in configs/base/application.yml, a healthy instance with dependent datastores reachable will show nested component statuses (datastore connectivity, disk space, and similar checks) all reporting UP. If MongoDB, Redis, Cassandra, Kafka, or NATS are not yet reachable — for example if the datasources wave has not finished deploying — you will see DOWN for the corresponding component and an overall DOWN status, which is expected until the datasource layer in manifests/datasources is ready.

A second useful check is the Spring Cloud Config server, since every other service bootstraps its configuration from it:

spring:
  config:
    import: "optional:configserver:${SPRING_CONFIG_URL:http://openframe-config.microservices.svc.cluster.local:8888}"

This spring.config.import line appears identically in openframe/services/openframe-api/src/main/resources/application.yml, openframe/services/openframe-authorization-server/src/main/resources/application.yml, and openframe/services/openframe-client/src/main/resources/application.yml. If openframe-config is not reachable at startup, dependent services will log a config-import warning (it is marked optional:, so they will still start, but without centrally-managed configuration overrides).

Building the Rust Client (Optional)

The endpoint agent, openframe-client (Cargo package openframe-client, crate name openframe), lives at clients/openframe-client. It is a thin binary over the openframe-agent-lib crate, pulled directly from OpenFrame OSS Library at tag v0.0.5 as declared in clients/openframe-client/Cargo.toml:

[dependencies]
openframe-agent-lib = { git = "https://github.com/flamingo-stack/openframe-oss-lib.git", tag = "v0.0.5" }
anyhow = "1.0"

Its entire main.rs (clients/openframe-client/src/main.rs) is a one-line call into the library:

fn main() -> anyhow::Result<()> {
    openframe::run()
}

Build it with the provided clients/openframe-client/Makefile, which requires OPENFRAME_VERSION to be set (the library's build script panics without it):

cd clients/openframe-client
make build OPENFRAME_VERSION=0.0.0-dev

Other targets available in that Makefile: make fmt, make fmt-check, make clippy, make lint (runs both), make test (builds first, then runs cargo test --release --locked), and make clean. You can cross-compile with make build TARGET=<triple>.

Next Steps

Once you have the services building and a response from the gateway or API health endpoint, continue with:

  • First Steps — the first real actions to take against a running deployment.
  • Introduction — what OpenFrame OSS Tenant is for and how it fits the broader Flamingo/OpenFrame platform.
  • Prerequisites — the full list of accounts, tools, and access you need before a serious install.
  • Local Development and Environment Setup — running individual services outside of full cluster deployment, iterating on one module at a time.
  • Architecture Overview and the generated Architecture Reference — the full service map, request/event flow, and module-by-module documentation (API, client, gateway, stream, authorization, and the shared OpenFrame OSS Library modules each service depends on).
  • Security — authentication, tenant isolation, and the OAuth2/OIDC flows implemented by openframe-authorization-server.
  • Testing — how the openframe-test module and service-level test suites are structured.
  • Contributing Guidelines — how to propose and land changes.

If you plan to work on the agent binary itself rather than the platform services, the OpenFrame CLI is a separate, externally maintained repository with its own installation instructions and documentation — it is not part of this repository and should not be looked for in a local subdirectory here.

For questions, OpenFrame does not use GitHub Issues or Discussions for support — join the conversation on the OpenMSP Slack community instead.