SysOps — IT Asset Inventory Registry
Next.js · NestJS · Prisma 7 · PostgreSQL 15 · Docker Compose · VMware vCenter Integration
Links: GitHub Repository
Summary: SysOps is a self-hosted internal IT inventory registry for tracking physical hardware assets, virtual machines (with VMware vCenter discovery), database instances, encrypted credentials, and linked operational knowledge base documents under strict RBAC and audit logging.
Development & Deployment Transparency: Architected around real enterprise infrastructure registry pain points and implemented using an AI-assisted development workflow with extensive automated unit, integration, and Playwright browser acceptance tests. Current status: Workstation acceptance passed on an isolated HTTPS Docker stack with synthetic fixtures; team-host deployment and live vCenter endpoint validation remain pending (
HOLDuntil team host & real vCenter gates are completed).
1. Problem & Scope Boundaries
Operations teams often track servers, VMs, databases, and service accounts across disconnected spreadsheets that quickly go stale. SysOps focuses strictly on trustworthy, auditable inventory data — deliberately excluding ticketing and SLA workflows to keep the domain model focused.
2. Domain Model & Ownership Rules
Application (owns Technical Owner & Business Unit)
├─ Environment (PROD | UAT | TEST)
│ ├─ Component
│ │ ├─ Physical Asset [0..many]
│ │ ├─ VM Inventory [0..many]
│ │ └─ Logical Database [0..many]
│ └─ Application Access → Encrypted Credential [0..many]
└─ Knowledge Base Document [0..many, canonical links]
vCenter Source
└─ VM Discovery → VM Inventory (syncs compute fields; never overwrites team-owned context)Key design invariants:
- Progressive completion (
Needs Context): Records can be ingested before full business ownership is known without inventing placeholder data. - Field ownership split: VMware vCenter sync owns discovered compute attributes (name, power state, CPU, RAM, guest OS, IPs, disks), while the operations team owns Application mapping, Environment, Criticality, credentials, and linked docs.
- Archive-first lifecycle: VMs removed from vCenter transition to
DELETED_IN_VCENTERrather than hard-deleting history; all core entities support archive/restore with audit trails.
3. Architecture & Security Controls
| Layer | Technology & Key Controls |
|---|---|
| Frontend | Next.js, React, Tailwind CSS, TanStack Query/Table, shadcn/ui, role-aware UI masking |
| Backend API | NestJS, Prisma 7 (pg adapter), JWT authentication (Secure, HttpOnly, SameSite=Lax cookies), RBAC (Admin / Editor / Viewer) |
| Database | PostgreSQL 15 with 43 versioned Prisma migrations and /api/health/live + /api/health/ready probes |
| Credential & Export Security | Encrypted credentials at rest (CREDENTIAL_ENCRYPTION_KEY), COPY_PASSWORD audit events, Admin-only encrypted workbook export, one-time POST /api/auth/bootstrap admin creation |
| Internal HTTPS Gateway | Caddy reverse proxy with internal CA and default_sni support for direct internal-IP HTTPS access |
4. Verification & Backup/Recovery Testing
Verified on an isolated production-compatible HTTPS Docker Compose stack (Nov 17, 2026 acceptance run):
- Backend & Integration: 54 Jest test suites / 237 tests passing; PostgreSQL integration 6 suites / 11 tests passing; 43/43 Prisma migrations verified from a blank database with zero schema drift.
- Frontend & E2E: 23/23 frontend unit tests passing; 121/121 Playwright browser acceptance checks passing on HTTPS.
- Performance & Resilience: 8-user concurrent load test passed 40/40 requests (
p9593.7 ms baseline, 69.9 ms during encrypted workbook export); PostgreSQL outage recovery verified in 7.4 s; same-host restore (PostgreSQL dump + uploads + matching encryption key) verified in 36.7 s. - Remaining Production Gates: Off-host backup/restore rehearsal (confirming RPO/RTO targets) and connecting against a live team VMware vCenter endpoint (mock vCenter adapter is strictly disabled in production).