GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Retire obsolete OpenPGP exceptions after official module fixes (#570) · PastureStack/server@1f43d71

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • verify-current-component-inputs.yml
  • server/security
    • check_scan_coverage.py
    • openvex.json
    • reviews
      • GO-2026-5932.json
      • crypto-0.59.0-upstream-fix.json
    • test_scan_coverage.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/verify-current-component-inputs.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/verify-current-component-inputs.yml
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- 'server/build-api-explorer-patch-image.sh'
99
- 'server/catalog-sources/**'
1010
- 'server/artifacts/compose/**'
11+
- 'server/security/check_scan_coverage.py'
12+
- 'server/security/test_scan_coverage.py'
13+
- 'server/security/reviews/**'
14+
- 'server/security/openvex.json'
15+
- 'server/security/vendor-pending.json'
1116
- 'scripts/check-server-api-explorer-patch.sh'
1217
- 'scripts/check-server-runtime-image-references.sh'
1318
- 'scripts/package-catalog-source.py'
@@ -39,6 +44,7 @@ jobs:
3944
shell: bash
4045
run: |
4146
set -euo pipefail
47+
python server/security/test_scan_coverage.py
4248
bash scripts/check-server-api-explorer-patch.sh
4349
bash scripts/check-server-runtime-image-references.sh
4450
python scripts/test-server-component-native-api.py
Collapse file

‎server/security/check_scan_coverage.py‎

Copy file name to clipboardExpand all lines: server/security/check_scan_coverage.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@
2020
OPENPGP_VEX_SCOPE = frozenset({
2121
('usr/bin/docker-machine', 'pkg:golang/golang.org/x/[email protected]'),
2222
('usr/bin/docker-machine-driver-packet', 'pkg:golang/golang.org/x/[email protected]'),
23-
('usr/bin/compose-executor.real', 'pkg:golang/golang.org/x/[email protected]'),
24-
('usr/bin/host-provisioner.real', 'pkg:golang/golang.org/x/[email protected]'),
2523
})
2624
OPENPGP_VEX_BINARY_SHA256 = {
2725
'usr/bin/docker-machine': '3d78d962b6aa7f4d5bc1b63a9db703710eed4084bd354b233d62528f49d41116',
2826
'usr/bin/docker-machine-driver-packet': '0f1bf952c603f05c18970ea46be3fc2481544d0f78015aa98339dee1bbbe8764',
29-
'usr/bin/compose-executor.real': 'a22985547fea122edd12606728d3bc5f98d9457ae5724d65a21ef3c36d62cab5',
30-
'usr/bin/host-provisioner.real': '2ebf8c3ebe90b3cfe8196c34e00f5099f6f3d058f4a1104eb09e230ee71d95ab',
3127
}
3228

3329

Collapse file

‎server/security/openvex.json‎

Copy file name to clipboardExpand all lines: server/security/openvex.json
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,16 +352,13 @@
352352
"name": "GO-2026-5932"
353353
},
354354
"products": [
355-
{
356-
"@id": "pkg:golang/golang.org/x/[email protected]"
357-
},
358355
{
359356
"@id": "pkg:golang/golang.org/x/[email protected]"
360357
}
361358
],
362359
"status": "not_affected",
363360
"justification": "vulnerable_code_not_present",
364-
"impact_statement": "GO-2026-5932 applies to the unmaintained golang.org/x/crypto/openpgp packages. The exact Linux Go 1.27.4 executables from machine-driver-bundle 0.16.8, host-provisioner 0.39.12, and compose-executor 0.14.46 have no OpenPGP entries in their complete function and inline-name tables. Both Machine bundle executables have linked and inline-only x/crypto/chacha20 positive controls. The release gate binds each path and module version to its reviewed binary SHA-256. The Compose record also verifies its vendor dependency graph and bcrypt/scrypt positive controls."
361+
"impact_statement": "GO-2026-5932 applies to the unmaintained OpenPGP packages. Only the two unchanged, exact machine-driver bundle executables remain qualified by source and full function/inline-name evidence, including chacha20 positive controls and binary SHA256 binding. Compose 0.14.47 and Host Provisioner 0.39.13 use the upstream-fixed parent module v0.59.0 and are removed from this exception; the separately split OpenPGP module remains unsafe and is not allowed."
365362
},
366363
{
367364
"vulnerability": {
Collapse file

‎server/security/reviews/GO-2026-5932.json‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"schema_version":"1.3.1","id":"GO-2026-5932","modified":"2026-11-02T22:01:43Z","published":"2026-07-07T22:15:29Z","summary":"The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues","details":"The golang.org/x/crypto/openpgp package is unsafe by design, has numerous known security issues, is not maintained, and should not be used.\n\nIf you are required to interoperate with OpenPGP systems and need a maintained package, consider github.com/ProtonMail/go-crypto/openpgp which is a maintained fork that aims to be a drop-in replacement for this package.","affected":[{"package":{"name":"golang.org/x/crypto","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.58.1-0.20261009181718-2f1f834330b2"}]}],"ecosystem_specific":{"imports":[{"path":"golang.org/x/crypto/openpgp"},{"path":"golang.org/x/crypto/openpgp/packet"},{"path":"golang.org/x/crypto/openpgp/armor"},{"path":"golang.org/x/crypto/openpgp/clearsign"},{"path":"golang.org/x/crypto/openpgp/errors"},{"path":"golang.org/x/crypto/openpgp/elgamal"},{"path":"golang.org/x/crypto/openpgp/s2k"}]}},{"package":{"name":"golang.org/x/crypto/openpgp","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"ecosystem_specific":{"imports":[{"path":"golang.org/x/crypto/openpgp"},{"path":"golang.org/x/crypto/openpgp/packet"},{"path":"golang.org/x/crypto/openpgp/armor"},{"path":"golang.org/x/crypto/openpgp/clearsign"},{"path":"golang.org/x/crypto/openpgp/errors"},{"path":"golang.org/x/crypto/openpgp/elgamal"},{"path":"golang.org/x/crypto/openpgp/s2k"}]}}],"references":[{"type":"REPORT","url":"https://go.dev/issue/44226"},{"type":"WEB","url":"https://go.dev/issue/81227"}],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2026-5932","review_status":"REVIEWED"}}
Collapse file

‎server/security/reviews/crypto-0.59.0-upstream-fix.json‎

Copy file name to clipboard
+49Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"format": "pasturestack-upstream-module-fix-v1",
3+
"advisory": "GO-2026-5932",
4+
"officialEvidence": "https://vuln.go.dev/ID/GO-2026-5932.json",
5+
"officialEvidenceSha256": "bde8769150ec1368d9a8dbd61fbbde52296de692c57147e02e3ae295e1981f11",
6+
"parentModuleFixedFrom": "0.58.1-0.20261009181718-2f1f834330b2",
7+
"splitOpenpgpModuleStillUnsafe": true,
8+
"newVexExceptionsAdded": 0,
9+
"subjects": {
10+
"usr/bin/compose-executor.real": {
11+
"prefix": "COMPOSE_EXECUTOR",
12+
"release": "0.14.47",
13+
"source": "e67eacd34020110a8b1ab635e24d17e34bcc47ca",
14+
"binarySha256": "41708b1171a00aa34bcde62dc5df6a0dd34b44d3807e76c52991cdd13bb4f140",
15+
"archiveSha256": "874af05829bb6cc90bb429360bcb09d06d4c27cb6f3dc5d111e9fead45eae797",
16+
"nativeRun": 46180626808,
17+
"module": "pkg:golang/golang.org/x/[email protected]",
18+
"splitOpenpgpModuleAbsent": true,
19+
"rawProductFindings": 0,
20+
"sbom": {
21+
"url": "https://github.com/PastureStack/compose-cli/releases/download/v0.14.47/product.cdx.json",
22+
"sha256": "56e8ec76dec83a48267eb8d12720521785c016c677e6d51de23f5efc738aef6f"
23+
},
24+
"rawScan": {
25+
"url": "https://github.com/PastureStack/compose-cli/releases/download/v0.14.47/product-security.json",
26+
"sha256": "26dcc8aed19676915644e738920e21a413eeb574d4438a441d530505c9df818c"
27+
}
28+
},
29+
"usr/bin/host-provisioner.real": {
30+
"prefix": "HOST_PROVISIONER",
31+
"release": "0.39.13",
32+
"source": "90ff25ab0b9b258f190ecc83726a12cfb60cbd18",
33+
"binarySha256": "08781731cedc2b3a33cebf1a1f551e8b31f1dc57be386d90de6837b59b0fc972",
34+
"archiveSha256": "3714d045f0a3e4b9d6f3f8143d47802bd01799bd43b786cdc97adde10d45dd4b",
35+
"nativeRun": 46174090022,
36+
"module": "pkg:golang/golang.org/x/[email protected]",
37+
"splitOpenpgpModuleAbsent": true,
38+
"rawProductFindings": 0,
39+
"sbom": {
40+
"url": "https://github.com/PastureStack/host-provisioner/releases/download/v0.39.13/product-sbom.cdx.json",
41+
"sha256": "2e0b27766e7ef5b2508503080f6b1fa65eec40f6e8c18bcfc52f2476ad463432"
42+
},
43+
"rawScan": {
44+
"url": "https://github.com/PastureStack/host-provisioner/releases/download/v0.39.13/product-security-raw.json",
45+
"sha256": "8532f2ca5f62ff1ebaefbb29d4e023d131401bc797df8f0a8b2d377741bad36a"
46+
}
47+
}
48+
}
49+
}
Collapse file

‎server/security/test_scan_coverage.py‎

Copy file name to clipboardExpand all lines: server/security/test_scan_coverage.py
+38-29Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def test_reviewed_openpgp_hashes_match_the_actual_producer_pins(self):
111111
pins = {
112112
'usr/bin/docker-machine': 'MACHINE_DRIVER_BINARY_SHA256',
113113
'usr/bin/docker-machine-driver-packet': 'PACKET_DRIVER_BINARY_SHA256',
114-
'usr/bin/compose-executor.real': 'COMPOSE_EXECUTOR_BINARY_SHA256',
115-
'usr/bin/host-provisioner.real': 'HOST_PROVISIONER_BINARY_SHA256',
116114
}
117115
self.assertEqual(set(OPENPGP_VEX_BINARY_SHA256), set(pins))
118116
for target, name in pins.items():
@@ -128,33 +126,44 @@ def test_clean_null_vulnerabilities_need_no_exception(self):
128126
with tempfile.TemporaryDirectory() as folder:
129127
self.assertEqual(validate_vex_payloads(report, Path(folder)), 0)
130128

131-
def test_compose_openpgp_review_binds_exact_new_payload_and_positive_controls(self):
132-
recipe = (Path(__file__).resolve().parents[1] / 'Dockerfile.web-compose-release').read_text(encoding='utf-8')
133-
versions = set(re.findall(r'^ARG COMPOSE_EXECUTOR_VERSION=(0\.14\.[0-9]+)$', recipe, re.M))
134-
self.assertEqual(len(versions), 1)
135-
version = versions.pop()
136-
review = json.loads((Path(__file__).parent / ('reviews/compose-' + version + '-openpgp.json')).read_bytes())
137-
scope, artifact = review['scope'], review['artifact']
138-
self.assertIn((scope['executable'], scope['module']), OPENPGP_VEX_SCOPE)
139-
self.assertEqual(scope['advisory'], 'GO-2026-5932')
140-
self.assertEqual(scope['decision'], 'not_affected')
141-
self.assertEqual(scope['justification'], 'vulnerable_code_not_present')
142-
self.assertFalse(scope['moduleDeclaredFixed'])
143-
self.assertFalse(scope['newConsumerOrScopeAllowed'])
144-
self.assertEqual(OPENPGP_VEX_BINARY_SHA256[scope['executable']], artifact['binarySha256'])
145-
self.assertEqual(artifact['releaseVersion'], version)
146-
self.assertEqual(artifact['compiler'], 'go1.27.4')
147-
self.assertTrue(artifact['releaseGzipAndOfficialTestedProductBytesIdentical'])
148-
graph, symbols = review['sourceGraph'], review['symbolEvidence']
149-
self.assertTrue(graph['officialGo127SourceGatePassed'])
150-
self.assertFalse(graph['dependencyAndVendorGraphChangedFrom01440'])
151-
self.assertEqual(graph['openpgp'], 0)
152-
self.assertEqual(symbols['openpgpEmitted'], 0)
153-
self.assertEqual(symbols['openpgpFunctionInlineNames'], 0)
154-
for prefix in ('bcrypt', 'scrypt'):
155-
self.assertGreater(graph[prefix], 0)
156-
self.assertGreater(symbols[prefix + 'Emitted'], 0)
157-
self.assertGreater(symbols[prefix + 'FunctionInlineNames'], 0)
129+
def test_upstream_fixed_consumers_retire_only_exact_legacy_exceptions(self):
130+
root = Path(__file__).parent
131+
review = json.loads((root / 'reviews/crypto-0.59.0-upstream-fix.json').read_bytes())
132+
advisory_bytes = (root / 'reviews/GO-2026-5932.json').read_bytes()
133+
self.assertEqual(hashlib.sha256(advisory_bytes).hexdigest(), review['officialEvidenceSha256'])
134+
advisory = json.loads(advisory_bytes)
135+
self.assertEqual(advisory['id'], review['advisory'])
136+
parent = next(item for item in advisory['affected'] if item['package']['name'] == 'golang.org/x/crypto')
137+
self.assertEqual([event['fixed'] for entry in parent['ranges'] for event in entry['events'] if 'fixed' in event],
138+
[review['parentModuleFixedFrom']])
139+
self.assertEqual(review['parentModuleFixedFrom'], '0.58.1-0.20261009181718-2f1f834330b2')
140+
self.assertEqual(review['newVexExceptionsAdded'], 0)
141+
self.assertTrue(review['splitOpenpgpModuleStillUnsafe'])
142+
recipe = (root.parent / 'Dockerfile.web-compose-release').read_text(encoding='utf-8')
143+
self.assertEqual(set(review['subjects']), {'usr/bin/compose-executor.real', 'usr/bin/host-provisioner.real'})
144+
for target, subject in review['subjects'].items():
145+
self.assertNotIn(target, OPENPGP_VEX_BINARY_SHA256)
146+
self.assertFalse(any(path == target for path, _ in OPENPGP_VEX_SCOPE))
147+
for suffix, field in [('VERSION', 'release'), ('COMMIT', 'source'),
148+
('BINARY_SHA256', 'binarySha256'), ('ARCHIVE_SHA256', 'archiveSha256')]:
149+
values = set(re.findall(r'^ARG ' + subject['prefix'] + '_' + suffix + r'=(.+)$', recipe, re.M))
150+
self.assertEqual(values, {subject[field]})
151+
self.assertEqual(subject['module'], 'pkg:golang/golang.org/x/[email protected]')
152+
self.assertTrue(subject['splitOpenpgpModuleAbsent'])
153+
self.assertEqual(subject['rawProductFindings'], 0)
154+
for evidence in ('sbom', 'rawScan'):
155+
self.assertTrue(subject[evidence]['url'].startswith('https://github.com/PastureStack/'))
156+
self.assertRegex(subject[evidence]['sha256'], r'^[0-9a-f]{64}$')
157+
# A regressed old module, or a newly reported issue in the updated
158+
# executable, must block instead of inheriting the former exception.
159+
for module in ('v0.56.0', 'v0.59.0'):
160+
report = self.fixture(ROOT_BINARIES)
161+
report['Results'].append({'Target': target, 'Type': 'gobinary',
162+
'Packages': [{'Name': 'golang.org/x/crypto', 'Version': module}],
163+
'Vulnerabilities': [{'VulnerabilityID': 'GO-2026-5932',
164+
'PkgIdentifier': {'PURL': 'pkg:golang/golang.org/x/crypto@' + module}}]})
165+
with self.assertRaises(ValueError):
166+
validate_coverage(report, ROOT_BINARIES)
158167

159168

160169
if __name__ == '__main__':

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.