mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-25 13:59:08 +01:00
* [client,proxy,management,signal,relay] Distrust compromised eMudhra CA keys Eight eMudhra intermediate CA private keys were compromised and browsers blocked them on 2026-10-17. Our binaries were built with go1.26.7, which accepts chains through those intermediates whenever the trust store still holds emSign ECC Root CA - G3. go1.26.10 rejects them in crypto/x509 on every platform, regardless of the trust store. The UBI base still ships the root and Red Hat has no fixed package yet, so the UBI images blocklist it with p11-kit. The ingest image, the UI server image and the pinned Chainguard digests also carried the root and move to bases that no longer do. * [client,proxy,management,signal,relay] Use the fixed UBI base instead of a blocklist Red Hat shipped ca-certificates 2026.2.92_v9.0.319-90.3 on 2026-10-22, which drops emSign ECC Root CA - G3 and AAA Certificate Services. The current ubi9-minimal image carries it, so pin that digest and remove the p11-kit blocklist step. * [misc] Pin upload-server images by digest only and restore go.mod comment
40 lines
1.2 KiB
Docker
40 lines
1.2 KiB
Docker
FROM golang:1.26.10-alpine AS builder
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY client ./client
|
|
COPY dns ./dns
|
|
COPY encryption ./encryption
|
|
COPY flow ./flow
|
|
COPY formatter ./formatter
|
|
COPY monotime ./monotime
|
|
COPY management ./management
|
|
COPY proxy ./proxy
|
|
COPY route ./route
|
|
COPY shared ./shared
|
|
COPY sharedsock ./sharedsock
|
|
COPY trustedproxy ./trustedproxy
|
|
COPY upload-server ./upload-server
|
|
COPY util ./util
|
|
COPY version ./version
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o netbird-proxy ./proxy/cmd/proxy
|
|
|
|
RUN echo "netbird:x:1000:1000:netbird:/var/lib/netbird:/sbin/nologin" > /tmp/passwd && \
|
|
echo "netbird:x:1000:netbird" > /tmp/group && \
|
|
mkdir -p /tmp/var/lib/netbird && \
|
|
mkdir -p /tmp/certs
|
|
|
|
FROM gcr.io/distroless/base:debug
|
|
COPY --from=builder /app/netbird-proxy /usr/bin/netbird-proxy
|
|
COPY --from=builder /tmp/passwd /etc/passwd
|
|
COPY --from=builder /tmp/group /etc/group
|
|
COPY --from=builder --chown=1000:1000 /tmp/var/lib/netbird /var/lib/netbird
|
|
COPY --from=builder --chown=1000:1000 --chmod=755 /tmp/certs /certs
|
|
USER netbird:netbird
|
|
ENV HOME=/var/lib/netbird
|
|
ENV NB_PROXY_ADDRESS=":8443"
|
|
EXPOSE 8443
|
|
ENTRYPOINT ["/usr/bin/netbird-proxy"]
|