Openframe Management Service Core
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Openframe Management Service Core is the operational control plane assembled by this repository's openframe-management Spring Boot service. Its implementation comes from the com.openframe.oss:openframe-management-service-core library, pinned at 7.0.11. The tenant application starts the library and contributes an AdditionalStreamConfigurationProvider that returns no tenant-specific streams.
The module initializes tenant operational state, exposes administrative REST endpoints, refreshes package-search catalogs, and runs reconciliation tasks. It coordinates configuration and records held by the data libraries rather than replacing those domain services.
flowchart LR
Operator["Platform Operator"] --> Management["Openframe Management Service"]
Management --> Mongo["MongoDB Data Services"]
Management --> Redis["Redis Distributed Locks"]
Management --> Nats["NATS JetStream"]
Management --> Fleet["Fleet MDM"]
Management --> Catalogs["Homebrew and winget Catalogs"]
Management --> Pinot["Device Event Projection"]
The service is one of the images deployed by the tenant chart. It uses the shared MongoDB and Redis configuration, and its base configuration explicitly connects it to Kafka and NATS. NATS is used here for stream provisioning and client or tool-agent update publication; the separate stream service handles Kafka event processing.
| Area | Responsibility | Primary components |
|---|---|---|
| Application wiring | Scans OpenFrame components, excludes the Cassandra health indicator, provides BCrypt password encoding, and enables scheduled work. | ManagementConfiguration, ShedLockConfig |
| Startup initialization | Ensures secrets, log keys, NATS streams, client configuration, integrated agents, versions, and feature flags are present or reconciled. | ApplicationRunner initializers |
| Operations API | Manages integrated-tool configuration, triggers device projection replay, and retains one temporary compatibility endpoint. | REST controllers |
| Catalog synchronization | Imports Homebrew and winget metadata into a replace-and-prune catalog snapshot. | Catalog fetchers, writer, scheduler |
| Scheduled maintenance | Detects offline devices, synchronizes API-key statistics, provisions Fleet MDM, and retries update publication. | Scheduler components |
| Fleet integration | Provisions or logs in to Fleet MDM and creates an API-only service user. | FleetApiKeyResolver |
Initializers run when Spring Boot starts. The integrated tool-agent initializer is ordered at 20, the OpenFrame client configuration initializer at 30, client-version propagation at 40, and feature-flag application at 50. The ordering ensures target documents exist before version and flag changes are processed. Key and secret initialization failures are logged without preventing management from starting, allowing a subsequent restart to retry them.
flowchart TD
Start["Management Service Starts"] --> Keys["Initialize Agent Log Key and Registration Secret"]
Start --> Streams["Save Required NATS Streams"]
Start --> Agents["Load Integrated Tool Agent Configurations"]
Agents --> ClientConfig["Load Client Configuration"]
ClientConfig --> ClientVersion["Process Configured Client Version"]
ClientVersion --> Flags["Apply Client Feature Flags"]
Streams --> RemoveOld["Remove Obsolete NATS Streams"]
When openframe.package-search.sync.enabled is true, the scheduler executes independent Homebrew and winget refreshes. A global Redis ShedLock allows only one catalog writer across the deployment. A successful fetch upserts the current snapshot with one timestamp, then removes entries for that manager older than the snapshot. On a fetch or write failure, the previous catalog remains available and the failure counter is incremented.
flowchart LR
Schedule["Scheduled Catalog Task"] --> Lock["Acquire Global Redis Lock"]
Lock --> Fetch["Fetch Manager Catalog"]
Fetch --> Normalize["Map Valid Entries"]
Normalize --> Upsert["Upsert Timestamped Snapshot"]
Upsert --> Prune["Prune Older Manager Entries"]
Prune --> Metric["Record Success Metric"]
Fetch -.-> Failure["Keep Previous Snapshot and Record Failure"]
OpenframeRedisKeyBuilder. Package-catalog locks intentionally use a global prefix because the catalog is shared across tenants.DevicePinotResyncController loads all machines and delegates their processing to MachineTagEventService; it does not write Pinot directly.2026-07-11.OpenFrameClientVersionUpdateService is currently an empty component despite accepting an update publisher. The actual startup version propagation described by OpenFrameClientVersionInitializer delegates to ClientVersionService, not this placeholder.The following documents describe the module by operational concern:
The source implementation is maintained in the OpenFrame OSS Library. The tenant runnable application is ManagementApplication. Library source links are intentionally retained in the detailed submodule documents because the library owns the implementation.