GeezerVison is showing github.com — Bind fixed crypto policy to native consumer and runtime checks (#575) · PastureStack/server@8c4c264
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: server/Dockerfile.web-compose-release +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -520,6 +520,10 @@ RUN set -eux; \ |
520 | 520 | install -m 0755 /out/usage-telemetry-agent/usage-telemetry-agent /out/runtime-bin/usage-telemetry-agent; \ |
521 | 521 | install -m 0755 /out/machine-driver-bundle/docker-machine /out/runtime-bin/docker-machine; \ |
522 | 522 | install -m 0755 /out/machine-driver-bundle/docker-machine-driver-packet /out/runtime-bin/docker-machine-driver-packet; \ |
| 523 | + for ssh_binary in /out/runtime-bin/host-provisioner.real /out/runtime-bin/compose-executor.real; do \ |
| 524 | + metadata="$(go version -m "${ssh_binary}")"; \ |
| 525 | + printf '%s\n' "${metadata}" | grep -F "$(printf 'dep\tgolang.org/x/crypto\tv0.59.0\t')" >/dev/null; \ |
| 526 | + done; \ |
523 | 527 | cp -a /out/machine-driver-bundle/licenses /out/runtime-licenses/machine-driver-bundle; \ |
524 | 528 | cp -a /out/catalog-service-licenses /out/runtime-licenses/catalog-service; \ |
525 | 529 | cp -a /out/host-provisioner-licenses /out/runtime-licenses/host-provisioner; \ |
|
Collapse file
Copy file name to clipboardExpand all lines: server/build-api-explorer-patch-image.sh +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
928 | 928 | test "$(/usr/bin/compose-executor.real --version)" = \ |
929 | 929 | "pasturestack-compose version ${PASTURESTACK_COMPOSE_EXECUTOR_VERSION}" |
930 | 930 | for ssh_binary in /usr/bin/host-provisioner.real /usr/bin/compose-executor.real; do |
931 | | - grep -aF "$(printf "dep\tgolang.org/x/crypto\tv0.56.0\t")" "${ssh_binary}" >/dev/null |
| 931 | + grep -aF "$(printf "dep\tgolang.org/x/crypto\tv0.59.0\t")" "${ssh_binary}" >/dev/null |
932 | 932 | done |
933 | 933 | test "$(/usr/bin/catalog-service.real --version)" = "v${PASTURESTACK_CATALOG_SERVICE_VERSION}" |
934 | 934 | test "$(/usr/bin/catalog-service-sqlite --version)" = "v${PASTURESTACK_CATALOG_SERVICE_VERSION}" |
|
Collapse file
Copy file name to clipboardExpand all lines: server/security/test_scan_coverage.py +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -140,6 +140,15 @@ def test_upstream_fixed_consumers_retire_only_exact_legacy_exceptions(self): |
140 | 140 | self.assertEqual(review['newVexExceptionsAdded'], 0) |
141 | 141 | self.assertTrue(review['splitOpenpgpModuleStillUnsafe']) |
142 | 142 | recipe = (root.parent / 'Dockerfile.web-compose-release').read_text(encoding='utf-8') |
| 143 | + build = (root.parent / 'build-api-explorer-patch-image.sh').read_text(encoding='utf-8') |
| 144 | + # The fixed-module decision must reach both native producer adoption |
| 145 | + # and the assembled runtime readback, not only the VEX/recipe pins. |
| 146 | + self.assertIn('for ssh_binary in /out/runtime-bin/host-provisioner.real /out/runtime-bin/compose-executor.real;', recipe) |
| 147 | + self.assertIn("dep\\tgolang.org/x/crypto\\tv0.59.0\\t", recipe) |
| 148 | + self.assertIn('for ssh_binary in /usr/bin/host-provisioner.real /usr/bin/compose-executor.real;', build) |
| 149 | + self.assertRegex(build, r'(?m)^ grep -aF .*dep\\tgolang.org/x/crypto\\tv0\.59\.0\\t.* "\$\{ssh_binary\}" >/dev/null$') |
| 150 | + self.assertNotIn('golang.org/x/crypto\\tv0.56.0', recipe) |
| 151 | + self.assertNotIn('golang.org/x/crypto\\tv0.56.0', build) |
143 | 152 | self.assertEqual(set(review['subjects']), {'usr/bin/compose-executor.real', 'usr/bin/host-provisioner.real'}) |
144 | 153 | for target, subject in review['subjects'].items(): |
145 | 154 | self.assertNotIn(target, OPENPGP_VEX_BINARY_SHA256) |
|