Skip to content

fix(microvm): accept harmless release archive root entries - #2189

Merged
JAORMX merged 2 commits into
mainfrom
fix/microvm-release-root-entry-20261008
Oct 8, 2026
Merged

JAORMX merged 2 commits into
mainfrom
fix/microvm-release-root-entry-20261008

Conversation

@JAORMX

@JAORMX JAORMX commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix the first-use MicroVM bootstrap failure reproduced with the signed v0.0.47 Darwin bundle: unsafe release bundle path "./".

  • Omit the synthetic root entry from future outer bootstrap bundles while retaining hidden files, deterministic ordering/metadata, and archive self-exclusion.
  • Accept existing signed bundles by ignoring only zero-byte directory entries named literally . or ./. Do not create the destination or apply root metadata; these entries still count toward the archive limit.
  • Keep traversal, absolute paths, noncanonical root aliases, root files/links, forbidden types, and invalid file modes rejected. Checksum and signature verification are unchanged.

Validation

  • The dedicated release_bundle_test.go file was removed at the maintainer's request; the PR now changes only packaging and the narrow extractor compatibility check.
  • Full CI, MicroVM E2E, performance and Deslop checks passed at 28f95865080cf211b9d2dd5c375b31a33752eb7e after the test removal. Live-provider checks were expected skips.
  • Actual Apple Silicon first use with a clearly labeled local host build consumed the original signed v0.0.47 bundle and passed download, verification, installation, daemon launch and socket readiness. The unchanged installer used installed Homebrew Python 3.14.8.
  • Native runtime validation exposed a separate execution-image content-digest mismatch during health checking. No VM boot or guest Shell execution is claimed, and verification was not bypassed. Keep that follow-up separate from this archive compatibility fix.

Compatibility and rollout

The producer fix affects future releases. The narrow consumer compatibility fix lets a patched host consume the original signed v0.0.47 bundle without repacking or bypassing admission. Existing published artifacts are unchanged. A clearly labeled local patched host build was validated through bundle installation on the operator's Mac, with original release files preserved. Test-owned processes were stopped; persistent settings and official executable links remain unchanged. Darwin MicroVM support remains experimental.

JAORMX and others added 2 commits October 8, 2026 13:49
Omit synthetic roots in future bundles and narrowly accept canonical empty directory roots in existing signed bundles without weakening archive admission.

Co-authored-by: Mecatl <[email protected]>
Remove release_bundle_test.go at maintainer request, leaving the packaging and extractor compatibility fix unchanged.

Co-authored-by: Mecatl <[email protected]>
@JAORMX
JAORMX merged commit bd78618 into main Oct 8, 2026
38 checks passed
@JAORMX
JAORMX deleted the fix/microvm-release-root-entry-20261008 branch October 8, 2026 12:40
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 13, 2026
2 tasks
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