You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/egress/README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,6 @@
2
2
3
3
The **Egress Sidecar** is a core component of OpenSandbox that provides **FQDN-based egress control**. It runs alongside the sandbox application container (sharing the same network namespace) and enforces declared network policies.
4
4
5
-
> **Status**: Implementing. Currently supports Layer 1 (DNS Proxy). Layer 2 (Network Filter) is on the roadmap.
6
-
> See [OSEP-0001: FQDN-based Egress Control](../../oseps/0001-fqdn-based-egress-control.md) for the detailed design.
7
-
8
5
## Features
9
6
10
7
-**FQDN-based Allowlist**: Control outbound traffic by domain name (e.g., `api.github.com`).
@@ -59,8 +56,9 @@ The egress control is implemented as a **Sidecar** that shares the network names
59
56
60
57
- Default listen address: `:18080` (override with `OPENSANDBOX_EGRESS_HTTP_ADDR`).
61
58
- Endpoints:
62
-
-`GET /policy` — returns the current policy.
63
-
-`POST /policy` — replaces the policy. Empty/whitespace/`{}`/`null` resets to default deny-all.
59
+
-`GET /policy` — returns the current policy.
60
+
-`POST /policy` — replaces the policy. Empty/whitespace/`{}`/`null` resets to default deny-all.
61
+
-`PATCH /policy` — merge/append rules at runtime. Body **must** be a JSON array of egress rules (not wrapped in an object). New rules are placed before existing ones (same target overrides), so a later PATCH can override prior wildcard denies with a more specific allow, and vice versa.
0 commit comments