Skip to content

release: restrict uploaded assets - #2857

Merged
alixander merged 2 commits into
masterfrom
agent/release-final-audit
Aug 25, 2026
Merged

alixander merged 2 commits into
masterfrom
agent/release-final-audit

Conversation

@alixander

Copy link
Copy Markdown
Collaborator

Summary

  • update golang.org/x/image to v0.45.0 (and its required x/text v0.41.0), clearing GO-2026-6222
  • require the production staging directory to contain exactly the six named D2 archives plus SHA256SUMS
  • reject unexpected files, file/directory symlinks, missing assets, and the inherited --skip-build escape hatch before upload
  • cover the allowlist and failure cases with shell-level integration tests

Rationale

The current v0.8.2 draft assets were audited clean and match the immutable Actions artifact byte-for-byte. However, the shared uploader passes every top-level regular file in the local staging directory to gh release upload, while the D2 download path previously replaced only expected filenames. A stale local file could therefore survive into a future upload. This change makes that path fail closed.

The existing D2 source call graph does not reach the VP8L decoder affected by GO-2026-6222, but upgrading to the fixed x/image version removes the module-level exposure and prevents future code from making it reachable.

Validation

  • ./make.sh fmt gen lint build test
  • ./make.sh race
  • pinned Bun 1.3.14 D2.js/WASM build: 39 unit tests and 2 integration tests pass
  • govulncheck ./...: no vulnerabilities
  • govulncheck -mode=binary on a fresh stripped release binary: no vulnerabilities
  • fresh linux/amd64 release archive passed binary/archive verification and size budgets
  • the current v0.8.2 Actions artifact and local staging directory both pass the new exact allowlist

@alixander
alixander merged commit 69c8fe0 into master Aug 25, 2026
17 checks passed
@alixander
alixander deleted the agent/release-final-audit branch August 25, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant