Software And Aggregation Repositories
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
Software And Aggregation Repositories is the MongoDB read-model layer for remote-management software inventory and software-action reporting. It is supplied at runtime by the com.openframe.oss:openframe-data-mongo-sync library, pinned to version 7.0.11 by OpenFrame OSS Tenant. The module turns tenant-scoped software, device-software, and script-execution documents into the filtered pages and rollups required by inventory, vulnerability, and action-history consumers.
The implementations use Spring Data MongoTemplate aggregation pipelines rather than exposing raw collections to callers. This keeps aggregation rules—especially connection eligibility, distinct-device counting, and live action status reconciliation—centralized in the persistence layer.
flowchart LR
ApiLayer["API and service consumers"] --> Repositories["Software And Aggregation Repositories"]
Repositories --> ActionRepo["Software action aggregation"]
Repositories --> TitleRepo["Software title query"]
Repositories --> DeviceRepo["Device software aggregation"]
ActionRepo --> ActionResults["Software action results"]
ActionRepo --> Executions["Script executions"]
TitleRepo --> SoftwareTitles["Software titles"]
DeviceRepo --> DeviceSoftware["Device software observations"]
ActionResults --> MongoDB[("MongoDB")]
Executions --> MongoDB
SoftwareTitles --> MongoDB
DeviceSoftware --> MongoDB
| Area | Primary implementation | Responsibility |
|---|---|---|
| Software action history | SoftwareActionAggregationRepositoryImpl |
Builds an action summary from persisted action results and their execution leaves, then supports filtered, sorted, paginated lists and facets. |
| Software title inventory | CustomSoftwareRepository and CustomSoftwareRepositoryImpl |
Returns a page of installed software titles filtered by tenant, title text, vulnerability state, and manageability. |
| Device-software rollups | DeviceSoftwareAggregationRepositoryImpl |
Produces title and CVE summaries from connected-device observations and can return affected machine IDs. |
The module is part of the synchronous Mongo data library. Software inventory is populated by the stream-processing path and queried by application services such as the API software read models. Action summaries correlate software-action records with script execution data. This module therefore provides a database-facing read boundary: it does not dispatch actions, execute package managers, or expose HTTP endpoints.
flowchart TD
Stream["Software event processing"] --> Inventory["Device software observations"]
Inventory --> Rollups["Device software aggregation"]
ActionDispatch["Software action dispatch"] --> ActionRows["Software action results"]
AgentResults["Script execution results"] --> Executions["Script executions"]
ActionRows --> ActionAggregation["Software action aggregation"]
Executions --> ActionAggregation
Rollups --> Consumers["Inventory and vulnerability readers"]
ActionAggregation --> Consumers
All public lookup paths begin with a tenant identifier. The title query additionally requires devicesCount to be greater than zero, so titles without observed installations are excluded. Device-based aggregation considers only records whose machine is currently marked connected. As a result, rollup counts describe the active connected-device population, whereas title listing uses the stored title-level device count.
The runtime code belongs to the OpenFrame OSS Library rather than this repository. The verified sources are: