Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ build-image: build-operator

build-operator:
@mkdir -p bin
go build -ldflags="$(LDFLAGS)" -o bin/uds-vm-operator ./cmd/uds-vm-operator
CGO_ENABLED=0 GOOS=linux go build -ldflags="$(LDFLAGS)" -o bin/uds-vm-operator ./cmd/uds-vm-operator

build-cli:
@mkdir -p bin
go build -ldflags="$(LDFLAGS)" -o bin/uds-vmctl ./cmd/uds-vmctl
CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o bin/uds-vmctl ./cmd/uds-vmctl

test:
go test -v -race ./...
Expand Down
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

An air-gap ready reference implementation and contribution-ready Kubernetes operator declaratively managing secure, NIST 800-53 compliant virtual machines on **KubeVirt** and **Containerized Data Importer (CDI)** within [Defense Unicorns](https://defenseunicorns.com) Unicorn Delivery Service (UDS) environments.

> 📍 **Product Roadmap:** See [ROADMAP.md](ROADMAP.md) for phased capability milestones ([v0.1.0 (Core Operator)](https://github.com/celttechie/uds-vm-operator/milestone/1) $\rightarrow$ [v0.2.0 (Windows Automation)](https://github.com/celttechie/uds-vm-operator/milestone/2) $\rightarrow$ [v0.3.0 (Go CLI & Zarf)](https://github.com/celttechie/uds-vm-operator/milestone/3) $\rightarrow$ [v0.4.0 (Observability & Continuous ATO)](https://github.com/celttechie/uds-vm-operator/milestone/4)).
> 📍 **Product Roadmap:** See [ROADMAP.md](ROADMAP.md) for phased capability milestones ([v0.1.0 (Core Operator)](https://github.com/celttechie/uds-vm-operator/milestone/1) $\rightarrow$ [v0.2.0 (Windows Automation)](https://github.com/celttechie/uds-vm-operator/milestone/2) $\rightarrow$ [v0.3.0 (Go CLI & Zarf)](https://github.com/celttechie/uds-vm-operator/milestone/3) $\rightarrow$ [v0.4.0 (Observability & Continuous ATO)](https://github.com/celttechie/uds-vm-operator/milestone/4) $\rightarrow$ [v0.5.0 Architecture Proposal (Golden Images, Rolling Updates & Persistence)](docs/plan-golden-images-rolling-updates-persistence.md)).

---

Expand Down Expand Up @@ -242,7 +242,7 @@ The operator and pre-validated golden images are bundled into an offline, crypto
make zarf-package

# Deploy into an air-gapped or disconnected Kubernetes cluster in one command:
zarf package deploy zarf-package-uds-vm-operator-amd64-0.3.0.tar.zst --confirm
zarf package deploy zarf-package-uds-vm-operator-amd64-0.4.0.tar.zst --confirm
```

---
Expand Down Expand Up @@ -279,7 +279,7 @@ sc-7 | satisfied
| **SC-7** | Boundary Protection | `NetworkPolicy` default-deny ingress & egress restricted to DNS (53) | **Satisfied** |
| **AC-3** | Access Enforcement | Cloud-Init `Secret` enforces `ssh_pwauth: false` and `disable_root: true` | **Satisfied** |
| **SI-7** | Information Integrity | CDI `DataVolume` enforces SHA-256 digest verification (PR #4340) | **Satisfied** |
| **IA-5** | Authenticator Management | Windows Sysprep `Secret` enforces dynamic $\ge 24$-char high-entropy password | **Satisfied** |
| **IA-5** | Authenticator Management | Linux Cloud-Init enforces key-based auth (`ssh_pwauth: false`) / Windows Sysprep enforces dynamic $\ge 24$-char high-entropy password | **Satisfied** |

---

Expand Down Expand Up @@ -312,3 +312,32 @@ make lula-validate
make zarf-package
```

> 📖 **Hands-On Verification Runbook:** For a complete, step-by-step testing guide to start from scratch on your `kubevirt-dev-platform` VM, execute negative hash tampering tests, deploy via Zarf, and validate Continuous ATO and Prometheus telemetry, see **[`docs/end-to-end-verification-runbook.md`](docs/end-to-end-verification-runbook.md)**.

---

## 13. Next Architecture Phase: Golden Images, Rolling Fleet Updates & Storage Persistence (Milestone v0.5.0)

With single-instance air-gap lifecycle verification, Continuous ATO, and Prometheus telemetry fully validated in `v0.4.0`, the operator's next evolution transitions from individual VM orchestration to automated enterprise fleet management.

The complete architectural proposal, CRD schemas, and verification matrix are detailed in **[`docs/plan-golden-images-rolling-updates-persistence.md`](docs/plan-golden-images-rolling-updates-persistence.md)**.

### Architectural Pillars of Milestone v0.5.0:

1. **Production Golden OS Images:**
- Standardized, minimal Ubuntu 22.04 LTS / Rocky Linux 9 and Windows Server 2022 golden images.
- Pre-flight binary inspection and SHA-256 digest validation natively via `uds-vmctl prep`.
2. **Centralized Image Caching & Copy-on-Write (CoW) Fast Cloning:**
- Ingestion and cryptographic verification (NIST SP 800-53 SI-7) executed once into cluster storage via Containerized Data Importer (CDI) `DataSource` objects.
- Child virtual machines instantiate in seconds via storage-layer CoW clones without redundant network or disk transfers.
3. **Dual Storage Topology (Stateless vs. Stateful Workloads):**
- **Stateless Fleets:** Disposable, immutable virtual machines where the root operating system disk is replaced or destroyed on demand.
- **Stateful Workloads:** Mission-critical services (databases, directory services) where application data is strictly preserved across operating system updates via decoupled secondary `dataDisks` bound to independent, retained PVCs.
4. **Zero-Downtime Rolling Fleet Updates:**
- Introduction of `UDSVirtualMachinePool` orchestrating coordinated rolling updates across VM instances (`maxSurge: 1`, `maxUnavailable: 0`).
- Guest readiness verification governed by QEMU Guest Agent health, application port probes, and answer-script completion before traffic cutover.

For full architectural diagrams, implementation phases, and test scenarios, review the [Architecture Proposal Document](docs/plan-golden-images-rolling-updates-persistence.md).



25 changes: 25 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ gantt
v0.2.0 Windows VM Automation & STIG :done, 2026-11-11, 2026-11-11
v0.3.0 Go CLI (uds-vmctl) & Zarf Pkg :done, 2026-11-11, 2026-11-11
v0.4.0 Lula cATO & Prometheus Metrics :done, 2026-11-11, 2026-11-11
section Planned
v0.5.0 Golden Images, Fleet Updates & Persistence :active, 2026-11-12, 2026-11-30
```

---
Expand Down Expand Up @@ -87,3 +89,26 @@ Bridge the gap between Kubernetes orchestration and federal authorization by imp
- **Enterprise CI/CD Integration (`.github/workflows/ci.yaml`):**
- Full Go static analysis, race-detected testing, and automated Lula OSCAL compliance verification.

---

## [Milestone v0.5.0](docs/plan-golden-images-rolling-updates-persistence.md) — Golden Image Caching, Fleet Updates & Storage Persistence (PLANNED)

### Objective:
Transition the operator from single-instance validation to automated enterprise fleet management, enabling zero-downtime rolling updates, centralized golden image caching via CDI `DataSource` objects, and stateful storage persistence.

Detailed architectural specifications, CRD schemas, and testing runbooks are maintained in the [Architecture Proposal Document](docs/plan-golden-images-rolling-updates-persistence.md).

### Planned Capabilities:
- **Standardized Golden Images:**
- Build and pre-flight verify minimal Ubuntu 22.04 LTS / Rocky Linux 9 and Windows Server 2022 golden disk images using native `uds-vmctl prep`.
- **Centralized Image Caching & Fast Copy-on-Write (CoW) Cloning:**
- Import and cryptographically verify (NIST SP 800-53 SI-7) golden images once into cluster storage via Containerized Data Importer (CDI) `DataSource` objects.
- Instantiate new VM instances in seconds via storage-layer CoW clones without repeated network transfer.
- **Dual Storage Topology (Stateless vs. Stateful Workloads):**
- *Stateless Fleets:* Disposable, immutable virtual machines where the root operating system disk is replaced or destroyed on demand.
- *Stateful Workloads:* Mission-critical services (databases, directory services) where application data is strictly preserved across operating system updates via decoupled secondary `dataDisks` bound to independent, retained PVCs.
- **Zero-Downtime Rolling Fleet Updates:**
- Introduce `UDSVirtualMachinePool` to orchestrate coordinated rolling updates across VM instances (`maxSurge: 1`, `maxUnavailable: 0`).
- Enforce guest readiness verification (QEMU Guest Agent health, application port probes, and answer-script completion) before traffic cutover.


Loading
Loading