Repository navigation
Unify public enclave diagnostics export across Docker and Cloud Hypervisor - #10930
Conversation
Co-authored-by: lpcox <[email protected]>
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The Cloud Hypervisor fallback can publish supplemental files without trusted, identity-correlated workload-stop evidence when termination fails.
5 open issues
What changed in this PR
Generalizes the existing host-only diagnostics collector so Docker and Cloud Hypervisor enclaves share one supported export interface, addressing #10929 without duplicating the diagnostic schema.
Changes:
- Adds backend-specific discovery, runner-identity binding, and explicit run/invocation limits.
- Shares validation, credential redaction, protected staging, and safe failure reporting while preserving Cloud Hypervisor supplemental evidence.
- Updates the smoke caller and regression coverage, and documents version-pinned Docker collection and upload ordering.
| File | Description |
|---|---|
src/enclave/proxy-auth-diagnostics.test.ts |
Updates assertions for named validation failures. |
scripts/ci/smoke-enclave-workflow.test.ts |
Checks explicit backend and runner arguments. |
scripts/ci/collect-enclave-smoke-debug.test.ts |
Adds dual-backend fixtures and schema, safety, scope, and limit checks. |
scripts/ci/collect-enclave-smoke-debug.cjs |
Implements shared discovery, validation, staging, and failure reporting. |
README.md |
Links to the shared exporter documentation. |
docs/cloud-hypervisor-foundation.md |
Documents the interface, safeguards, and pinned Docker consumer example. |
.github/workflows/smoke-enclave-cloud-hypervisor.md |
Migrates collector calls to explicit backend and runner binding. |
.github/workflows/smoke-enclave-cloud-hypervisor.lock.yml |
Synchronizes compiled collector calls and workflow metadata. |
Review effort: Max (auto)
| if (error.code === 'ENOENT' && runtime === 'cloud-hypervisor') { | ||
| // Pre-shared-envelope CH releases still retain bounded public-only | ||
| // supplemental evidence in this same protected namespace. | ||
| envelope = undefined; |
| DEBUG_RUN_KEY: ${{ github.run_id }}-${{ github.run_attempt }} | ||
| run: | | ||
| sudo node /var/lib/awf-enclave-smoke-export/collector.cjs collect "$DEBUG_RUN_KEY" "$(id -u)" "$(id -g)" | ||
| sudo node /var/lib/awf-enclave-smoke-export/collector.cjs collect cloud-hypervisor "$DEBUG_RUN_KEY" "$(id -u)" "$(id -g)" |
| .replace(/\b(?:github_pat_[A-Za-z0-9_]+|gh[pousr]_[A-Za-z0-9_]+|sk-[A-Za-z0-9_-]+)\b/g, '[REDACTED]'); | ||
| const redactValue = (value, depth = 0) => { | ||
| check(depth <= 64, 'credential-redaction-bound', 'oversized'); | ||
| if (typeof value === 'string') return redactText(value); |
| check(false, 'run-budget', 'concurrent-runs'); | ||
| } | ||
| const roots = active[0] ?? candidates[0]; | ||
| collect(runDirectory, runnerUid, runnerGid, roots, roots.sourceUid, '/', binding); |
|
@copilot address review feedback |
Addressed in commit |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit d012f97 |
✅ Coverage Check PassedOverall Coverage
Coverage comparison generated by |
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request... |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
🚀 Security Guard has started processing this pull request |
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟
|
|
✅ Build Test Suite completed successfully!
|
|
💎 Smoke Gemini is crystallizing results on this pull request... |
|
🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request... |
Smoke Test
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
|
OTEL smoke test
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
Chroot Version Comparison
Result: Not all tests passed (Node.js mismatch), so the
|
|
Smoke Copilot: PRs: "Preserve enclave smoke credentials across sudo-rs", "Add opt-in renewable token-broker authentication for Copilot inference"
Overall: PASS —
|
Smoke Test: Copilot BYOK (Direct) Mode ✅
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy sidecar → api.githubcopilot.com Status: PASS
|
|
EGRESS_RESULT allow=pass deny=pass
Overall: PASS — @lpcox
|
|
Services smoke test: FAIL
|
🏗️ Build Test Suite Results
Overall: 7/8 ecosystems passed — FAIL Java failure details: Maven could not resolve plugins ( .NET: the first attempts failed on first-run setup ( The
|


Diagnostic retention is shared, but the existing exporter only discovers Cloud Hypervisor artifacts. This change extends that entry point to Docker without duplicating the diagnostic schema or publication logic.
Backend discovery
Validation and publication
Consumer interface
Upload only
/var/lib/awf-enclave-smoke-export/$RUN_KEY/upload/, never protected source artifacts.