diff --git a/.github/workflows/verify-current-component-inputs.yml b/.github/workflows/verify-current-component-inputs.yml index 251c37ad4d..1fd6fcc310 100644 --- a/.github/workflows/verify-current-component-inputs.yml +++ b/.github/workflows/verify-current-component-inputs.yml @@ -36,3 +36,11 @@ jobs: python server/security/test_scan_coverage.py python scripts/test-render-server-release-notes.py bash scripts/check-server-source-gates.sh + - name: Verify original published component archives + shell: bash + run: | + set -euo pipefail + docker build --target release_artifacts \ + --build-arg SOURCE_DATE_EPOCH="$(git show -s --format=%ct HEAD)" \ + --tag "local/pasturestack/verified-components:${{ github.sha }}" \ + --file server/Dockerfile.web-compose-release server diff --git a/scripts/check-server-api-explorer-patch.sh b/scripts/check-server-api-explorer-patch.sh index 26c0d7ccae..5e61a76358 100755 --- a/scripts/check-server-api-explorer-patch.sh +++ b/scripts/check-server-api-explorer-patch.sh @@ -790,7 +790,7 @@ for incremental_producer_runtime_marker in \ '/usr/bin/host-provisioner.real -v | grep -F "${HOST_PROVISIONER_VERSION}" >/dev/null;' \ 'test -s /usr/share/licenses/pasturestack/host-provisioner/LICENSE;' \ 'test -s /usr/share/licenses/pasturestack/host-provisioner/ORIGIN.md;' \ - 'test "$(find /usr/share/licenses/pasturestack/host-provisioner/licenses -type f | wc -l)" -eq 35;' \ + 'test "$(find /usr/share/licenses/pasturestack/host-provisioner/licenses -type f | wc -l)" -eq 36;' \ 'echo "${SECRET_DELIVERY_API_BINARY_SHA256} /usr/bin/secret-delivery-api" | sha256sum -c -;' \ '/usr/bin/secret-delivery-api --version | grep -F "v${SECRET_DELIVERY_API_VERSION}" >/dev/null;' \ 'test "$(readlink -f /usr/bin/secrets-api)" = /usr/bin/secret-delivery-api;' \ diff --git a/scripts/test-current-server-packaging-contract.py b/scripts/test-current-server-packaging-contract.py index 6587771e5d..c852ea9d34 100644 --- a/scripts/test-current-server-packaging-contract.py +++ b/scripts/test-current-server-packaging-contract.py @@ -200,7 +200,7 @@ "/usr/bin/host-provisioner.real -v | grep -F \"${HOST_PROVISIONER_VERSION}\" >/dev/null;", "test -s /usr/share/licenses/pasturestack/host-provisioner/LICENSE;", "test -s /usr/share/licenses/pasturestack/host-provisioner/ORIGIN.md;", - "test \"$(find /usr/share/licenses/pasturestack/host-provisioner/licenses -type f | wc -l)\" -eq 35;", + "test \"$(find /usr/share/licenses/pasturestack/host-provisioner/licenses -type f | wc -l)\" -eq 36;", "echo \"${SECRET_DELIVERY_API_BINARY_SHA256} /usr/bin/secret-delivery-api\" | sha256sum -c -;", "/usr/bin/secret-delivery-api --version | grep -F \"v${SECRET_DELIVERY_API_VERSION}\" >/dev/null;", "test \"$(readlink -f /usr/bin/secrets-api)\" = /usr/bin/secret-delivery-api;", @@ -1178,7 +1178,9 @@ def test_producer_helper_keeps_original_package_metadata_and_legal_boundaries(se 'tar --no-same-owner --no-same-permissions --strip-components=1 -xJf "$archive"', '[[ "$output" == "/out/$type" && ! -e "$output" ]]', 'grep -Fx "Release source commit: $commit"', - 'test "$(find "$output/licenses" -type f | wc -l)" -eq 35', + 'test "$(find "$output/licenses" -type f | wc -l)" -eq 36', + 'test -s "$output/licenses/golang.org/x/net/LICENSE"', + 'test -s "$output/licenses/golang.org/x/crypto/LICENSE"', '"$type-PRIVACY.md"', 'SERVER-PRODUCER-SOURCES.txt', 'if [[ "${entry##*/}" != "$type" ]]', diff --git a/server/Dockerfile.web-compose-release b/server/Dockerfile.web-compose-release index 53aa324f0e..fad100d935 100644 --- a/server/Dockerfile.web-compose-release +++ b/server/Dockerfile.web-compose-release @@ -1389,7 +1389,7 @@ RUN set -eux; \ /usr/bin/host-provisioner.real -v | grep -F "${HOST_PROVISIONER_VERSION}" >/dev/null; \ test -s /usr/share/licenses/pasturestack/host-provisioner/LICENSE; \ test -s /usr/share/licenses/pasturestack/host-provisioner/ORIGIN.md; \ - test "$(find /usr/share/licenses/pasturestack/host-provisioner/licenses -type f | wc -l)" -eq 35; \ + test "$(find /usr/share/licenses/pasturestack/host-provisioner/licenses -type f | wc -l)" -eq 36; \ echo "${SECRET_DELIVERY_API_BINARY_SHA256} /usr/bin/secret-delivery-api" | sha256sum -c -; \ /usr/bin/secret-delivery-api --version | grep -F "v${SECRET_DELIVERY_API_VERSION}" >/dev/null; \ ln -sfn secret-delivery-api /usr/bin/secrets-api; \ diff --git a/server/artifacts/verify-runtime-producer.sh b/server/artifacts/verify-runtime-producer.sh index d8dd42ad27..50a0548f18 100644 --- a/server/artifacts/verify-runtime-producer.sh +++ b/server/artifacts/verify-runtime-producer.sh @@ -31,7 +31,9 @@ case "$type" in mkdir -p "$output" tar --no-same-owner --no-same-permissions --strip-components=1 -xJf "$archive" -C "$output" test -s "$output/LICENSE" && test -s "$output/ORIGIN.md" - test "$(find "$output/licenses" -type f | wc -l)" -eq 35 + test "$(find "$output/licenses" -type f | wc -l)" -eq 36 + test -s "$output/licenses/golang.org/x/net/LICENSE" + test -s "$output/licenses/golang.org/x/crypto/LICENSE" version_flag=-v ;; secret-delivery-api|usage-telemetry-agent)