Skip to content

Commit

Permalink
Update packages for CVE-2022-1271 (#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Apr 11, 2022
1 parent b730340 commit 2af0e29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ jobs:
platforms: ${{ github.event_name != 'pull_request' && matrix.platforms || '' }}
load: ${{ github.event_name == 'pull_request' }}
push: ${{ github.event_name != 'pull_request' }}
pull: true
no-cache: ${{ github.event_name != 'pull_request' }}
build-args: |
BUILD_OS=${{ matrix.image }}
Expand Down Expand Up @@ -522,6 +523,7 @@ jobs:
platforms: ${{ github.event_name != 'pull_request' && matrix.platforms || '' }}
load: ${{ github.event_name == 'pull_request' }}
push: ${{ github.event_name != 'pull_request' }}
pull: true
no-cache: ${{ github.event_name != 'pull_request' }}
build-args: |
BUILD_OS=${{ matrix.image }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ jobs:
platforms: ${{ matrix.platforms }}
push: true
no-cache: true
pull: true
build-args: |
BUILD_OS=${{ matrix.image }}
IC_VERSION=v${{ needs.variables.outputs.kic-tag }}
Expand Down
10 changes: 3 additions & 7 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ RUN apt-get update \
# docker.io/library/nginx is a temporary workaround for Dependabot to see this as different from the one used in Debian
FROM docker.io/library/nginx:1.21.6-alpine AS alpine

RUN apk add --no-cache libcap \
# Temp fix for CVE-2022-0778 and CVE-2018-25032
&& apk upgrade --no-cache libretls zlib
RUN apk add --no-cache libcap\
# temp fix for CVE-2022-1271
&& apk upgrade --no-cache xz-libs


############################################# Base image for Alpine with NGINX Plus #############################################
Expand Down Expand Up @@ -82,8 +82,6 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y app-protect-dos; \
fi \
# temp fix for CVE-2021-43618
&& apt-get install -y libgmp10 \
&& apt-get purge --auto-remove -y apt-transport-https gnupg \
&& rm -rf /var/lib/apt/lists/* \
&& rm /etc/apt/sources.list.d/nginx-app-protect*.list
Expand All @@ -109,8 +107,6 @@ LABEL name="NGINX Ingress Controller" \
io.openshift.tags="nginx,ingress-controller,ingress,controller,kubernetes,openshift"

RUN dnf --nodocs install -y shadow-utils ca-certificates \
# temp fix for CVE-2022-0778
&& dnf --nodocs upgrade -y openssl-libs \
&& groupadd --system --gid 101 nginx \
&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx

Expand Down

0 comments on commit 2af0e29

Please sign in to comment.