Repository navigation
fix: resolve vmsan create --connect failing with HTTP 500 - #32
Conversation
The rootfs ships /home/ubuntu owned by root:root (750), causing EACCES when the agent tries to chdir after setuid to uid 1000. Fix ownership during rootfs injection, surface actual error details in shell handler and WebSocket client. Closes #31
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThese changes enhance error handling robustness and file system permissions across the shell infrastructure: the Go handler now sanitizes and JSON-encodes error messages in responses, the TypeScript jailer fixes ownership of the ubuntu home directory to prevent access errors, and the shell client properly handles unexpected HTTP responses during WebSocket connection setup. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
/home/ubuntuownership (root:root → 1000:1000) during rootfs injection in the jailer, preventing EACCES when the agent chdir's after setuid{"error":"internal error"}unexpected-responseevent in the shell client to showShell connection failed (HTTP 500): ...instead ofUnexpected server response: 500Closes #31
Test plan
bun run typecheck— passesbun run lint— passesgo build ./...— passesgo test ./...— passesvmsan create --connectsuccessfully opens a shellSummary by CodeRabbit