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
4 changes: 4 additions & 0 deletions server/Dockerfile.web-compose-release
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,10 @@ RUN set -eux; \
install -m 0755 /out/usage-telemetry-agent/usage-telemetry-agent /out/runtime-bin/usage-telemetry-agent; \
install -m 0755 /out/machine-driver-bundle/docker-machine /out/runtime-bin/docker-machine; \
install -m 0755 /out/machine-driver-bundle/docker-machine-driver-packet /out/runtime-bin/docker-machine-driver-packet; \
for ssh_binary in /out/runtime-bin/host-provisioner.real /out/runtime-bin/compose-executor.real; do \
metadata="$(go version -m "${ssh_binary}")"; \
printf '%s\n' "${metadata}" | grep -F "$(printf 'dep\tgolang.org/x/crypto\tv0.59.0\t')" >/dev/null; \
done; \
cp -a /out/machine-driver-bundle/licenses /out/runtime-licenses/machine-driver-bundle; \
cp -a /out/catalog-service-licenses /out/runtime-licenses/catalog-service; \
cp -a /out/host-provisioner-licenses /out/runtime-licenses/host-provisioner; \
Expand Down
2 changes: 1 addition & 1 deletion server/build-api-explorer-patch-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ EOF
test "$(/usr/bin/compose-executor.real --version)" = \
"pasturestack-compose version ${PASTURESTACK_COMPOSE_EXECUTOR_VERSION}"
for ssh_binary in /usr/bin/host-provisioner.real /usr/bin/compose-executor.real; do
grep -aF "$(printf "dep\tgolang.org/x/crypto\tv0.56.0\t")" "${ssh_binary}" >/dev/null
grep -aF "$(printf "dep\tgolang.org/x/crypto\tv0.59.0\t")" "${ssh_binary}" >/dev/null
done
test "$(/usr/bin/catalog-service.real --version)" = "v${PASTURESTACK_CATALOG_SERVICE_VERSION}"
test "$(/usr/bin/catalog-service-sqlite --version)" = "v${PASTURESTACK_CATALOG_SERVICE_VERSION}"
Expand Down
9 changes: 9 additions & 0 deletions server/security/test_scan_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ def test_upstream_fixed_consumers_retire_only_exact_legacy_exceptions(self):
self.assertEqual(review['newVexExceptionsAdded'], 0)
self.assertTrue(review['splitOpenpgpModuleStillUnsafe'])
recipe = (root.parent / 'Dockerfile.web-compose-release').read_text(encoding='utf-8')
build = (root.parent / 'build-api-explorer-patch-image.sh').read_text(encoding='utf-8')
# The fixed-module decision must reach both native producer adoption
# and the assembled runtime readback, not only the VEX/recipe pins.
self.assertIn('for ssh_binary in /out/runtime-bin/host-provisioner.real /out/runtime-bin/compose-executor.real;', recipe)
self.assertIn("dep\\tgolang.org/x/crypto\\tv0.59.0\\t", recipe)
self.assertIn('for ssh_binary in /usr/bin/host-provisioner.real /usr/bin/compose-executor.real;', build)
self.assertRegex(build, r'(?m)^ grep -aF .*dep\\tgolang.org/x/crypto\\tv0\.59\.0\\t.* "\$\{ssh_binary\}" >/dev/null$')
self.assertNotIn('golang.org/x/crypto\\tv0.56.0', recipe)
self.assertNotIn('golang.org/x/crypto\\tv0.56.0', build)
self.assertEqual(set(review['subjects']), {'usr/bin/compose-executor.real', 'usr/bin/host-provisioner.real'})
for target, subject in review['subjects'].items():
self.assertNotIn(target, OPENPGP_VEX_BINARY_SHA256)
Expand Down