security: harden gateway container privileges

Adds cap_drop and no-new-privileges hardening for the bundled gateway Docker Compose services.\n\nThanks @VintageAyu.
This commit is contained in:
Ayu
2026-05-05 13:07:26 +05:30
committed by GitHub
parent 121ac44fa8
commit f9da484365
3 changed files with 7 additions and 1 deletions

View File

@@ -332,7 +332,7 @@ See [ClawDock](/install/clawdock) for the full helper guide.
`openclaw-cli` uses `network_mode: "service:openclaw-gateway"` so CLI
commands can reach the gateway over `127.0.0.1`. Treat this as a shared
trust boundary. The compose config drops `NET_RAW`/`NET_ADMIN` and enables
`no-new-privileges` on `openclaw-cli`.
`no-new-privileges` on both `openclaw-gateway` and `openclaw-cli`.
</Accordion>
<Accordion title="Permissions and EACCES">