Repository navigation
fix: restore private tmp integration checks and read-only handoff startup - #11809
Conversation
…vate tmp Compare the canonical Copilot placeholder inside the agent, preserving both independent reads without sending credential-shaped output to the host. Keep the runner PATH file private and stage only its fake tool in the workspace. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
The security-sensitive fixture changes cross credential masking, output redaction, sudo PATH recovery, and mount boundaries, while their fail-closed behavior depends on Docker and chroot runtime interactions that static review cannot verify.
No open issues 🎉
What changed in this PR
This pull request restores four integration assertions affected by private temporary-storage and credential-output hardening, without changing production behavior or security policies.
Changes:
- Adds a shared hash-based Copilot placeholder verification helper that avoids printing credential-shaped values.
- Updates API proxy and one-shot tests to verify successful placeholder reads, including two independent reads in container and chroot modes.
- Moves the sudo PATH fixture's fake executable into the workspace while keeping the runner's PATH metadata private.
| File | Description |
|---|---|
| tests/integration/sudo-secure-path.test.ts | Places the fake tool in the workspace so it remains visible inside the agent while retaining a private PATH file. |
| tests/integration/one-shot-tokens.test.ts | Updates container and chroot checks to verify two Copilot placeholder reads through non-sensitive comparisons. |
| tests/integration/api-proxy.test.ts | Replaces direct placeholder output with shared internal hash-based verification. |
| tests/fixtures/copilot-placeholder.ts | Provides a reusable secret-safe helper for exact Copilot placeholder verification. |
Review effort: Lite (adaptive)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
🚀 Security Guard has started processing this pull request |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. Smoke ChrootOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 Smoke CopilotOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🚀 Security Guard has started processing this pull request |
|
🔌 Smoke Services — All services reachable! ✅
|
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
✅ Build Test Suite completed successfully! 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
- "169.254.169.254"See Network Configuration for more information.
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ Smoke OTel TracingOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Smoke CodexOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
✅ Smoke Claude passed
|
|
Smoke Test: Copilot Engine (@rabeckett, no assignees)
Recent merged PRs: #11812 fix: prepare sensitive tmpfs targets in read-only handoffs; #11790 Split enclave executor handler into focused modules Overall: PASS
|
Smoke test: API proxy OTEL tracing (run 44534906105)
No unexpected failures were found, so no issue was filed.
|
Smoke Test: Copilot BYOK (Direct Mode) ✅ PASS
Mode: Direct BYOK (COPILOT_PROVIDER_API_KEY) with api-proxy sidecar injection
|
|
PRs: fix: prepare sensitive tmpfs targets in read-only handoffs; Split enclave executor handler into focused modules
|
|
Services smoke test: ✅ Redis PING (PONG) · ✅ pg_isready (accepting connections) · ✅ psql SELECT 1 (1). PASS
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
Smoke Test: Copilot Network Isolation ✅ PASSEgress Checks
Test ResultBoth egress isolation checks passed. The firewall is correctly:
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Chroot version comparison
Result: The Node.js mismatch needs investigation.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — PASS All eight test repositories cloned successfully. Bun 1.4.5 and Deno 2.9.8 were installed for this run. Environment workarounds (not project failures):
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
- "169.254.169.254"See Network Configuration for more information.
|
|
Merged into |
Fixes #11805.
Fixes #11811.
This PR contains the four private-
/tmpfixture fixes and the clean-start runtime fix. They fail for different reasons./tmpprivate and added a credential-output guard. The three credential checks now verify the exact public placeholder inside the agent, without printing it. The PATH test keeps the runner’s command file private and puts only the fake installed tool in the workspace; it still checks that the tool runs ahead of/usr/bin, with an unset control. Onfc8b0a8939d6, API Proxy (46/46), Protocol & Security (51/51), and Domain (60/60) passed.ef6bca01e4f0, 91 focused Linux tests passed, and real Docker verified both read-only binds, all six masks, and no guest writes reaching the host. The original Container & Ops assertions are unchanged.The ordinary integration run is on this exact combined SHA,
ef6bca01e4f0. The services scan reported four High OpenSSL advisories. Alpine backported all four in the installed version,3.5.9-r1, after the Grype database used for diagnosis was built. No scanner exception, credential-policy relaxation, or host/tmpbind was added. This PR must pass the required gates before merging.