[proxy] Add a release-wired UBI image variant (#7464)

Add a UBI-based reverse-proxy image for the internal Red Hat certification requirement, without changing the existing image or deployment defaults. Includes non-root execution, licensing and image metadata, plus an AMD64 GoReleaser entry with separate UBI tags.

Preflight and TLS/overlay checks passed. An intermittent shutdown exit error remains deferred; this stays draft pending maintainer testing.
This commit is contained in:
Nicolas Frati
2026-09-28 09:46:42 +02:00
committed by GitHub
parent 4a8c158b50
commit 2f27051439
6 changed files with 320 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:7fbeae18dc9476399f565e68255f602a3374ea8614ba3d14843565131a13ff93
ARG TARGETPLATFORM
ARG VERSION=dev
ARG RELEASE=1
LABEL name="netbird-reverse-proxy" \
maintainer="NetBird <dev@netbird.io>" \
vendor="NetBird GmbH" \
version="${VERSION}" \
release="${RELEASE}" \
summary="NetBird Reverse Proxy" \
description="NetBird Reverse Proxy provides an identity-aware entrypoint to services in NetBird networks."
COPY --chmod=0555 ${TARGETPLATFORM}/netbird-proxy /go/bin/netbird-proxy
COPY licenses/ /licenses/
# Only the writable directories share the root group for arbitrary non-root UIDs.
# Runtime-created private keys retain the application's restrictive file modes.
RUN mkdir -p /var/lib/netbird /certs && \
chown 1000:0 /var/lib/netbird /certs && \
chmod 0770 /var/lib/netbird /certs && \
chmod -R a+rX /licenses
USER 1000:0
ENV HOME=/var/lib/netbird
ENV NB_PROXY_ADDRESS=":8443"
# Unprivileged ports: runtimes such as OpenShift and Podman keep the kernel
# default that reserves ports below 1024 for root. 8080 is the health probe.
ENV NB_PROXY_ACME_ADDRESS=":8081"
EXPOSE 8443
STOPSIGNAL SIGTERM
ENTRYPOINT ["/go/bin/netbird-proxy"]