Skip to content

feat(core-rs): add secure local control transport - #141

Merged
SarthakWade merged 1 commit into
mainfrom
feat/rust-control-transport-140
Aug 27, 2026
Merged

feat(core-rs): add secure local control transport#141
SarthakWade merged 1 commit into
mainfrom
feat/rust-control-transport-140

Conversation

@SarthakWade

Copy link
Copy Markdown
Collaborator

Summary

  • add a platform-neutral Rust control connection and listener seam with bounded newline framing
  • add validated, response-correlated request exchange with typed transport failures
  • add a secure Unix-domain socket backend with private runtime permissions, safe stale endpoint handling, and peer UID authorization
  • document roadmap progress while keeping Windows named pipes and SID authorization explicitly out of scope

Security

  • preserves the no-TCP control-plane contract
  • requires a real current-user runtime directory with no group or other permissions
  • creates the runtime directory as 0700 and the socket as 0600
  • rejects non-socket, foreign-owned, and live endpoints before cleanup
  • authenticates accepted peers before request decoding
  • bounds reads and writes to the existing 1 MiB protocol limit

Validation

  • cargo test --locked
  • cargo clippy --locked --all-targets -- -D warnings
  • Windows and macOS Rust cross-target clippy
  • pnpm test
  • pnpm test:runtime
  • pnpm test:npm
  • pnpm --filter @headless/web lint
  • pnpm --filter @headless/web build
  • ./apps/headless/build.sh
  • static shell, checksum, whitespace, and npm package checks
  • pnpm test:e2e:linux

Closes #140

@SarthakWade
SarthakWade merged commit ff62819 into main Aug 27, 2026
11 checks passed
@SarthakWade
SarthakWade deleted the feat/rust-control-transport-140 branch August 27, 2026 07:58
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.

core-rs: add the control transport seam and secure Unix backend

1 participant