Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/verify-current-component-inputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/check-server-api-explorer-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;' \
Expand Down
6 changes: 4 additions & 2 deletions scripts/test-current-server-packaging-contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
Expand Down Expand Up @@ -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" ]]',
Expand Down
2 changes: 1 addition & 1 deletion server/Dockerfile.web-compose-release
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
4 changes: 3 additions & 1 deletion server/artifacts/verify-runtime-producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down