#13308: Security: address audit findings (gateway, CI, Docker)
gateway
docker
stale
Cluster:
OpenClaw Plugin Enhancements
## Summary
This PR applies a set of security hardening changes identified during an internal audit (static review).
Focus areas: gateway auth defaults, network exposure, error hygiene, rate limiting, Docker supply-chain hardening, and CI/workflow permissions.
## Key changes
### Gateway / API
- Added rate limiting for HTTP endpoints (per IP/token) to reduce abuse/DoS risk.
- Sanitized error responses to avoid leaking internal details.
- Added request/payload validation improvements for hooks and other boundaries.
### Auth / Network
- Added an option to require auth even on loopback for hardened deployments.
- Tightened client IP resolution for forwarded headers (rightmost-untrusted approach).
- Added safety warnings / fail-fast behavior when binding to LAN without auth (where applicable).
### Tool execution
- Moved `system.run` out of the default allowlist into a “dangerous/opt-in” category.
### Container / CI
- Hardened Docker build (reduced supply-chain risk; improved build structure).
- Improved secret-handling guidance/structure in compose.
- Re-enabled CI security checks and added explicit workflow permissions.
## Verification
- [ ] `pnpm test` / `pnpm lint` (fill in what you ran)
- [ ] `pnpm build`
- CI: GitHub Actions
## Notes
- This PR keeps vulnerability details minimal; happy to provide more context privately if needed per the project security policy.
Most Similar PRs
#16320: security: harden default tool policies and secure shell execution
by SuccessSoham · 2026-02-14
74.0%
#21964: Security: harden gateway and plugin trust boundaries
by Elormyevu · 2026-02-20
73.9%
#15757: feat(security): add hardening gap audit checks
by saurabhsh5 · 2026-02-13
73.7%
#21326: Security/UI: harden Control UI gatewayUrl URL overrides
by bmendonca3 · 2026-02-19
71.6%
#22227: fix(security): harden gateway auth — audit logging, pairing, mode v...
by novalis133 · 2026-02-20
71.4%
#11710: fix: security hardening — exec blocking, auth validation, timing-sa...
by zendizmo · 2026-02-08
70.3%
#21136: fix(security): harden agent autonomy controls
by novalis133 · 2026-02-19
69.5%
#21159: fix(security): harden data exposure controls
by novalis133 · 2026-02-19
69.3%
#23574: security: P0 critical remediation — plugin sandbox, password hashin...
by lumeleopard001 · 2026-02-22
69.1%
#21784: fix(security): restrict gateway ports to loopback by default
by smilekyra · 2026-02-20
68.5%