Skip to content

fix(sandbox): configure gVisor host network mode for Cilium eBPF comp#495

Merged
xiaods merged 2 commits into
mainfrom
dev
Jun 6, 2026
Merged

fix(sandbox): configure gVisor host network mode for Cilium eBPF comp#495
xiaods merged 2 commits into
mainfrom
dev

Conversation

@xiaods

@xiaods xiaods commented Jun 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

xiaods added 2 commits June 6, 2026 10:17
…atibility

gVisor's default netstack mode processes TCP/IP in userspace (Sentry),
bypassing Cilium's eBPF programs attached to veth pairs. This causes
DNS and all egress traffic to fail — Cilium cannot see or enforce
network policies on traffic from gVisor pods.

Set gvisor.dev/network=host annotation on gVisor pods so Sentry
forwards network syscalls to the pod's kernel network namespace.
Traffic then flows through the standard veth + eBPF path, allowing
Cilium to intercept and enforce policies normally.

The pod still has its own network namespace — this is NOT pod-level
hostNetwork. gVisor's syscall filtering and sandboxing remain intact.
…command

- Add ingress rule to per-session CNP: only host node can reach sandboxd
  on port 2024. All other cluster-internal ingress is denied.
- Add --allowed-hosts flag to run command for custom network allowlist
  when auto-creating a session.
@sonarqubecloud

sonarqubecloud Bot commented Jun 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Test Results

306 tests  ±0   306 ✅ ±0   4m 21s ⏱️ -4s
110 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 282893f. ± Comparison against base commit feb7b03.

♻️ This comment has been updated with latest results.

@xiaods xiaods merged commit 6cc05f2 into main Jun 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant