Skip to content

Commit 32db8db

Browse files
committed
chore: lock microsoft secureboot certs
Point to the last release to avoid updates on `make generate`. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 3ce5492 commit 32db8db

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,15 @@ COPY --from=pkg-ipxe-amd64 /usr/libexec/snp.efi /amd64/snp.efi
310310
COPY --from=pkg-ipxe-arm64 /usr/libexec/snp.efi /arm64/snp.efi
311311

312312
FROM scratch AS microsoft-secureboot-database
313-
ADD https://github.com/microsoft/secureboot_objects.git /
313+
ARG MICROSOFT_SECUREBOOT_RELEASE
314+
ADD https://github.com/microsoft/secureboot_objects.git#${MICROSOFT_SECUREBOOT_RELEASE}:PreSignedObjects /
314315

315316
FROM scratch AS microsoft-key-keys
316-
COPY --from=microsoft-secureboot-database /PreSignedObjects/KEK/Certificates/*.der /kek/
317+
COPY --from=microsoft-secureboot-database /KEK/Certificates/*.der /kek/
317318

318319
FROM scratch AS microsoft-db-keys
319-
COPY --from=microsoft-secureboot-database /PreSignedObjects/DB/Certificates/MicCor*.der /db/
320-
COPY --from=microsoft-secureboot-database /PreSignedObjects/DB/Certificates/microsoft*.der /db/
320+
COPY --from=microsoft-secureboot-database /DB/Certificates/MicCor*.der /db/
321+
COPY --from=microsoft-secureboot-database /DB/Certificates/microsoft*.der /db/
321322

322323
FROM --platform=${BUILDPLATFORM} scratch AS generate
323324
COPY --from=proto-format-build /src/api /api/

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ HELM_VERSION ?= v3.15.2
100100
CLUSTERCTL_VERSION ?= 1.7.3
101101
# renovate: datasource=github-releases depName=cilium/cilium-cli
102102
CILIUM_CLI_VERSION ?= v0.16.11
103+
# renovate: datasource=github-releases depName=microsoft/secureboot_objects
104+
MICROSOFT_SECUREBOOT_RELEASE ?= v1.1.3
105+
103106
KUBECTL_URL ?= https://dl.k8s.io/release/$(KUBECTL_VERSION)/bin/$(OPERATING_SYSTEM)/amd64/kubectl
104107
KUBESTR_URL ?= https://github.com/kastenhq/kubestr/releases/download/$(KUBESTR_VERSION)/kubestr_$(subst v,,$(KUBESTR_VERSION))_Linux_amd64.tar.gz
105108
HELM_URL ?= https://get.helm.sh/helm-$(HELM_VERSION)-linux-amd64.tar.gz
@@ -209,6 +212,7 @@ COMMON_ARGS += --build-arg=PKG_KERNEL=$(PKG_KERNEL)
209212
COMMON_ARGS += --build-arg=PKG_TALOSCTL_CNI_BUNDLE_INSTALL=$(PKG_TALOSCTL_CNI_BUNDLE_INSTALL)
210213
COMMON_ARGS += --build-arg=ABBREV_TAG=$(ABBREV_TAG)
211214
COMMON_ARGS += --build-arg=ZSTD_COMPRESSION_LEVEL=$(ZSTD_COMPRESSION_LEVEL)
215+
COMMON_ARGS += --build-arg=MICROSOFT_SECUREBOOT_RELEASE=$(MICROSOFT_SECUREBOOT_RELEASE)
212216

213217
CI_ARGS ?=
214218

0 commit comments

Comments
 (0)