Repository navigation
Add NVX read-exposure masking for future exports - #9211
Conversation
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Mask selection misses descendant exports, and mask creation can follow a raced symlink outside the staging tree.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Adds safeguards for sensitive paths in potential future NVX exports.
Changes:
- Masks sensitive log and audit directories while preserving MCP payload access.
- Excludes masked paths from snapshots and copy-back.
- Adds masking and fail-closed tests.
| File | Description |
|---|---|
src/nvx/workspace-layer.ts |
Implements read-exposure masking and copy-back exclusions. |
src/nvx/workspace-layer.test.ts |
Tests masking, exemptions, and validation failures. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
✅ Copilot review passed with no inline comments. @copilot Add the |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (6 files)
Coverage comparison generated by |
|
❌ Smoke Gemini reports failed. Facets need polishing...
|
|
✅ Build Test Suite completed successfully!
|
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...
|
|
🚀 Security Guard has started processing this pull request |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
❌ Smoke Claude failed
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
Smoke Copilot — PR: "Add NVX read-exposure masking for future exports"
|
Smoke Test: Copilot BYOK (Direct) Mode ✅Results:
Overall Status: PASS Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) with api-proxy sidecar.
|
Smoke Test: Cloud Hypervisor + Copilot
Note: Checks 2 and 4 could not run because the execution sandbox itself denies curl network access at the tool-permission layer, independent of the AWF firewall being tested. This is an environment limitation, not a firewall result.
|
|
EGRESS_RESULT allow=pass deny=pass ✅ Allowed domain (api.github.com → 200)
|
|
OTEL smoke test
|
🏗️ Build Test Suite Results
Overall: 6/8 ecosystems passed — FAIL Failures
|
|
Smoke services: ✅ Redis PONG, ✅ pg_isready, ✅ SELECT 1 — PASS
|
|
Smoke test summary
|
Chroot Version Comparison
Result: failed. Node.js differs between host and chroot, so the
|

NVX currently exports only the workspace and optional tool cache, so it does not expose mcpg logs. If a future export includes
/tmp/gh-aw, write restrictions alone won’t prevent reading sensitive contents./tmp/gh-aw/mcp-logs,/tmp/gh-aw/sandbox/firewall/logs, and/tmp/gh-aw/sandbox/firewall/auditwith root-owned, inaccessible directories./tmp/gh-aw/mcp-payloadsreadable for spilled tool responses; guard against overlapping it with masks.