Repository navigation
build: add attested enclave rootfs artifacts - #8688
Conversation
Build hardened script and agent rootfs images from the audited enclave container stages, publish role-bound manifests, SBOMs, and provenance, and add fail-closed setup cache verification. Co-authored-by: Copilot App <[email protected]>
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit ef22283 |
| assert_trusted_file "$rootfs" "$role enclave rootfs" | ||
| assert_trusted_file "$provenance" "$role enclave rootfs provenance" | ||
| assert_trusted_file "$sbom" "$role enclave rootfs SBOM" | ||
| verify_attestation "$rootfs" "$provenance" |
| assert_trusted_file "$manifest" "enclave artifact manifest" | ||
| assert_trusted_file "$manifest_bundle" "enclave artifact manifest bundle" | ||
| verify_attestation "$manifest" "$manifest_bundle" |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 94.19% | 94.14% | 📉 -0.05% |
| Statements | 92.87% | 92.83% | 📉 -0.04% |
| Functions | 93.48% | 93.51% | 📈 +0.03% |
| Branches | 86.72% | 86.66% | 📉 -0.06% |
📁 Per-file Coverage Changes (1 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/log-directory-setup.ts |
96.2% → 100.0% (+3.78%) | 96.3% → 100.0% (+3.71%) |
✨ New Files (1 files)
src/cloud-hypervisor/enclave-artifact-manifest.ts: 82.9% lines
Coverage comparison generated by scripts/ci/compare-coverage.ts
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Cache verification does not enforce the closed schema, and the PR incorrectly closes #8680 despite leaving its workload-profile requirements unimplemented.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 2
Open (3)
What changed in this PR
Adds attested, role-specific Cloud Hypervisor enclave rootfs release artifacts with verification and documentation.
Changes:
- Builds hardened script and agent rootfs images with SPDX SBOMs.
- Adds signed manifests, provenance bundles, cache verification, and release assets.
- Extends CI preflight and artifact validation.
| File | Description |
|---|---|
src/cloud-hypervisor/enclave-artifact-manifest.ts |
Defines and validates the closed manifest. |
src/cloud-hypervisor/enclave-artifact-manifest.test.ts |
Tests manifest validation. |
scripts/ci/cloud-hypervisor-host-preflight.sh |
Verifies enclave artifacts during preflight. |
scripts/ci/cloud-hypervisor-enclave-artifacts.test.ts |
Tests artifact scripts and workflow wiring. |
guest/cloud-hypervisor/verify-test-artifacts.sh |
Verifies generated rootfs contents and metadata. |
guest/cloud-hypervisor/setup-enclave-artifacts.sh |
Downloads and verifies release artifacts. |
guest/cloud-hypervisor/generate-enclave-rootfs-sbom.mjs |
Generates role-specific SPDX SBOMs. |
guest/cloud-hypervisor/build-test-artifacts.sh |
Builds hardened enclave rootfs artifacts. |
docs/cloud-hypervisor-foundation.md |
Documents artifact trust and release flow. |
docs/awf-config-spec.md |
Documents runtime gating and role paths. |
.github/workflows/test-cloud-hypervisor.yml |
Builds and attests artifacts in CI. |
.github/workflows/release.yml |
Publishes stable attested release assets. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| fi | ||
|
|
||
| for tool in curl sha256sum tar make gcc ld mke2fs e2fsck go docker sudo; do | ||
| for tool in curl sha256sum tar make gcc ld mke2fs e2fsck go node docker sudo getcap setcap; do |
| [ "$(jq -r '.schemaVersion' "$manifest")" = 1 ] \ | ||
| || { echo "unsupported enclave artifact manifest schema" >&2; return 1; } | ||
| [ "$(jq -r '.artifactType' "$manifest")" = \ | ||
| awf-cloud-hypervisor-enclave-rootfs-set ] \ | ||
| || { echo "unexpected enclave artifact manifest type" >&2; return 1; } | ||
| [ "$(jq -r '.architecture' "$manifest")" = "$ARCHITECTURE" ] \ |
| Cloud Hypervisor enclave execution remains fail-closed until the other ADR 0002 | ||
| host-executor gates are implemented, and custom enclave image overrides remain | ||
| unsupported. |
|
@copilot address review feedback |
Addressed in af52674 (on top of b8db917):
|
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
|
✅ Build Test Suite completed successfully!
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
❌ Smoke Gemini reports failed. Facets need polishing...
|
|
✅ Smoke Claude passed Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "api.anthropic.com"See Network Configuration for more information.
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed25.pkgs.visualstudio.com"See Network Configuration for more information.
|
|
📰 DEVELOPING STORY: Smoke Docker Sbx reports failed. Our correspondents are investigating the incident...
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...
|
|
🚀 Security Guard has started processing this pull request |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅ Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "example.com"See Network Configuration for more information.
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅ Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "example.com"See Network Configuration for more information.
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
❌ Smoke Gemini reports failed. Facets need polishing...
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
✅ Smoke Claude passed Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "api.anthropic.com"See Network Configuration for more information.
|
|
EGRESS_RESULT allow=pass deny=pass ✅ Allowed domain (github.com) reachable — Overall: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "example.com"See Network Configuration for more information.
|
|
Smoke Test: Copilot Engine Validation
Recent merged PRs:
Overall: PASS cc @lpcox
|
Copilot BYOK Smoke Test Results✅ GitHub MCP connectivity - PR list verified Status: PASS — Running in direct BYOK mode. PRs tested: #8687, #8686 (by @lpcox)
|
Smoke Test: Claude Engine Validation
Overall result: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "api.anthropic.com"See Network Configuration for more information.
|
📡 Smoke Test: API Proxy OTEL Tracing — Results
Summary: All static/unit-level checks passed (module load, 68 tests, env-var wiring, token-tracker hook). No runtime span export could be observed since this workflow didn't drive actual api-proxy traffic — this is expected, not a regression.
|
Smoke Test: Services Connectivity
Overall: PASS
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — PASS Note: Java builds required All ecosystems cloned, built/installed, and passed their tests successfully through the firewall proxy.
|
Smoke Test
Warning Firewall blocked 8 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "msfeed25.pkgs.visualstudio.com"
- "update.googleapis.com"
- "www.google.com"
- "www.gstatic.com"See Network Configuration for more information.
|
Chroot Version Comparison Results
Overall: FAILED — Node.js version differs between host and chroot environment.
|


Summary
Validation
Fixes #8680