From 97e9692125c29c721065e581923743220ec1180d Mon Sep 17 00:00:00 2001 From: Travis Raines <571832+rainest@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:35:48 -0700 Subject: [PATCH] chore: change container UID and GID --- CHANGELOG.md | 5 ++++- Dockerfile | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f124f3d4c3..57eda95142 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -145,7 +145,10 @@ Adding a new version? You'll need three changes: ### Changed - Update paths of Konnect APIs from `runtime_groups/*` to `control-planes/*`. -[#4566](https://github.com/Kong/kubernetes-ingress-controller/pull/4566) + [#4566](https://github.com/Kong/kubernetes-ingress-controller/pull/4566) +- Docker images now use UID and GID 1000 to match Kong images. This should have + no user-facing effect. + [#4911](https://github.com/Kong/kubernetes-ingress-controller/pull/4911) ### Added diff --git a/Dockerfile b/Dockerfile index 166a67a97c..78fb390033 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,7 +77,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH="${TARGETARCH}" GO111MODULE=on make _build.f FROM gcr.io/distroless/static:nonroot AS distroless-fips WORKDIR / COPY --from=builder-fips /workspace/manager . -USER 65532:65532 +USER 1000:1000 ENTRYPOINT ["/manager"] @@ -100,6 +100,6 @@ LABEL name="Kong Ingress Controller" \ WORKDIR / COPY --from=builder /workspace/bin/manager . -USER 65532:65532 +USER 1000:1000 ENTRYPOINT ["/manager"]