diff --git a/.github/runtime-unfixed.json b/.github/runtime-unfixed.json index e6fe35c..bdaa5fa 100644 --- a/.github/runtime-unfixed.json +++ b/.github/runtime-unfixed.json @@ -462,6 +462,105 @@ "officialEvidence": "https://git.launchpad.net/ubuntu-cve-tracker/plain/active/CVE-2026-18508", "reason": "Canonical Ubuntu 26.04 status: resolute_tar: needed. No official resolute fixed package is available; keep tracking.", "checkedAt": "2026-10-23" + }, + { + "severity": "MEDIUM", + "package": "bsdutils", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/bsdutils@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04&epoch=1", + "version": "1:2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "libblkid1", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/libblkid1@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04", + "version": "2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "libmount1", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/libmount1@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04", + "version": "2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "libsmartcols1", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/libsmartcols1@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04", + "version": "2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "libuuid1", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/libuuid1@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04", + "version": "2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "login", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/login@4.16.0-2%2Breally2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04&epoch=1", + "version": "1:4.16.0-2+really2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "mount", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/mount@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04", + "version": "2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "perl-base", + "id": "CVE-2026-9538", + "purl": "pkg:deb/ubuntu/perl-base@5.40.1-7ubuntu0.4?arch=amd64&distro=ubuntu-26.04", + "version": "5.40.1-7ubuntu0.4", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-9538.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 perl binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" + }, + { + "severity": "MEDIUM", + "package": "util-linux", + "id": "CVE-2026-78408", + "purl": "pkg:deb/ubuntu/util-linux@2.41.3-3ubuntu2.2?arch=amd64&distro=ubuntu-26.04", + "version": "2.41.3-3ubuntu2.2", + "status": "no_official_fix", + "officialEvidence": "https://raw.githubusercontent.com/canonical/ubuntu-security-notices/28d50cac38ffe058a044db97525174487ff9f67d/osv/cve/2026/UBUNTU-CVE-2026-78408.json", + "reason": "Canonical OSV lists the exact Ubuntu 26.04 util-linux binary without a fixed range endpoint.", + "checkedAt": "2026-11-13" } ] } diff --git a/.github/scripts/verify-official-glibc.py b/.github/scripts/verify-official-glibc.py new file mode 100644 index 0000000..a3f8454 --- /dev/null +++ b/.github/scripts/verify-official-glibc.py @@ -0,0 +1,42 @@ +"""Verify that only the official glibc package family changed after backport qualification.""" +import json +import sys +from pathlib import Path + +PACKAGES = {"libc6", "libc-bin", "libc-gconv-modules-extra"} +VERSION = "2.43-2ubuntu2.7" +PREFIX = "pkg:deb/ubuntu/" + + +def os_packages(path): + report = json.loads(path.read_bytes()) + if report.get("bomFormat") != "CycloneDX": + raise ValueError("CycloneDX SBOM required") + packages = {} + for component in report["components"]: + purl = component.get("purl", "") + if not purl.startswith(PREFIX): + continue + name = component["name"] + if name in packages: + raise ValueError("Duplicate Ubuntu package: " + name) + packages[name] = (component["version"], purl) + return packages + + +def verify(before, after): + if not PACKAGES <= before.keys() or before.keys() != after.keys(): + raise ValueError("Installed Ubuntu package set changed") + for name, original in before.items(): + expected = ( + (VERSION, f"{PREFIX}{name}@{VERSION}?arch=amd64&distro=ubuntu-26.04") + if name in PACKAGES else original + ) + if after[name] != expected: + raise ValueError("Unexpected Ubuntu package identity: " + name) + + +if __name__ == "__main__": + before, after = map(Path, sys.argv[1:]) + verify(os_packages(before), os_packages(after)) + print("OFFICIAL_GLIBC_SBOM_CLOSURE_OK") diff --git a/.github/workflows/security-build.yml b/.github/workflows/security-build.yml index f89d151..6c22078 100644 --- a/.github/workflows/security-build.yml +++ b/.github/workflows/security-build.yml @@ -25,17 +25,18 @@ jobs: run: | set -euo pipefail curl --proto '=https' --tlsv1.2 --fail --silent --show-error --location \ - --output "$RUNNER_TEMP/go.tar.gz" https://go.dev/dl/go1.27.3.linux-amd64.tar.gz - printf '%s %s\n' 65efbc80fdc1fa2cd2631cad5b481777a68e8725f34e89f50fc6ac714e379b40 "$RUNNER_TEMP/go.tar.gz" | sha256sum -c - + --output "$RUNNER_TEMP/go.tar.gz" https://go.dev/dl/go1.27.4.linux-amd64.tar.gz + printf '%s %s\n' 7226736c2339719cda28fbf3a54d71aa63bcefe376e98cef00034268dab24840 "$RUNNER_TEMP/go.tar.gz" | sha256sum -c - tar -C "$RUNNER_TEMP" -xzf "$RUNNER_TEMP/go.tar.gz" echo "$RUNNER_TEMP/go/bin" >> "$GITHUB_PATH" - name: Validate source and build the updated runtime shell: bash run: | set -euo pipefail - test "$(go env GOVERSION)" = go1.27.3 + test "$(go env GOVERSION)" = go1.27.4 sudo --preserve-env=PATH,GOTOOLCHAIN,GOMAXPROCS,GOFLAGS bash scripts/validate.sh - docker build --build-arg VERSION=0.2.2 --build-arg REVISION="$GITHUB_SHA" -f package/Dockerfile -t local/secrets-flexvolume-plugin . + docker build --target qualified_backports --build-arg VERSION=0.2.3 --build-arg REVISION="$GITHUB_SHA" -f package/Dockerfile -t local/secrets-flexvolume-plugin-backports . + docker build --build-arg VERSION=0.2.3 --build-arg REVISION="$GITHUB_SHA" -f package/Dockerfile -t local/secrets-flexvolume-plugin . - name: Retain the exact verified runtime shell: bash run: | @@ -58,9 +59,15 @@ jobs: docker save "$runtime" --output "$RUNNER_TEMP/$name.tar" docker run --rm -v "$RUNNER_TEMP/trivy-cache:/root/.cache/trivy" -v "$RUNNER_TEMP/$name.tar:/image.tar:ro" -v "$PWD/dist/security-runtime:/evidence" "$scanner" image --input /image.tar --scanners vuln,secret --list-all-pkgs --format json --output "/evidence/$name-security-raw.json" docker run --rm -v "$RUNNER_TEMP/trivy-cache:/root/.cache/trivy" -v "$RUNNER_TEMP/$name.tar:/image.tar:ro" -v "$PWD/dist/security-runtime:/evidence" "$scanner" image --input /image.tar --format cyclonedx --output "/evidence/$name-sbom.cdx.json" + docker save "$runtime-backports" --output "$RUNNER_TEMP/$name-backports.tar" + docker run --rm -v "$RUNNER_TEMP/trivy-cache:/root/.cache/trivy" \ + -v "$RUNNER_TEMP/$name-backports.tar:/image.tar:ro" -v "$PWD/dist/security-runtime:/evidence" "$scanner" \ + image --skip-db-update --offline-scan --input /image.tar --format cyclonedx --output /evidence/backport-stage.cdx.json + rm -f "$RUNNER_TEMP/$name-backports.tar" + python3 .github/scripts/verify-official-glibc.py "dist/security-runtime/backport-stage.cdx.json" "dist/security-runtime/$name-sbom.cdx.json" backports="$RUNNER_TEMP/secrets-flexvolume-plugin-ubuntu-backports" bash .github/scripts/collect-ubuntu-backport-evidence.sh \ - "$runtime" "dist/security-runtime/$name-sbom.cdx.json" "$backports" \ + "$runtime" "dist/security-runtime/backport-stage.cdx.json" "$backports" \ > "dist/security-runtime/$name-ubuntu-backports-verification.json" tar -C "$backports" -czf "dist/security-runtime/$name-ubuntu-backports.tar.gz" . docker run --rm -v "$backports:/backports:ro" -v "$RUNNER_TEMP/trivy-cache:/root/.cache/trivy" -v "$RUNNER_TEMP/$name.tar:/image.tar:ro" -v "$PWD/dist/security-runtime:/evidence" "$scanner" image --vex /backports/openvex.json --skip-db-update --input /image.tar --scanners vuln,secret --list-all-pkgs --format json --output "/evidence/$name-security.json" @@ -88,7 +95,7 @@ jobs: packages: write env: GH_TOKEN: ${{ github.token }} - RELEASE_TAG: v0.2.2 + RELEASE_TAG: v0.2.3 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/go.mod b/go.mod index 68b21b9..de90c29 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/PastureStack/secrets-flexvolume-plugin go 1.26.0 -toolchain go1.27.3 +toolchain go1.27.4 diff --git a/package/Dockerfile b/package/Dockerfile index 2b9a3c5..bfff698 100644 --- a/package/Dockerfile +++ b/package/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1.7 ARG UBUNTU_SECURITY_BACKPORTS_IMAGE=ghcr.io/pasturestack/ubuntu-security-backports:v0.1.0@sha256:2742a3d429e4e14bc587f6dedc51ded4246cf90bbaedcd86c67d0885e32a6f2a -FROM golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5 AS build +FROM golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea AS build ARG VERSION=dev WORKDIR /src @@ -15,15 +15,15 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ FROM ${UBUNTU_SECURITY_BACKPORTS_IMAGE} AS ubuntu_security_backports -FROM ubuntu:26.04@sha256:2260313b31c8c011cd2eebe728008efac1b3982be73eb71348ea2648d2c0e09b +FROM ubuntu:26.04@sha256:2260313b31c8c011cd2eebe728008efac1b3982be73eb71348ea2648d2c0e09b AS qualified_backports ARG UBUNTU_SECURITY_BACKPORTS_IMAGE ARG VERSION=dev ARG REVISION=unknown ARG UBUNTU_SNAPSHOT=20260825T000000Z -ADD --checksum=sha256:5b6326f1932cfd7be57130561dc78192f09ed9f58bfbe6606ed0c50510c3b6cd \ - https://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20260816ubuntu0.26.04.1_all.deb \ +ADD --checksum=sha256:a7e3bf769aec16ba21ca39cba180d6d311dafcbae68346a05f137c5cc26c9ca6 \ + https://security.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20260816ubuntu0.26.04.2_all.deb \ /tmp/ca-certificates.deb LABEL org.opencontainers.image.title="PastureStack Secret Volume Driver" \ org.opencontainers.image.description="Encrypted secret delivery to isolated in-memory Docker volumes" \ @@ -35,7 +35,13 @@ LABEL org.opencontainers.image.title="PastureStack Secret Volume Driver" \ COPY ubuntu-security-packages.lock /licenses/ubuntu-security-packages.lock COPY scripts/install-ubuntu-security-updates /usr/local/libexec/pasturestack/install-ubuntu-security-updates -ADD --checksum=sha256:5b6326f1932cfd7be57130561dc78192f09ed9f58bfbe6606ed0c50510c3b6cd https://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20260816ubuntu0.26.04.1_all.deb /opt/pasturestack-ca-certificates.deb +ADD --checksum=sha256:a7e3bf769aec16ba21ca39cba180d6d311dafcbae68346a05f137c5cc26c9ca6 https://security.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20260816ubuntu0.26.04.2_all.deb /opt/pasturestack-ca-certificates.deb +ADD --checksum=sha256:0de729b8fe0e1c67c04e8e8d5bd6e0420dbd47f75b93f0b71c8e740edc2d5ffc \ + https://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_3.2.1ubuntu0.1_amd64.deb \ + /tmp/apt.deb +ADD --checksum=sha256:94e5d41303265b66af0f8c70ade18bfb77260ad286edee6c8045faddef82b94c \ + https://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg7.0_3.2.1ubuntu0.1_amd64.deb \ + /tmp/libapt-pkg7.0.deb RUN set -eux; \ mkdir -p /tmp/ca-bootstrap /etc/ssl/certs; \ dpkg-deb --extract /tmp/ca-certificates.deb /tmp/ca-bootstrap; \ @@ -44,15 +50,23 @@ RUN set -eux; \ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; \ printf 'Types: deb\nURIs: https://snapshot.ubuntu.com/ubuntu/%s\nSuites: resolute resolute-updates resolute-backports resolute-security\nComponents: main universe restricted multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\nSnapshot: no\n' "${UBUNTU_SNAPSHOT}" > /etc/apt/sources.list.d/pasturestack-snapshot.sources; \ printf 'Acquire::Retries "5";\nAcquire::https::CaInfo "/etc/ssl/certs/ca-certificates.crt";\nAcquire::https::Verify-Peer "true";\nAcquire::https::Verify-Host "true";\nAcquire::AllowInsecureRepositories "false";\nAPT::Get::AllowUnauthenticated "false";\n' > /etc/apt/apt.conf.d/80pasturestack-snapshot; \ - apt-get update \ + dpkg -i /tmp/apt.deb /tmp/libapt-pkg7.0.deb; \ + for package in apt libapt-pkg7.0; do \ + test "$(dpkg-query -W -f='${Version}' "$package")" = '3.2.1ubuntu0.1'; \ + done; \ + rm -f /tmp/apt.deb /tmp/libapt-pkg7.0.deb; \ + apt-get update --error-on=any \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates \ && rm -f /usr/bin/pebble \ && dpkg -i /opt/pasturestack-ca-certificates.deb \ && update-ca-certificates --fresh \ - && test "$(dpkg-query -W -f='${Version}' ca-certificates)" = '20260816ubuntu0.26.04.1' \ + && test "$(dpkg-query -W -f='${Version}' ca-certificates)" = '20260816ubuntu0.26.04.2' \ && test ! -e /usr/share/ca-certificates/mozilla/emSign_ECC_Root_CA_-_G3.crt \ && rm -f /opt/pasturestack-ca-certificates.deb \ && sh /usr/local/libexec/pasturestack/install-ubuntu-security-updates /licenses/ubuntu-security-packages.lock /etc/ssl/certs/ca-certificates.crt \ + && printf '%s\n' libperl5.40=5.40.1-7ubuntu0.4 perl=5.40.1-7ubuntu0.4 perl-base=5.40.1-7ubuntu0.4 perl-modules-5.40=5.40.1-7ubuntu0.4 > /tmp/ubuntu-perl-security.lock \ + && UBUNTU_SECURITY_ARCHIVE=https://archive.ubuntu.com/ubuntu sh /usr/local/libexec/pasturestack/install-ubuntu-security-updates /tmp/ubuntu-perl-security.lock /etc/ssl/certs/ca-certificates.crt \ + && rm -f /tmp/ubuntu-perl-security.lock \ && rm -rf /var/lib/apt/lists/* COPY --from=build /out/secrets-flexvolume-plugin /usr/local/bin/secrets-flexvolume-plugin @@ -70,6 +84,33 @@ RUN --mount=type=bind,from=ubuntu_security_backports,source=/out,target=/opt/pas printf '%s\n' "$UBUNTU_SECURITY_BACKPORTS_IMAGE" > "$evidence/bundle-image.txt"; \ (cd "$evidence" && sha256sum manifest.json qualification.json source-inputs.lock.json openvex.json install.json verify.json bundle-image.txt > SHA256SUMS) +FROM scratch AS official_glibc +ADD --checksum=sha256:be83aefc14597fba683031a520f303950a7338b95d74decbe625faa51c49933e https://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.43-2ubuntu2.7_amd64.deb /tmp/official-glibc/libc6.deb +ADD --checksum=sha256:c0393ea4fa3c45cefe0351db369d3a4a459edc8045856f2e3612ca17e77b2797 https://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-bin_2.43-2ubuntu2.7_amd64.deb /tmp/official-glibc/libc-bin.deb +ADD --checksum=sha256:408ba056d39651c2489b59522a614276d7a96020c6a401e73cd0da7d771764b0 https://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-gconv-modules-extra_2.43-2ubuntu2.7_amd64.deb /tmp/official-glibc/libc-gconv-modules-extra.deb +FROM qualified_backports AS runtime +RUN --mount=from=official_glibc,source=/tmp/official-glibc,target=/tmp/official-glibc,ro \ + set -eux; \ + for package in libc6 libc-bin libc-gconv-modules-extra; do \ + archive="/tmp/official-glibc/$package.deb"; \ + test "$(dpkg-deb -f "$archive" Package)" = "$package"; \ + test "$(dpkg-deb -f "$archive" Source)" = glibc; \ + test "$(dpkg-deb -f "$archive" Architecture)" = amd64; \ + test "$(dpkg-deb -f "$archive" Version)" = 2.43-2ubuntu2.7; \ + dpkg --compare-versions "$(dpkg-query -W -f='${Version}' "$package")" lt 2.43-2ubuntu2.7; \ + done; \ + dpkg --path-include='/usr/share/doc/libc6/*' --path-include='/usr/share/man/man1/getconf.1.gz' \ + --path-include='/usr/share/man/man1/tzselect.1.gz' --install /tmp/official-glibc/*.deb; \ + audit="$(dpkg --audit)"; \ + test -z "$audit"; \ + for package in libc6 libc-bin libc-gconv-modules-extra; do \ + integrity="$(dpkg --verify "$package")"; \ + test -z "$integrity"; \ + done; \ + getent hosts localhost >/dev/null; \ + rm -f /var/cache/ldconfig/aux-cache /var/log/dpkg.log; \ + dpkg-query -W -f='${binary:Package}\t${Version}\n' | LC_ALL=C sort > /usr/share/pasturestack/ubuntu-security-packages.tsv + USER 0:0 ENTRYPOINT ["/usr/local/bin/secrets-flexvolume-plugin"] CMD ["serve"] diff --git a/scripts/install-ubuntu-security-updates b/scripts/install-ubuntu-security-updates index 054c893..ab9423d 100644 --- a/scripts/install-ubuntu-security-updates +++ b/scripts/install-ubuntu-security-updates @@ -4,6 +4,11 @@ set -eu test "$#" -eq 2 || { echo 'usage: security-updates LOCK TRUSTED_CA_BUNDLE' >&2; exit 2; } lock=$1 trusted_ca=$2 +archive=${UBUNTU_SECURITY_ARCHIVE:-https://snapshot.ubuntu.com/ubuntu/20261023T000000Z} +case "$archive" in + https://snapshot.ubuntu.com/ubuntu/20261023T000000Z|https://archive.ubuntu.com/ubuntu) ;; + *) echo "Unsupported Ubuntu security archive" >&2; exit 2 ;; +esac . /etc/os-release test "$ID:$VERSION_ID" = ubuntu:26.04 test -s "$lock" @@ -26,7 +31,7 @@ while IFS= read -r entry || test -n "$entry"; do set -- "$@" "$entry" done < "$lock" if test "$#" -gt 0; then - printf 'Types: deb\nURIs: https://snapshot.ubuntu.com/ubuntu/20261023T000000Z\nSuites: resolute-updates resolute-security\nComponents: main\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\nSnapshot: no\n' > "$tmp/security.sources" + printf 'Types: deb\nURIs: %s\nSuites: resolute-updates resolute-security\nComponents: main\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\nSnapshot: no\n' "$archive" > "$tmp/security.sources" apt_security() { apt-get -o Dir::Etc::sourcelist="$tmp/security.sources" \ -o Dir::Etc::sourceparts=- -o Acquire::https::CaInfo="$trusted_ca" \ @@ -34,7 +39,7 @@ if test "$#" -gt 0; then -o Acquire::AllowInsecureRepositories=false -o APT::Get::AllowUnauthenticated=false \ -o Acquire::Retries=5 "$@" } - apt_security update + apt_security update --error-on=any DEBIAN_FRONTEND=noninteractive apt_security install -y --only-upgrade --no-install-recommends --no-remove "$@" fi while IFS= read -r entry || test -n "$entry"; do