Sandbox-side proposal audit (CONFIG:PROPOSED and /wait decisions) names only the first endpoint
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start in openshell-supervisor-network/src/policy_local.rs at summarize_chunk_for_audit (around line 695), then find its existing tests. Trace how the function summarizes endpoints and L7 rules for CONFIG:PROPOSED and /wait decisions. Add coverage for a two-endpoint rule and verify both summaries list every endpoint and L7 allow, or indicate the count when truncated.
Written by the indexing model from the issue text.
Description
User Story. As an operator shipping OpenShell's OCSF to a SIEM, I want each proposal's audit record to name every endpoint it asks for, so the trail matches what a reviewer approves.
Problem Statement. Two audit records summarise a proposal with summarize_chunk_for_audit: CONFIG:PROPOSED, and the /wait CONFIG:APPROVED|REJECTED. That function is at openshell-supervisor-network/src/policy_local.rs:695, and it reads rule.endpoints.first() and .first() of its L7 rules. A proposal for [ports.ubuntu.com:80, 169.254.169.254:80] is therefore audited as on ports.ubuntu.com:80 GET /ubuntu-ports/** by /usr/bin/perl, with no sign that a second endpoint exists.
The gateway's own approval audit does list every endpoint (endpoints=[…]), so the two streams disagree about the same chunk.
Impact. Anyone who reads the sandbox-side OCSF record, whether a SIEM or an auditor, sees only the benign endpoint. An agent can put the benign endpoint first.
Acceptance Criteria.
- The PROPOSED and
/waitdecision summaries list every endpoint and every L7 allow, or say "N endpoints" when truncated. - There is a test with a two-endpoint rule.
Reproduction Steps.
- From a sandbox,
POST http://policy.local/v1/proposalswith one rule containing two endpoints. - Compare
openshell rule get <sandbox>(both endpoints listed) with the PROPOSED line inopenshell logs <sandbox> --source sandbox(first only).
Environment.
openshell 0.1.2(Homebrew)- Docker driver, Docker 29.4.1 linux/arm64 (Docker Desktop)
- macOS 26.5.2
proposal_approval_mode= manual- Sources checked at
main0bca9fb
Logs. Only in source: the PROPOSED lines I observed each had a single endpoint. The first-only summary follows from policy_local.rs:699–706.
- Dominant language
- Rust
- Stars
- 13.2k
- Forks
- 1.6k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 343
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/OpenShell
-
bug(vm-driver): VM sandbox cold start stalls ~5 s repeatedly on "Waiting for VM supervisor"Possibly taken A pull request linked to this issue is open or already merged. Openstate:triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
docs: document workspace and provider label capabilitiesPossibly taken A pull request linked to this issue is open or already merged. Openarea:docs
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug(driver-mxc): test helper fails to compile after gateway-name argumentPossibly taken @feloy claimed this 2 days ago. Openstate:triage-needed
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug: install.sh ignores XDG_CONFIG_HOME for the local gateway configPossibly taken @fede-kamel claimed this 5 days ago. Openarea:cli os:linux os:macos state:validated
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NVIDIA/OpenShell#4042 · 2 comments ·
Maintainers usually reply within 1 day
-
state:triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/OpenShell#3995 · 2 comments ·
Maintainers usually reply within 1 day
All issues in NVIDIA/OpenShell
Similar issues
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
fastrevmd-lab/rustmistmcp#161 ·
-
arch-audit refactor
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
SocketDev/socket-patch#1011 ·
Maintainers usually reply within 1 day
-
bug user-priority/P2
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
opencode: an unanswered --version probe launches opencode 2 without per-session service isolationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
security-advisory
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
MinBZK/regelrecht#1686 ·
Maintainers usually reply within 1 day