Skip to content

Latest commit

 

History

History
195 lines (126 loc) · 16.7 KB

first-steps.md

File metadata and controls

195 lines (126 loc) · 16.7 KB

First Steps

This guide walks through the first things to do after you have OpenFrame OSS Tenant running, the configuration you should check right away, the key features worth exploring, and where to get help if you get stuck. It assumes you have already completed the steps in Prerequisites and brought the platform up with Quick Start.

OpenFrame OSS Tenant is the deployable, multi-service tenant platform for OpenFrame: a set of Spring Boot services (openframe-api, openframe-authorization-server, openframe-client, openframe-config, openframe-external-api, openframe-gateway, openframe-management, openframe-stream), a Rust agent (openframe_client), shared OpenFrame OSS Library modules, data infrastructure (MongoDB, Redis, Cassandra, Kafka, NATS, Pinot, MySQL, ZooKeeper, Debezium), and Helm/Argo CD manifests that assemble everything into an MSP operations platform. For the full architecture picture, see OpenFrame OSS Tenant Architecture and the generated Ecosystem Reference.

Note: This repository has no recorded downstream consumers in the code graph (coverage is partial), so treat it as the platform you deploy and extend, not as a library other teams import directly.

Before You Begin

Everything below assumes the services in manifests/apps have been applied through Argo CD (or your chosen bootstrap path) and are healthy. If you have not yet deployed the platform, go back to Quick Start first.

First 5 Things to Do After Installation

Getting Started with OpenFrame - Organization Setup Basics

1. Confirm every core service is healthy

The tenant is made up of eight Spring Boot services defined under openframe/services: openframe-config, openframe-api, openframe-client, openframe-stream, openframe-management, openframe-gateway, openframe-external-api, and openframe-authorization-server (plus openframe-test, used for test tooling). Each service exposes Spring Boot Actuator endpoints under the shared management.endpoints.web.base-path defined in configs/base/application.yml (/management/${RELEASE_VERSION:v1}), including health, info, metrics, and prometheus.

A good first check is the API service's dedicated liveness endpoint, which requires no datastore and returns a plain OK:

GET /health

This is served by HealthController in the openframe-api-service-core library (consumed by openframe-api), documented in API Controllers. Use the Actuator health endpoints on each service for a deeper per-datastore check (MongoDB, Redis, Cassandra, Kafka, NATS).

2. Verify the Argo CD application tree deployed cleanly

The delivery chain in the Ecosystem Reference shows that manifests/apps composes the platform in two waves:

  • Platform (wave 0, after namespace wave -1): manifests/platform/namespace-platform, manifests/platform/ingress-nginx, manifests/platform/dev-tools, manifests/platform/openframe-config.
  • Datasources (wave 0, after namespace wave -1): manifests/datasources/cassandra, manifests/datasources/debezium-connect, manifests/datasources/kafka, manifests/datasources/mongodb, manifests/datasources/mongodb-meshcentral, manifests/datasources/mysql-fleetmdm, manifests/datasources/nats, manifests/datasources/pinot, manifests/datasources/redis-cluster, manifests/datasources/zookeeper.

Confirm in Argo CD that every application in this tree is Synced and Healthy before moving on; most application-level failures trace back to one of these datasources not being ready yet.

3. Check the gateway routing table

openframe-gateway is the single entry point for the platform. Its routes are defined in configs/base/openframe-gateway.yml and point to:

Route ID Path Target
sas /sas/** openframe-authorization-server.tenant.svc.cluster.local
swagger-api-docs /api-docs/** openframe-external-api.tenant.svc.cluster.local
openframe-api /api/** openframe-api.tenant.svc.cluster.local
openframe-client /clients/** openframe-client.tenant.svc.cluster.local
openframe-ui-spa /** openframe-frontend.tenant.svc.cluster.local

Hitting the root path should return the frontend SPA; /api-docs/** is where the published OpenAPI contract for the external API lives. If a route 404s, confirm the backing service is registered with openframe-config (see step 5).

4. Review the shared datasource connections

configs/base/application.yml is the configuration shared by every service and wires up the core datastores by in-cluster hostname:

  • MongoDB: mongodb-0.mongodb.datasources.svc.cluster.local
  • Redis Cluster: redis-cluster-0/1/2.redis-cluster-headless.datasources.svc.cluster.local
  • Cassandra: cassandra.datasources.svc.cluster.local
  • Pinot controller/broker: pinot-controller/pinot-broker.datasources.svc.cluster.local

Several services (openframe-api, openframe-client, openframe-external-api, openframe-management, openframe-stream) additionally connect to Kafka (kafka.datasources.svc.cluster.local) and NATS (nats.datasources.svc.cluster.local) as defined in their respective configs/base/openframe-*.yml files. If a service fails to start, check its logs against these hostnames first — most startup failures are connectivity issues to one of these datasources rather than application bugs.

5. Confirm the Config Server is serving configuration

Every service bootstraps with spring.config.import pointing at the Config Server, for example in openframe/services/openframe-api/src/main/resources/application.yml:

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

openframe-config is built from the openframe-config-core library and also serves shared Logback XML resources at GET /logging/{filename} (see Openframe Config Core). If a service cannot reach the config server, it will typically still start (the import is optional:), but will be missing centrally managed settings — check the service's effective configuration if behavior looks unexpected.

Common Initial Configuration

Tenant isolation

configs/base/application.yml sets:

openframe:
  tenant-isolation:
    enabled: true
  redis:
    tenant-id: default

This is required for OSS single-tenant deployments: OpenFrame OSS Library 7.0.11 registers services (notifications, tickets, knowledge base, and others) that constructor-require tenant-aware repositories, which are only enabled when tenant isolation is turned on. Leaving this disabled causes every Java service to crash-loop at startup, so do not turn it off without understanding the consequence described in the comment block at the end of configs/base/application.yml.

Feature toggles

Two feature flags are on by default and worth knowing about early:

openframe:
  client:
    update:
      feature:
        enabled: true
  tool-agent:
    update:
      feature:
        enabled: true

These control whether the platform pushes client and tool-agent updates automatically. Review them before your first production-like rollout.

Delivery engine defaults

The machine delivery engine (used to dispatch commands and updates to agents) ships with conservative defaults in configs/base/application.yml under openframe.delivery, including a disabled sweep job (sweep.enabled: false), a 30-second ack threshold, 3 max attempts, and a 7-day TTL. Review the openframe.delivery.defaults block if your environment needs different retry or offline-behavior semantics (offline-behavior: RETRY_ON_RECONNECT).

Security and encryption

configs/base/application.yml defines token lifetimes and the encryption password/salt pair under security:

security:
  oauth2:
    token:
      access:
        expiration-seconds: 3600
      refresh:
        expiration-seconds: 604800
        max-refresh-count: 10080
  encryption:
    password: ${ENCRYPTION_PASSWORD:...}
    salt: ${ENCRYPTION_SALT:...}

Override ENCRYPTION_PASSWORD and ENCRYPTION_SALT with environment-specific secrets before going to production rather than relying on the checked-in defaults. For deeper security guidance, see Security.

Gateway OAuth client

The gateway authenticates to the authorization server as a confidential OAuth client. openframe-idp-configuration (run inside openframe-management) creates and reconciles this client automatically when openframe.management.idp.init.enabled is true, reading openframe.gateway.oauth.client-id, openframe.gateway.oauth.client-secret, and openframe.gateway.oauth.redirect-uri. If you rotate the client secret, restart management and every gateway instance together — until both sides agree on the secret, token exchange and refresh will fail with invalid_client. Details are in Openframe IDP Configuration.

Mail provider

If you plan to send invitation, password-reset, or verification emails, configure openframe.mail.provider to either the SMTP or HubSpot adapter supplied by openframe-notification-mail. See SMTP Email Service and HubSpot API Email Service for the required properties (for example openframe.mail.hubspot.access-token and the per-flow template IDs).

Exploring Key Features

Tenant onboarding and authentication

openframe-authorization-server (backed by openframe-authorization-service-core) handles OAuth2/OIDC login, tenant discovery, invitations, SSO (Google, Microsoft, Apple), and password reset. Start by exploring:

  • GET /tenant/discover and GET /tenant/email-available for tenant and provider discovery.
  • POST /oauth/register for new tenant registration.
  • POST /invitations/accept and GET /invitations/accept/sso for invitation-based onboarding.

See Openframe Authorization Service Core for the full flow, including the Apple native grant and the signup-ticket grant used by mobile clients.

Device and agent management via the API

openframe-api, built from openframe-api-service-core and openframe-api-lib, exposes REST controllers and GraphQL data fetchers for tenant administration, device operations, and RMM workflows. Worth trying first:

  • PATCH /devices/{machineId} to change a device's lifecycle status.
  • /force/** endpoints (ForceAgentController) to trigger client updates, tool-agent installs/updates/reinstalls, and uninstalls.
  • GET /openframe-client/configuration to inspect the configuration an agent would receive.

Details are in API Controllers and its sub-pages on Device and Agent Operations.

The external API for programmatic access

openframe-external-api (from openframe-external-api-service-core) exposes a stable, API-key-authenticated REST surface at /api/v1 for customers, devices, tickets, knowledge-base content, logs, and integrated tools, plus a /tools/{toolId}/** proxy for integrations such as Fleet MDM. The OpenAPI contract is served at /api-docs/** through the gateway. This is the right place to start if you are building external integrations rather than using the dashboard. See Openframe External Api Service Core.

Agent credentials

Before enrolling your first managed device, look at how registration and log keys work: GET /agent/keys/{type} and POST /agent/keys/{type}/rotate (requires ADMIN), plus GET /agent/log-key and the /agent/registration-secret/** endpoints. These are documented in Agent Credentials and the underlying Api Agentkey Services.

Event streaming and analytics

openframe-stream (from openframe-stream-service-core) ingests Kafka change events (via Debezium), normalizes them, and projects them into MongoDB and Pinot for analytics. If you want to understand how device and tool events flow through the platform, read Configuration and Handlers.

The OpenFrame agent (client)

The openframe_client Rust binary (clients/openframe-client, Cargo package openframe_client v0.1.0) is a thin entry point over the shared openframe-agent-lib crate, pinned at tag v0.0.5 from the OpenFrame OSS Library. The openframe-client Java service is its server-side counterpart, built from openframe-client-core, and handles agent registration, commands, delivery, package/OS updates, and messaging over NATS and Kafka. See Openframe Client Core Java for the full component map.

Deployment manifests

All deployment configuration lives under manifests/: manifests/apps composes the Argo CD application tree, manifests/platform provisions namespaces/ingress/dev tools/config, manifests/datasources provisions the data infrastructure, and manifests/tenant deploys the OpenFrame services alongside Fleet MDM and MeshCentral. Browsing these directories is the fastest way to understand what actually gets deployed and at which Helm chart versions.

Where to Get Help

Next: Going Deeper

Once the five checks above are green and you have poked at the key features, continue into Local Development if you plan to build or modify services, or into Environment Setup to prepare a development environment aligned with the tenant's Java 25 / Spring Boot 4.1 / Spring Cloud 2025.1.3 toolchain declared in pom.xml. For a conceptual introduction to the platform before diving into configuration, revisit Introduction.