Compose: let the server listen below 1024 under podman too #80

Merged
jcoffey-dev merged 1 commits from feat/server-port-sysctl into main 2026-11-18 15:56:22 +00:00
Owner

The server image is dropping its file capability (inbuxa/inbuxa-server#443, for #424), so it can run in a pod with every capability dropped. Docker already sets net.ipv4.ip_unprivileged_port_start=0 in a container's network namespace; podman doesn't, and without it the server couldn't listen on 25, 443, 465 or 993.

This sets the sysctl on the server service explicitly. It's harmless with today's images (they still have the capability), so it can merge first.

Tested: go test ./... passes; the compose test checks the sysctl is rendered; docker compose run with the same sysctls: block shows 0 inside the container.

The server image is dropping its file capability (inbuxa/inbuxa-server#443, for #424), so it can run in a pod with every capability dropped. Docker already sets `net.ipv4.ip_unprivileged_port_start=0` in a container's network namespace; podman doesn't, and without it the server couldn't listen on 25, 443, 465 or 993. This sets the sysctl on the server service explicitly. It's harmless with today's images (they still have the capability), so it can merge first. Tested: `go test ./...` passes; the compose test checks the sysctl is rendered; `docker compose run` with the same `sysctls:` block shows 0 inside the container.
jcoffey-dev added 1 commit 2026-11-18 14:08:55 +00:00
The server image is dropping its file capability (inbuxa-server#424), so a
pod or container with every capability dropped can run it. Docker already
sets net.ipv4.ip_unprivileged_port_start=0 in a container's network
namespace; podman doesn't, and without it the server could no longer
listen on 25, 443, 465 or 993. Set it on the server service explicitly.

Refs inbuxa/inbuxa-server#424
jcoffey-dev merged commit aed64e53e3 into main 2026-11-18 15:56:22 +00:00
jcoffey-dev deleted branch feat/server-port-sysctl 2026-11-18 15:56:22 +00:00
Sign in to join this conversation.