Skip to content

Latest commit

 

History

History
191 lines (134 loc) · 14.6 KB

prerequisites.md

File metadata and controls

191 lines (134 loc) · 14.6 KB

Prerequisites

This page lists what you need installed, provisioned, and configured before working with OpenFrame OSS Tenant (flamingo-stack/openframe-oss-tenant) — the multi-service, Spring Boot + Rust + Helm tenant platform that assembles the OpenFrame API, authorization server, gateway, client, management, external API, config server, and stream services, together with their Kubernetes/Argo CD deployment manifests.

Read this before Quick Start or First Steps.

Who This Is For

  • Engineers building or running one or more of the Java services under openframe/services.
  • Engineers building the Rust client binary under clients/openframe-client.
  • Operators deploying the Helm/Argo CD manifests under manifests/.

The three audiences need overlapping but not identical tooling, so the tables below are grouped accordingly.

Required Software And Versions

Core Toolchain (All Contributors)

Tool Required Version Why Verified In
Java (JDK) 25 <java.version>25</java.version> in the root pom.xml; all services build and run against JDK 25 pom.xml
Maven Any version compatible with the Spring Boot 4.1 parent (the Dockerfiles install it via Alpine's apk add maven) Builds the multi-module Maven project pom.xml, service Dockerfiles
Rust toolchain (cargo, rustc) Edition 2021-compatible stable toolchain Builds the openframe-client Rust binary and its openframe-agent-lib dependency clients/openframe-client/Cargo.toml
Git Any recent version Clone the repository; the Rust client pins its library dependency via a Git tag clients/openframe-client/Cargo.toml
Docker Any recent version with BuildKit support Builds the service images; Dockerfiles use --mount=type=secret (BuildKit-only syntax) openframe/services/*/Dockerfile

Framework And Platform Versions Pinned By The Project

Component Pinned Version Source
Spring Boot 4.1.1 pom.xml (spring-boot-starter-parent)
Spring Cloud 2025.1.3 pom.xml (spring-cloud.version)
Lombok 1.18.48 pom.xml
Apache Pinot client 1.5.1 pom.xml
JJWT 0.11.5 pom.xml
OpenFrame OSS Library (Maven artifacts) 7.0.11 pom.xml (openframe.libs.version), confirmed by get_repo_ecosystem
openframe_agent_lib (Cargo, Rust client library) tag v0.0.5 clients/openframe-client/Cargo.toml, confirmed by get_repo_ecosystem
Container base image (build and runtime) eclipse-temurin:25-jdk-alpine-3.23 / eclipse-temurin:25-jre-alpine-3.23 service Dockerfiles

Note: All nine Maven modules (openframe-api, openframe-authorization-server, openframe-client, openframe-config, openframe-external-api, openframe-gateway, openframe-management, openframe-stream, openframe-test) and the Cargo crate openframe_client share the versions above through the root pom.xml and clients/openframe-client/Cargo.toml. There is no separate per-service version matrix.

Deployment Tooling (Operators / Platform Engineers)

Tool Purpose Evidence
kubectl Interact with the target Kubernetes cluster Required by any Argo CD/Helm-based deployment described in manifests/
Helm Render/install the charts under manifests/platform, manifests/datasources, and manifests/tenant Chart dependency declarations in manifests/*/Chart.yaml
Argo CD Reconciles the manifests/apps application set (platform, datasources, tenant waves) manifests/apps/values.yaml, delivery chain facts from get_repo_ecosystem
OCI-capable registry client (Docker/Helm OCI login) Pull/push images and charts published to ghcr.io/flamingo-stack/openframe-oss-tenant/* and the OCI chart oci://ghcr.io/flamingo-stack/openframe-oss-tenant/app-of-apps .github/workflows/release.yml facts in the ecosystem graph

OpenFrame CLI (External Tool)

The OpenFrame CLI is maintained in its own repository, separate from openframe-oss-tenant. If your workflow uses it (for example, to bootstrap a local environment or manage tenant operations), install it per its own installation instructions and consult its documentation. It is not part of this repository's build or source tree.

System Requirements

This is a multi-service platform (nine Spring Boot services plus datastores and messaging infrastructure), so plan capacity accordingly:

  • CPU/Memory: Running the full stack (API, authorization server, gateway, client, management, external API, config server, stream service, plus MongoDB, Redis Cluster, Cassandra, Kafka, ZooKeeper, NATS, Pinot, MySQL, and Debezium Connect) is resource-intensive. A single developer machine should have multiple CPU cores and enough RAM to run a Kubernetes-in-Docker style cluster plus the JVM services, each of which runs on eclipse-temurin:25-jre-alpine with no explicit heap caps shown in the repository configuration.
  • Disk: Space for Docker/Helm image layers (base JRE/JDK Alpine images, Maven dependency cache, Cargo registry cache), plus persistent volumes for the datasources (MongoDB replica sets, Cassandra, Kafka/ZooKeeper, MySQL for Fleet MDM).
  • Container runtime: Docker with BuildKit enabled is required because the service Dockerfiles use RUN --mount=type=secret,id=GITHUB_TOKEN to inject a GitHub token during the Maven build stage.
  • Kubernetes cluster: Required for anything beyond building individual Java/Rust artifacts — the datasources, platform services, and tenant workloads are all deployed as Argo CD applications across platform, datasources, and tenant namespaces (see manifests/apps/values.yaml).
  • Operating system for the Rust client: openframe-client is a cross-platform agent; clients/openframe-client/Makefile supports an optional TARGET variable for cross-compilation.

Account And Access Requirements

  • GitHub access to flamingo-stack/openframe-oss-tenant to clone the repository: git clone https://github.com/flamingo-stack/openframe-oss-tenant.git.
  • GitHub Container Registry (GHCR) access — service images are published to ghcr.io/flamingo-stack/openframe-oss-tenant/* and the app-of-apps chart to oci://ghcr.io/flamingo-stack/openframe-oss-tenant/app-of-apps. Pulling private images/charts requires authenticated access to ghcr.io.
  • A GitHub token for the Maven build (GITHUB_TOKEN) — every service Dockerfile mounts a BuildKit secret named GITHUB_TOKEN and exports it before running mvn clean package, because the Maven settings file (.mvn/settings.xml, copied into the build image) authenticates against GitHub to resolve the com.openframe.oss:* artifacts published by OpenFrame OSS Library. You need a GitHub token with permission to read packages from that upstream repository.
  • Access to the upstream flamingo-stack/openframe-oss-lib repository/packages — this repository pins and consumes 23 Maven artifacts and one Cargo crate from it at version 7.0.11 / tag v0.0.5 (confirmed by get_repo_ecosystem). Your Maven and Cargo credentials must be able to resolve these.
  • Kubernetes cluster access (a kubeconfig with sufficient RBAC) if you intend to deploy any of the manifests/ content — platform namespace creation, datasource provisioning, and tenant workload deployment all require cluster-admin-level or namespace-scoped permissions depending on scope.
  • Argo CD access, if your deployment flow relies on the Argo CD application set defined in manifests/apps/values.yaml, to observe or manage sync waves for the platform and datasources application groups.
  • Community support, not GitHub Issues — this project does not use GitHub Issues or GitHub Discussions. Questions and support happen on the OpenMSP Slack community (join link).

Environment Variables Needed

The shared service configuration in configs/base/application.yml and the per-service files under configs/base/ reference the following environment variables. Set these before running services outside of their default in-cluster service-discovery hostnames:

Variable Used By Purpose Default (if any)
REDIS_CLUSTER_NODES all services via configs/base/application.yml Overrides the three default Redis Cluster node addresses redis-cluster-0.redis-cluster-headless.datasources.svc.cluster.local:6379,... (two more nodes)
RELEASE_VERSION all services (Actuator base path) Sets the management-endpoint base-path version segment (/management/${RELEASE_VERSION:v1}) v1
SPRING_CONFIG_URL openframe-api, openframe-authorization-server, openframe-client (per-service application.yml), and shared logging config Points each service at the OpenFrame Config Server for spring.config.import and logging-config delivery http://openframe-config.microservices.svc.cluster.local:8888 (service bootstrap) / http://openframe-config.platform.svc.cluster.local:8888 (shared logging)
ENCRYPTION_PASSWORD all services (configs/base/application.yml) Password used for the shared OpenFrame encryption utility kdCJxik7VWRlG5L8jKHBeJQK5unssi7u1uHOd01b75ilr8n (placeholder default — override for real environments)
ENCRYPTION_SALT all services (configs/base/application.yml) Salt used for the shared OpenFrame encryption utility 74f62c51327175b05abe1ad78030565c (placeholder default — override for real environments)
OPENFRAME_CLUSTER_ID all services (configs/base/application.yml) Identifies the cluster; also namespaces Kafka Streams application IDs cluster-id
MONGO_INITDB_ROOT_USERNAME MongoDB and MeshCentral MongoDB init scripts Root username for MongoDB replica-set bootstrap required, no default (script fails with Required if unset)
MONGO_INITDB_ROOT_PASSWORD MongoDB and MeshCentral MongoDB init scripts Root password for MongoDB replica-set bootstrap required, no default
MONGO_INITDB_DATABASE manifests/datasources/mongodb/scripts/mongo-init.sh and readiness script Target application database name required, no default
MONGO_APP_USERNAME manifests/datasources/mongodb/scripts/mongo-init.sh and readiness script Application-level MongoDB user created during init required, no default
MONGO_APP_PASSWORD manifests/datasources/mongodb/scripts/mongo-init.sh and readiness script Password for the application-level MongoDB user required, no default
MONGODB_PORT MeshCentral MongoDB scripts MongoDB listen port 27017
SERVICE_NAME / NAMESPACE manifests/datasources/mongodb-meshcentral/scripts/meshcentral-mongodb-init.sh Build the Kubernetes FQDN for replica-set member registration meshcentral-mongodb / datasources
OPENFRAME_VERSION clients/openframe-client/Makefile Consumed by openframe-agent-lib's build script; the build panics if unset when building the Rust client 0.0.0-dev (Makefile default)
GITHUB_TOKEN service Dockerfiles (via BuildKit secret) Authenticates Maven dependency resolution against GitHub-hosted OpenFrame OSS Library packages required, no default
GITHUB_ACTOR service Dockerfiles (build arg) Identifies the GitHub actor for the authenticated Maven build required for CI builds

Secrets such as ENCRYPTION_PASSWORD, ENCRYPTION_SALT, database credentials, and GITHUB_TOKEN must never use the placeholder/default values shown above outside of local experimentation. Refer to your environment configuration for the values appropriate to your deployment.

Verification Commands

Run these after installing the prerequisites to confirm your toolchain is ready, before attempting a build or deployment.

Java And Maven

java -version

Expect a JDK reporting major version 25, matching <java.version>25</java.version> in pom.xml.

mvn -version

Confirm Maven is on your PATH and resolves to a JDK 25-compatible installation.

Rust Toolchain

cargo --version
rustc --version

Confirm cargo is available; it is required by clients/openframe-client/Makefile targets (build, test, fmt, clippy).

cd clients/openframe-client && cargo fmt --all -- --check

A clean exit confirms the Rust toolchain can parse and format the client crate (mirrors the fmt-check Makefile target).

Docker / BuildKit

docker version

Confirm the Docker client and daemon versions, and that BuildKit is enabled (required for the RUN --mount=type=secret syntax used in every service Dockerfile).

docker buildx version

Confirms BuildKit's buildx component is available if your Docker installation separates it out.

Git

git --version

Kubernetes And Helm (Operators Only)

kubectl version --client
helm version

Confirm both are installed before attempting to work with any chart under manifests/platform, manifests/datasources, or manifests/tenant.

kubectl cluster-info

Confirms your kubeconfig points at a reachable cluster before applying any Argo CD application from manifests/apps.

GitHub Container Registry Access

docker login ghcr.io

Confirms you can authenticate to the registry that hosts this repository's published images (ghcr.io/flamingo-stack/openframe-oss-tenant/*) and the OCI app-of-apps chart.

Maven Dependency Resolution Against OpenFrame OSS Library

export GITHUB_TOKEN=<your-token>
mvn -U dependency:resolve -pl openframe/services/openframe-api -am

A successful resolution confirms your GitHub token can pull the pinned com.openframe.oss:* artifacts (version 7.0.11) from OpenFrame OSS Library that every service module depends on.


Once these prerequisites are satisfied, continue to Quick Start to build and run the services, or to First Steps for a guided walkthrough. For a deeper look at how the services, datasources, and deployment manifests fit together, see the architecture overview and the ecosystem reference. Development environment setup details are covered in the development environment guide and local development guide.