Skip to content

sec: change default network_mode from host to bridge #43

@dasirra

Description

@dasirra

Problem

docker-compose.yaml defaults to network_mode: host, giving the container unrestricted access to the entire host network stack. On a NAS with other services (SSH, SMB, databases, backup systems), this means the container can reach everything on the LAN.

Current State

  • docker-compose.yaml:10network_mode: "host" (default)
  • docker-compose.override.yaml — already switches to bridge with explicit port exposure

Severity: CRITICAL

Proposed Solution

  1. Change the default in docker-compose.yaml to network_mode: bridge with explicit port mappings (18789, 18790)
  2. Document host mode as an optional override for users who need it
  3. Update the install wizard to ask about network mode preference

Context

From security audit 2026-03-25. See full report in Vault.

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitySecurity hardening and vulnerability fixes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions