From 8180d592dee828b61020d0a4c0e5471c144c6bec Mon Sep 17 00:00:00 2001 From: Steven Terhar Date: Wed, 14 Apr 2021 14:38:46 +0000 Subject: [PATCH 1/2] Update GitLab to the 13.10.3 Security Release --- Dockerfile | 15 ++++++++++++--- build-scripts/build.sh | 2 +- hardening_manifest.yaml | 10 +++++----- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 63c6f16..bf0637b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,26 @@ -ARG GITLAB_VERSION=v13.10.0-ubi8 +ARG GITLAB_VERSION=v13.10.3-ubi8 ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082 ARG BASE_IMAGE=gitlab/gitlab/git-base -ARG BASE_TAG=13.10.0 +ARG BASE_TAG=13.10.3 ARG GIT_IMAGE=${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} FROM ${GIT_IMAGE} -ARG GITALY_SERVER_VERSION=v13.10.0 +ARG GITALY_SERVER_VERSION=v13.10.3 ARG GITLAB_USER=git ARG DNF_OPTS +LABEL source="https://gitlab.com/gitlab-org/build/CNG/-/tree/master/gitaly" \ + name="Gitaly" \ + maintainer="GitLab Distribution Team" \ + vendor="GitLab" \ + version=${GITALY_SERVER_VERSION} \ + release=${GITALY_SERVER_VERSION} \ + summary="Gitaly is a Git RPC service for handling all the git calls made by GitLab." \ + description="Gitaly is a Git RPC service for handling all the git calls made by GitLab." + ADD gitaly.tar.gz / COPY scripts/ /scripts/ diff --git a/build-scripts/build.sh b/build-scripts/build.sh index 1cd9408..9e0c97c 100755 --- a/build-scripts/build.sh +++ b/build-scripts/build.sh @@ -4,7 +4,7 @@ set -euxo pipefail -TAG=${1:-13.10.0} +TAG=${1:-13.10.3} REPOSITORY=${2:-} DOCKER_OPTS=${DOCKER_OPTS:-""} diff --git a/hardening_manifest.yaml b/hardening_manifest.yaml index 2fb6f80..2abfa06 100644 --- a/hardening_manifest.yaml +++ b/hardening_manifest.yaml @@ -5,12 +5,12 @@ name: "gitlab/gitlab/gitaly" # The most specific version should be the first tag and will be shown # on ironbank.dsop.io tags: - - "13.10.0" + - "13.10.3" - "latest" # Build args passed to Dockerfile ARGs args: BASE_IMAGE: "gitlab/gitlab/git-base" - BASE_TAG: "13.10.0" + BASE_TAG: "13.10.3" # Docker image labels labels: org.opencontainers.image.title: "Gitlab Gitaly" @@ -22,7 +22,7 @@ labels: org.opencontainers.image.url: "https://about.gitlab.com/" ## Name of the distributing entity, organization or individual org.opencontainers.image.vendor: "Gitlab" - org.opencontainers.image.version: "13.10.0" + org.opencontainers.image.version: "13.10.3" ## Keywords to help with search (ex. "cicd,gitops,golang") mil.dso.ironbank.image.keywords: "gitlab, git, gitops" ## This value can be "opensource" or "commercial" @@ -43,8 +43,8 @@ maintainers: username: "alfontaine" email: "alan.fontaine@centauricorp.com" resources: - - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.0-ubi8/gitaly.tar.gz" + - url: "https://gitlab-ubi.s3.amazonaws.com/ubi8-build-dependencies-v13.10.3-ubi8/gitaly.tar.gz" filename: "gitaly.tar.gz" validation: type: "sha256" - value: "a68fbda721c0c98949e9aab2974c9dcd983c467c505261db201289c5d5b3baa9" + value: "829b1d98fd90a59138a28641a52d6eb2c8df3388de69038e2da492940d3200d9" -- GitLab From 31d65d4d90d911a2a248347cb5752e71eda52759 Mon Sep 17 00:00:00 2001 From: Steven Terhar Date: Wed, 14 Apr 2021 14:48:37 +0000 Subject: [PATCH 2/2] Update Dockerfile - remove label --- Dockerfile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf0637b..0f807b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,15 +12,6 @@ ARG GITALY_SERVER_VERSION=v13.10.3 ARG GITLAB_USER=git ARG DNF_OPTS -LABEL source="https://gitlab.com/gitlab-org/build/CNG/-/tree/master/gitaly" \ - name="Gitaly" \ - maintainer="GitLab Distribution Team" \ - vendor="GitLab" \ - version=${GITALY_SERVER_VERSION} \ - release=${GITALY_SERVER_VERSION} \ - summary="Gitaly is a Git RPC service for handling all the git calls made by GitLab." \ - description="Gitaly is a Git RPC service for handling all the git calls made by GitLab." - ADD gitaly.tar.gz / COPY scripts/ /scripts/ -- GitLab