Skip to content

Can't bind port 80 without root privileges #24

Description

@ogallart23

Hi, first of all, thanks for rhis awsome project.

I'm trying to run HUG with hostNetwork: true and --ipv4-bind-address so it binds directly to a specific node IP on port 80 (different from another HAProxy instance listening on another IP on the same node).

However, I always get:

caps: detected port binding capabilities
min_unprivileged_port:1024
net_bind_service:false

I've tried multiple securityContext configurations (runAsUser, NET_BIND_SERVICE enabled/disabled, root/non-root, etc.), but HUG is never able to bind to port 80 as a non-root user.

As a comparison, I performed the same tests with HAProxy Kubernetes Ingress Controller and it is able to bind to privileged ports successfully in the same environment.

I mention this because, in version v1.0.4, my understanding was that low ports should be supported without running as root. Is there something I'm missing, or could there be an issue with the capability detection?

Activity

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

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