Skip to content

Commit ae26749

Browse files
committed
Enable PQC in Dockerfiles
1 parent 880389d commit ae26749

8 files changed

Lines changed: 26 additions & 6 deletions

Dockerfile.assisted-installer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN git rev-parse --short HEAD > /commit-reference.txt
2121

2222
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
2323

24+
RUN microdnf install -y --disablerepo="*" --enablerepo="ubi-9-*" crypto-policies-scripts && update-crypto-policies --set DEFAULT:PQ && microdnf clean all
2425
RUN microdnf install -y util-linux-core && microdnf clean all
2526

2627
COPY --from=builder /go/src/github.com/openshift/assisted-installer/build/installer /usr/bin/installer

Dockerfile.assisted-installer-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ RUN dnf install -y 'dnf-command(config-manager)' && \
2525
openssl-devel \
2626
gcc \
2727
&& dnf clean all
28+
RUN update-crypto-policies --set DEFAULT:PQ
2829

2930
ENV GOROOT=/usr/lib/golang
3031
ENV GOPATH=/opt/app-root/src/go

Dockerfile.assisted-installer-controller

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN git rev-parse --short HEAD > /commit-reference.txt
2222
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
2323
ARG TARGETPLATFORM
2424

25+
RUN microdnf install -y --disablerepo="*" --enablerepo="ubi-9-*" crypto-policies-scripts && update-crypto-policies --set DEFAULT:PQ && microdnf clean all
2526
RUN microdnf install -y tar gzip rsync which procps-ng findutils && microdnf clean all
2627

2728
# openshift clients

Dockerfile.assisted-installer-controller-downstream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY --chown=${USER_UID} . /app
1414
WORKDIR /app
1515
RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o assisted-installer-controller src/main/assisted-installer-controller/assisted_installer_main.go
1616

17-
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
17+
FROM registry.redhat.io/ubi9/ubi-minimal-pqc:latest@sha256:3e009398a8aa8eec621393fbf308c5e622f174900e44e8d5fe224c637920924a
1818
ARG release=main
1919
ARG version=latest
2020

Dockerfile.assisted-installer-controller-mce

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WORKDIR /app
1717

1818
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -tags strictfipsruntime -o assisted-installer-controller src/main/assisted-installer-controller/assisted_installer_main.go
1919

20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
20+
FROM registry.redhat.io/ubi9/ubi-minimal-pqc:latest@sha256:3e009398a8aa8eec621393fbf308c5e622f174900e44e8d5fe224c637920924a
2121
ARG release=main
2222
ARG version=latest
2323

Dockerfile.assisted-installer-downstream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY --chown=${USER_UID} . /app
1414
WORKDIR /app
1515
RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o installer src/main/main.go
1616

17-
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
17+
FROM registry.redhat.io/ubi9/ubi-minimal-pqc:latest@sha256:3e009398a8aa8eec621393fbf308c5e622f174900e44e8d5fe224c637920924a
1818
ARG release=main
1919
ARG version=latest
2020

Dockerfile.assisted-installer-mce

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WORKDIR /app
1717

1818
RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -tags strictfipsruntime -o installer src/main/main.go
1919

20-
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
20+
FROM registry.redhat.io/ubi9/ubi-minimal-pqc:latest@sha256:3e009398a8aa8eec621393fbf308c5e622f174900e44e8d5fe224c637920924a
2121
ARG release=main
2222
ARG version=latest
2323

renovate.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,21 @@
8787
],
8888
"depNameTemplate": "registry.access.redhat.com/ubi9/ubi-minimal",
8989
"datasourceTemplate": "docker"
90+
},
91+
{
92+
"customType": "regex",
93+
"fileMatch": [
94+
"^Dockerfile\\.assisted-installer-mce$",
95+
"^Dockerfile\\.assisted-installer-downstream$",
96+
"^Dockerfile\\.assisted-installer-controller-mce$",
97+
"^Dockerfile\\.assisted-installer-controller-downstream$"
98+
],
99+
"matchStrings": [
100+
"FROM registry.redhat.io/ubi9/ubi-minimal-pqc:(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\\n",
101+
"FROM --platform=\\$BUILDPLATFORM registry.redhat.io/ubi9/ubi-minimal-pqc:(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\\n"
102+
],
103+
"depNameTemplate": "registry.redhat.io/ubi9/ubi-minimal-pqc",
104+
"datasourceTemplate": "docker"
90105
}
91106
],
92107
"packageRules": [
@@ -155,7 +170,8 @@
155170
},
156171
{
157172
"matchPackageNames": [
158-
"registry.access.redhat.com/ubi9/ubi-minimal"
173+
"registry.access.redhat.com/ubi9/ubi-minimal",
174+
"registry.redhat.io/ubi9/ubi-minimal-pqc"
159175
],
160176
"groupName": "UBI Runtime Images",
161177
"addLabels": [
@@ -170,7 +186,8 @@
170186
"docker"
171187
],
172188
"matchPackageNames": [
173-
"registry.access.redhat.com/ubi9/ubi-minimal"
189+
"registry.access.redhat.com/ubi9/ubi-minimal",
190+
"registry.redhat.io/ubi9/ubi-minimal-pqc"
174191
],
175192
"enabled": false
176193
},

0 commit comments

Comments
 (0)