Rmm 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
Rmm Service Core is the Mongo-backed Remote Monitoring and Management projection and selection layer assembled into OpenFrame OSS Tenant through the com.openframe.oss:openframe-data-mongo-sync library, pinned at version 7.0.11. It resolves the device population for scheduled work, translates supported package-manager operations into agent script inputs, and maintains tenant-scoped software and vulnerability read models from aggregated device inventory.
The implementation is supplied by OpenFrame OSS Library and runs as part of the tenant services that include the Mongo synchronous data module. It is not an HTTP controller or an agent runtime: it provides reusable Spring components for higher-level RMM dispatch, stream processing, API queries, and repository-backed persistence.
flowchart TD
Dispatch["RMM Dispatch or Stream Processing"] --> Resolver["Schedule Criteria Device Resolver"]
Resolver --> MachineRepository["Machine Repository"]
Dispatch --> PackageHandlers["Brew and Winget Package Handlers"]
PackageHandlers --> AgentScripts["Package Manager Script Codes and Arguments"]
InventoryEvents["Device Software Inventory"] --> AggregationRepository["Device Software Aggregation Repository"]
AggregationRepository --> SoftwareProjector["Software Projector"]
AggregationRepository --> VulnerabilityProjector["Vulnerability Projector"]
SoftwareProjector --> PackageMatcher["Software Package Matcher"]
PackageMatcher --> CatalogRepository["Package Catalog Repository"]
SoftwareProjector --> SoftwareRepository["Software Repository"]
VulnerabilityProjector --> VulnerabilityRepository["Vulnerability Repository"]
The module separates selection, command construction, and read-model projection. The selector reads machines but does not mutate them. Package handlers produce validated action details but do not execute commands. The projectors consume repository rollups and write tenant-level documents, allowing query-facing services to read consolidated software and vulnerability state rather than re-aggregate every device inventory record.
| Area | Core components | Role |
|---|---|---|
| Schedule targeting | ScheduleCriteriaDeviceResolver |
Builds machine criteria and resolves or counts eligible machine identifiers. |
| Package operations | BrewPackageManagerHandler, WingetPackageManagerHandler |
Select script codes and construct manager-specific package arguments. |
| Software projection | SoftwareProjector |
Creates, refreshes, or removes consolidated software records. |
| Vulnerability projection | VulnerabilityProjector |
Creates, refreshes, or removes consolidated CVE records. |
| Package matching | PackageMatcher, WingetPackageMatcher |
Defines catalog matching and implements Winget correlation rules. |
ScheduleCriteriaDeviceResolver converts schedule criteria into a MachineQueryFilter and delegates lookup to MachineRepository.
Its platform-scope behavior is important for dispatch safety:
Organization identifiers and device types are added only when non-empty. The optional package-manager collection is passed to the identifier lookup as a manageability constraint. The matches method applies the same organization, device-type, and platform logic to an already loaded machine, which supports callers that need local eligibility checks.
flowchart LR
Criteria["Schedule Device Criteria"] --> Scope["Intersect Requested and Supported Operating Systems"]
Supported["Supported Platforms"] --> Scope
Scope --> EmptyCheck{"Empty Scope?"}
EmptyCheck -->|"yes"| NoDevices["Return No Devices"]
EmptyCheck -->|"no"| Filter["Build Machine Query Filter"]
Filter --> Repository["Query Tenant Machine Repository"]
ManagerConstraint["Package Manager Constraint"] --> Repository
Repository --> MachineIds["Eligible Machine IDs"]
The package handlers are conditional Spring components: each is active only when openframe.rmm.software.enabled is true. Both select an install or update script code from a SoftwareAction; their input validation and arguments differ by package manager.
BrewPackageManagerHandler identifies itself as BREW. It requires a nonblank package name and a Brew package type. A CASK package produces --cask followed by the package name; a FORMULA package produces the package name alone. Invalid inputs raise a bad-request error rather than allowing an incomplete command to reach a device.
WingetPackageManagerHandler identifies itself as WINGET. It requires a nonblank package name and produces an exact package-ID selection using --id, the package name, and -e. Although it accepts the same package-type argument shape as the shared handler contract, the Winget implementation does not use it.
SoftwareProjector materializes one software document per tenant and software-title identifier.
For a valid tenant and title identifier, it requests a SoftwareTitleRollup from DeviceSoftwareAggregationRepository:
Catalog matching is deliberately cached but refreshed safely. The projector rebuilds the installed-program identity from the rollup and reruns matching when matching keys changed or when the stored match is more than one day old. This bounds repeated catalog lookups while ensuring catalog changes are reflected within the matching time-to-live window.
flowchart TD
ProjectRequest["Tenant and Software Title"] --> Rollup["Roll Up Device Software"]
Rollup --> Exists{"Rollup Exists?"}
Exists -->|"no"| Delete["Delete Tenant Software Record"]
Exists -->|"yes"| BuildProgram["Build Installed Program Keys"]
BuildProgram --> MatchCheck{"Keys Changed or Match Stale?"}
MatchCheck -->|"yes"| Match["Match Package Catalog"]
MatchCheck -->|"no"| PreserveMatch["Keep Stored Match"]
Match --> Save["Save Software Projection"]
PreserveMatch --> Save
VulnerabilityProjector applies the same reconciliation pattern to CVEs. For a valid tenant and nonblank CVE identifier, it requests a CveRollup:
This preserves a queryable tenant vulnerability inventory as devices report, update, or remove installed software.
PackageMatcher is the matching contract: an implementation names the package manager it supports and returns one PackageMatch per submitted installed program, preserving input order.
WingetPackageMatcher implements that contract for WINGET. It normalizes program keys, performs one catalog lookup for the batch, and evaluates each program against the returned entries.
The decision sequence is:
The matcher normalizes keys using lowercase, locale-independent folding and relies on the package catalog repository to retrieve entries sharing any relevant identifier or normalized name. This conservative rule prevents weak textual similarity from silently choosing among multiple packages.
sequenceDiagram
participant Stream as "Inventory Stream Handler"
participant Aggregate as "Aggregation Repository"
participant Software as "Software Projector"
participant Matcher as "Winget Package Matcher"
participant Catalog as "Package Catalog Repository"
participant Store as "Software Repository"
Stream->>Aggregate: Request title rollup
Aggregate->>Software: Return rollup or no result
Software->>Matcher: Match program when required
Matcher->>Catalog: Find catalog entries by keys
Catalog->>Matcher: Return candidates
Matcher->>Software: Return package match outcome
Software->>Store: Save projection or delete stale record
Projection methods are tenant-scoped and treat absent aggregates as deletion signals. Callers should therefore invoke them after the underlying device-level aggregate reflects the latest inventory state. The resolver uses the same tenant boundary when querying machine identifiers, preventing criteria from crossing tenant data.
Rmm Service Core is consumed as part of the openframe-data-mongo-sync dependency. Adjacent platform components provide the surrounding RMM workflow:
Those responsibilities remain outside Rmm Service Core; this module focuses on deterministic target selection, package argument construction, and repository-backed projection logic.
openframe.rmm.software.enabled=true where package-driven RMM operations are required.