Skip to content

feat: add approval-gated unsafe host shell - #172

Closed
FinnMacd wants to merge 2 commits into
CopilotKit:mainfrom
FinnMacd:feature/unsafe-host-shell-tool
Closed

FinnMacd wants to merge 2 commits into
CopilotKit:mainfrom
FinnMacd:feature/unsafe-host-shell-tool

Conversation

@FinnMacd

Copy link
Copy Markdown

Summary

  • Adds an opt-in unsafe host shell capability gated by both server env config and per-Dot permission.
  • Requires owner approval before executing each host command and stores exact approved command details.
  • Adds UI for reviewing/approving host-shell commands and Dot-level enablement.
  • Adds tests covering availability gates, stored approvals, one-shot execution, nonzero exits, and timeouts.

Validation

  • npm test -- --run tests/host-shell.test.ts
  • npm run typecheck
  • npm run build

Safety notes

  • Disabled by default via OPENDOTS_ENABLE_UNSAFE_HOST_SHELL.
  • Per-Dot opt-in required.
  • Commands run on the OpenDots host, not the isolated computer.
  • Every command requires owner approval before execution.

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