Skip to content

remove privileged: true from docker-compose #52

@martenson

Description

@martenson

This is likely a critical security issue allowing full app and system access to a potential attacker.

llm suggest this as a possible resolution, take with a big grain of salt:

  services:
    tesp-api:
      # Remove: privileged: true
      cap_add:
        - NET_BIND_SERVICE  # Only if you need to bind to privileged ports (< 1024)
        # Or simply run on unprivileged ports (you're already using 8080)
      security_opt:
        - no-new-privileges:true  # Prevent privilege escalation
      # ...

    pulsar_rest:
      # If you truly need Docker-in-Docker, use a safer alternative:
      # Remove: privileged: true
      volume_mounts:
        - /var/run/docker.sock:/var/run/docker.sock
      Consider using: "Docker socket proxy" or "Rootless Docker"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions