Skip to content

fix: restore private tmp integration checks and read-only handoff startup - #11809

Merged
rabeckett merged 3 commits into
mainfrom
fix/private-tmp-ci-fixtures
Nov 19, 2026
Merged

rabeckett merged 3 commits into
mainfrom
fix/private-tmp-ci-fixtures

Conversation

@rabeckett

@rabeckett rabeckett commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #11805.
Fixes #11811.

This PR contains the four private-/tmp fixture fixes and the clean-start runtime fix. They fail for different reasons.

  • Copilot and sudo PATH fixtures. fix: isolate agent runtimes from host tmp #11686 made /tmp private 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. On fc8b0a8939d6, API Proxy (46/46), Protocol & Security (51/51), and Domain (60/60) passed.
  • Read-only handoff startup. Refactor NVX cleanup registry into focused modules #11748 cleaned up directories left by earlier runs, exposing a startup failure before the agent command. Docker could not create the firewall mask directories after the handoff was mounted read-only. AWF prepares missing mask directories only in its canonical Linux handoff; it validates custom read-only sources without writing to them. Both guest views remain read-only and the sensitive paths remain masked. The main failure reproduced locally with exit 125. At 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 /tmp bind was added. This PR must pass the required gates before merging.

…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]>
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 01:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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)

@rabeckett rabeckett changed the title Fix Copilot credential and sudo PATH integration fixtures after private-tmp hardening test: restore Copilot credential and sudo PATH integration checks Nov 19, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the smoke-copilot-network-isolation Copilot network-isolation egress smoke test label Nov 19, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

Smoke Chroot

Outcome: reported_action

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.

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

Smoke Copilot

Outcome: reported_action

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.

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🔌 Smoke Services — All services reachable! ✅

🔌 Service connectivity validated by Smoke Services

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ Build Test Suite completed successfully!

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • 169.254.169.254

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "169.254.169.254"

See Network Configuration for more information.

Generated by Build Test Suite for #11809 · copilot · routed: haiku55 xhigh · ~4 AIC · ⊞ 6.1K · ◷

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

Smoke OTel Tracing

Outcome: reported_action

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.

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Smoke Codex

Outcome: reported_action

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 oracle has spoken through Smoke Codex

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Claude passed

Generated by Smoke Claude for #11809 · claude · haiku45 · ~36 AIC · ⊞ 6.4K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot Engine (@rabeckett, no assignees)

  • ✅ GitHub MCP: PR list returned #11825 chore(workflows): upgrade gh-aw to v1.3.1
  • ✅ github.com connectivity: HTTP 200
  • ✅ File write/read: passed

Recent merged PRs: #11812 fix: prepare sensitive tmpfs targets in read-only handoffs; #11790 Split enclave executor handler into focused modules

Overall: PASS

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke test: API proxy OTEL tracing (run 44534906105)

  • ✅ 1. Module loading: containers/api-proxy/otel.js loads. Exports include startRequestSpan, setTokenAttributes, endSpan, endSpanError, isEnabled, shutdown, and routerCallTracing.
  • ✅ 2. Test suite: jest otel ran 3 suites with 75/75 tests passing (otel.test.js, otel-fanout.test.js, otel-workload-identity.test.js).
  • ✅ 3. Env var forwarding: src/services/agent-environment/env-passthrough.ts forwards GITHUB_AW_OTEL_TRACE_ID and GITHUB_AW_OTEL_PARENT_SPAN_ID. src/services/api-proxy-env-config.ts buildOtelEnv() forwards the OTLP endpoint and headers, the trace context, and OTEL_SERVICE_NAME.
  • ✅ 4. Token tracker integration: token-tracker-http.js invokes opts.onUsage (around line 478). upstream-token.js wires it to otel.setTokenAttributes.
  • ⚠️ 5. OTEL diagnostics: No api-proxy spans observed. /tmp/gh-aw/otel.jsonl has 1 line, the runner-side gh-aw.agent.setup span, with no gen_ai.usage.* attributes. The api-proxy-logs/otel.jsonl path checked by the post-step does not exist in the agent sandbox, and the agent log shows no proxied LLM request lines. I treated this as unverified rather than failed. The post-step output should confirm it.

No unexpected failures were found, so no issue was filed.

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot BYOK (Direct Mode) ✅ PASS

Test Result
GitHub MCP ✅ PR list verified (PRs #11812, #11790)
github.com connectivity ✅ HTTP 200
File write/read ✅ File exists and readable
BYOK inference ✅ Running in direct mode via api-proxy → api.githubcopilot.com

Mode: Direct BYOK (COPILOT_PROVIDER_API_KEY) with api-proxy sidecar injection
Authors: @rabeckett

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

PRs: fix: prepare sensitive tmpfs targets in read-only handoffs; Split enclave executor handler into focused modules
Merged PR read ✅
PR detail read ✅
Playwright ❌
File write/read ✅
Build ✅
Discussion comment ✅
Overall: FAIL

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Services smoke test: ✅ Redis PING (PONG) · ✅ pg_isready (accepting connections) · ✅ psql SELECT 1 (1). PASS

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Cloud Hypervisor + Copilot smoke test

  1. Merged PR lookup: PASS
  2. github.com connectivity: PASS (HTTP 200)
  3. File write/read: PASS
  4. example.com blocked: PASS (HTTP 000)

Overall: PASS

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot Network Isolation ✅ PASS

Egress Checks

  • ✅ Allow Check (api.github.com): HTTP 200 — allowlisted domain accessible
  • ✅ Deny Check (example.com): SSL certificate mismatch error — blocked domain properly isolated

Test Result

EGRESS_RESULT allow=pass deny=pass

Both egress isolation checks passed. The firewall is correctly:

  • Allowing traffic to whitelisted domains
  • Blocking traffic to non-whitelisted domains with certificate rejection as defense-in-depth

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine Validation

Check Result
API status ✅ PASS
GitHub check ✅ PASS
File status ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #11809 · claude · haiku45 · ~36 AIC · ⊞ 6.4K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Chroot version comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.16 Python 3.12.16 ✅ YES
Node.js v24.22.2 v2.98.0 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Result: ALL_TESTS_PASSED=false. The smoke-chroot label was not added.

The Node.js mismatch needs investigation. v2.98.0 is not a normal Node.js version string, so the node binary resolved inside the chroot may be a different executable from the host's Node.js.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ N/A (run OK) ✅ PASS
.NET json-parse ✅ N/A (run OK) ✅ PASS
Go color ✅ 1/1 passed ✅ PASS
Go env ✅ 1/1 passed ✅ PASS
Go uuid ✅ 1/1 passed ✅ PASS
Java gson ✅ 1/1 passed ✅ PASS
Java caffeine ✅ 1/1 passed ✅ PASS
Node.js clsx ✅ script passed ✅ PASS
Node.js execa ✅ script passed ✅ PASS
Node.js p-limit ✅ script passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

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):

  • .NET: The CLI failed on a missing /run/user/1001 directory. Setting XDG_RUNTIME_DIR to a private temp directory fixed it.
  • Java: ~/.m2 is root-owned, so Maven's local repository was redirected to a temp directory with -Dmaven.repo.local. The JDK cacerts is a dangling symlink, so a JKS truststore was built from the system CA bundle. TLS verification stayed on.
  • Cleanup: The ~/.m2/settings.xml proxy file could not be removed because ~/.m2 is root-owned. It contains only the proxy host and port.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • 169.254.169.254

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "169.254.169.254"

See Network Configuration for more information.

Generated by Build Test Suite for #11809 · copilot · routed: haiku55 xhigh · ~4 AIC · ⊞ 6.1K · ◷
Add label ready-for-aw to run again

@rabeckett
rabeckett merged commit df3eaab into main Nov 19, 2026
172 of 178 checks passed
@rabeckett
rabeckett deleted the fix/private-tmp-ci-fixtures branch November 19, 2026 14:13
@rabeckett

Copy link
Copy Markdown
Collaborator Author

Merged into main as df3eaab843b6 after all 19 required checks passed. The PR-triggered integration run passed all five groups, including Network. The supply-chain check also passed. Verified that #11805 and #11811 both closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare sensitive directory mountpoints on a clean read-only handoff Restore the Copilot credential and sudo PATH integration checks after #11686

2 participants