Skip to content

fix(astro-dashboard): script presets use CODE env instead of inline entrypoint#9833

Merged
h0lybyte merged 1 commit intodevfrom
trunk/firecracker-entrypoint-fix-1775702603
Apr 9, 2026
Merged

fix(astro-dashboard): script presets use CODE env instead of inline entrypoint#9833
h0lybyte merged 1 commit intodevfrom
trunk/firecracker-entrypoint-fix-1775702603

Conversation

@h0lybyte
Copy link
Copy Markdown
Member

@h0lybyte h0lybyte commented Apr 9, 2026

Summary

  • SCRIPT_PRESETS in firecrackerService.ts were passing shell commands (e.g. uname -a && cat /proc/cpuinfo) directly as the entrypoint field
  • The validate_entrypoint() added in fix(firecracker-ctl): resolve memory leak, kill signal, validation, and scaling issues #9821 correctly rejects these — entrypoint must be an absolute binary path
  • Converted all 5 presets to use proper binary paths (/bin/sh, /usr/bin/python3, /usr/bin/node) and send the script body via env.CODE
  • The VM init script already reads CODE from /dev/vdb and runs exec "$ENTRYPOINT" /tmp/code — no backend changes needed

Test plan

  • Verify all 5 dashboard script presets (System Info, Disk Benchmark, Network Test, Python Hello, Node.js Hello) execute successfully
  • Verify IDE presets still work (they already used the CODE env pattern)

…ne entrypoint

SCRIPT_PRESETS were passing shell commands as entrypoint (e.g. "uname -a && ..."),
which the new validate_entrypoint() correctly rejects. Convert all presets to use
absolute binary paths (/bin/sh, /usr/bin/python3, /usr/bin/node) as entrypoint and
send the script body via env.CODE, which the VM init script reads from /dev/vdb.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA b04a875.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@h0lybyte h0lybyte merged commit b8341bc into dev Apr 9, 2026
1 check passed
@h0lybyte h0lybyte deleted the trunk/firecracker-entrypoint-fix-1775702603 branch April 9, 2026 04:11
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