openhuman
openhuman copied to clipboard
Security: docker-compose.yml missing container hardening
Summary
docker-compose.yml does not set any security hardening options:
- No
read_only: truefor the root filesystem - No
security_opt: [no-new-privileges:true] - No
cap_drop: [ALL](no capability dropping) - No memory limits (
mem_limit,cpus)
Impact
Medium — A container escape or compromised process gets full default Linux capabilities. Combined with the unauthenticated RPC issue (#1919), this amplifies the blast radius significantly.
Suggested Fix
services:
openhuman:
# ... existing config ...
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
deploy:
resources:
limits:
memory: 4G
cpus: '2.0'
tmpfs:
- /tmp