From 450d211df24242985422e670c61a37b36a34d6ba Mon Sep 17 00:00:00 2001 From: Bayan Taani Date: Tue, 6 Oct 2026 16:56:00 +0200 Subject: [PATCH] update default crypto policy for PQC readiness --- Dockerfile.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.art b/Dockerfile.art index 32d191e..b752e8b 100644 --- a/Dockerfile.art +++ b/Dockerfile.art @@ -1,5 +1,8 @@ FROM registry-proxy.engineering.redhat.com/rh-osbs/openshift-golang-builder:v1.24.6-202510150934.g4284440.el9 AS builder +RUN dnf install -y crypto-policies-scripts +RUN update-crypto-policies --set DEFAULT:PQ + ENV GOEXPERIMENT=strictfipsruntime ENV CGO_ENABLED=1 ENV GOOS=linux @@ -12,6 +15,7 @@ RUN go build -tags strictfipsruntime -a -ldflags '-s -w' -o ./opa-openshift . FROM registry.access.redhat.com/ubi9/ubi-minimal +COPY --from=builder /etc/crypto-policies/ /etc/crypto-policies/ COPY --from=builder /opt/app-root/src/opa-openshift/opa-openshift /usr/bin/opa-openshift EXPOSE 80