Skip to content

Repository files navigation

Serv8:CMDB - Configuration Management Service

Summary

Serv8:CMDB owns the configuration item register and the typed dependency graph that the change-risk path traverses to compute blast radius. It also owns discovery reconciliation: the mechanism by which observed infrastructure becomes (or fails to become) recorded configuration.

Motivation

Blast radius is the single most valuable answer an ITSM platform can give before a change, and it is impossible without a real dependency graph. A flat asset list cannot say "restarting this database breaks these four services". Equally, an asset register that is updated silently by a discovery tool is worse than a stale one, because nobody can tell what was authorised. Both problems are structural: the graph must be typed and traversable, and discovery must be a proposal, not a write.

Architecture & High-Level Design

graph TD
    SRC["Cloud · SaaS · endpoint sources"] -->|"read-only inventory"| DISC["discovery run"]
    DISC --> OBS["observations"]
    OBS --> REC["reconciliation"]
    REC --> DRIFT["drift findings<br/>unauthorised · changed · missing"]
    DRIFT -->|"human decision"| CI["recorded CI"]
    CI --> EDGE["typed edges<br/>pass-through flagged"]
    EDGE --> TRAV["bounded recursive traversal"]
    TRAV -->|"result + revision"| CHG["Serv8:Change blast radius"]
    CI -->|"outbox events"| BUS["Sentin8:Bus"]
Loading

Key Traits and Data Structures

  • ConfigurationItem: class (server, application, API, database, network, service, endpoint), lifecycle, recorded state, pass-through flag, monotonic revision.
  • CiEdge: typed, directed edge with evidence; uniqueness per typed pair, no self-edge.
  • DiscoveryRun + DriftFinding: observation and the delta a human must decide on.
  • blast_cache: stored traversal result stamped with the CI revision it was computed against.

Rationale, Trade-offs, and Alternatives

Why typed edges with a pass-through flag. A connection through a patch panel is two physical links but one logical path. A bare from_id -> to_id table either fragments logical paths or hides the physical topology. The typed edge with a flag gives both, and the traversal collapses pass-through nodes in reporting.

Why discovery cannot write recorded state. A discovery tool that silently creates CIs destroys the meaning of "unauthorised asset". Reconciliation as a separate decision keeps the register an assertion of intent, not an echo of reality.

Why the traversal is bounded. A recursive query on an unbounded graph is a denial-of-service vector on the read path. Depth is capped and truncation is reported, so a reviewer knows when the answer is partial.

Internal Implementation & Invariants

  • An observation never becomes a recorded CI without a decision.
  • Every recorded-state change increments the revision.
  • No self-edge, no duplicate typed edge.
  • A traversal is bounded and reports truncation.
  • Provider credentials never appear in any table.
  • A drift finding requires a named human decision to leave open.

Development

make build
make enroll

Unresolved Questions / Future Designs

  • Cross-vertical CIs (a platform service as a configuration item).
  • Temporal edges (effective from/to) for historical traversal.
  • Attribute drift for values that legitimately fluctuate.

Releases

Packages

Contributors

Languages