Skip to content

remove privileged: true from docker-compose #52

Open

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"

Activity

  1. martenson commented on May 6, 2026

    @martenson
    MemberAuthor

    with @micoleaoo we discussed yesterday this seems to be related to dev environment at the moment; he'll briefly look into a remedy and we'll discourage using this setup in the docs if there is no easy way out (the recommended way is a separate pulsar service)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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