feat(sandbox): enforce a network deny rule on a host the open default covers
Maintainers usually reply within 1 day
@LivXue is already working on this.
Since Nov 12, 2026.
Assessment
This issue has not been assessed yet.
Description
Reserved for @LivXue: waiting for LivXue to resolve this. Please do not pick it up.
Summary
Under permissions.network.default: open, a deny rule in permissions.network cannot block, inside the sandbox, a host of three or more labels. The open default compiles to an OpenShell endpoint **.*.* on every port, and OpenShell refuses a deny endpoint that overlaps it. PR #1269 ships without that enforcement and warns instead.
What was measured
OpenShell 0.1.8 on an Ubuntu 24.04 host, 2026-11-12:
- An L7 deny endpoint (
protocol: rest,access: full,deny_rules: [* /**]) for a host the**.*.*wildcard covers is refused:FAILED_PRECONDITION network endpoint ambiguity validation failed: ... overlap on port(s) 443 with conflicting metadata: tls=0 vs 1; protocol=.... Overlapping endpoints must sharetlsandprotocol. tls: terminateis not an accepted value ("omit the field to keep automatic TLS termination"), andprotocolwithoutrulesoraccessis refused.- Partial label wildcards cannot cut the open set into pieces that leave a denied host out: a single
a*.*endpoint makes the policyConfigurationInvalid, and the sandbox never becomes ready. - Against Raven's full open policy (about 181 KB), every rejected merge surfaces as
RESOURCE_EXHAUSTED ... received metadata size exceeds hard limit (value length 290789 vs. 16384): the gateway echoes the policy in its error trailer, so the real reason is lost.
What stands after PR #1269
- A denied host on the built-in two-label list is left out of the open set, so the sandbox blocks it.
- A deny rule always stops Raven from opening a host: the mode, the reviewer and an approval all refuse it.
- A host of three or more labels that
**.*.*covers stays reachable under the open default. Compiling the policy warns once per such rule (unenforced_denialsinraven/sandbox/network_policy.py). - A hard block needs
permissions.network.default: closed.
Directions considered
- A wildcard that terminates TLS and inspects HTTP, so a deny endpoint can share its metadata. Every HTTPS connection of the sandbox would be intercepted, and non-HTTP traffic on 443 would break. Not taken so far.
- An upstream change in OpenShell: deny precedence over an overlapping allow, or a deny endpoint without L7 metadata.
- Separately, an upstream report about the
RESOURCE_EXHAUSTEDerror trailer hiding the real validation error.
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 94
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 216
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 EverMind-AI/Raven
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
EverMind-AI/Raven#1413 ·
Maintainers usually reply within 1 day
-
feat: allow users to build ui-web and ui-tui with `bun`May be free again @0warning0error claimed this 8 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
EverMind-AI/Raven#1283 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
EverMind-AI/Raven#121 ·
Maintainers usually reply within 1 day
-
fix: Feishu channel status wrongly reports missing credentials and "not connected" while WebSocket is livePossibly taken @pcbeingused333 claimed this 1 day ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 18/100
EverMind-AI/Raven#1399 · 1 comment ·
Maintainers usually reply within 1 day
-
WebUI tab froze silently while gateway stayed healthy (heartbeat stopped 1h49m); reproducible /auth refresh dead-end fixed in #1392Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 22/100
EverMind-AI/Raven#1393 · 2 comments ·
Maintainers usually reply within 1 day
All issues in EverMind-AI/Raven
Similar issues
-
bug docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
comp/tools P2 tool/skills type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#159541 ·
Maintainers usually reply within 1 day