diff --git a/server/Dockerfile.web-compose-release b/server/Dockerfile.web-compose-release index 7f40cc4597..a481247b6e 100644 --- a/server/Dockerfile.web-compose-release +++ b/server/Dockerfile.web-compose-release @@ -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; \ diff --git a/server/build-api-explorer-patch-image.sh b/server/build-api-explorer-patch-image.sh index 67ba1ad5d0..0c5070ef5c 100755 --- a/server/build-api-explorer-patch-image.sh +++ b/server/build-api-explorer-patch-image.sh @@ -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}" diff --git a/server/security/test_scan_coverage.py b/server/security/test_scan_coverage.py index 77450092fd..670e543b36 100644 --- a/server/security/test_scan_coverage.py +++ b/server/security/test_scan_coverage.py @@ -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)