openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Security: docker-compose.yml missing container hardening

Open Liohtml opened this issue 6 months ago • 0 comments

Summary

docker-compose.yml does not set any security hardening options:

  • No read_only: true for 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

Liohtml avatar May 16 '26 14:05 Liohtml