Skip to content

Harden runtime env, tokens, control text and model content - #550

Merged
davidmckayv merged 2 commits into
CopilotKit:mainfrom
Ayush7614:feat/runtime-env-hardening
Sep 15, 2026
Merged

davidmckayv merged 2 commits into
CopilotKit:mainfrom
Ayush7614:feat/runtime-env-hardening

Conversation

@Ayush7614

Copy link
Copy Markdown
Contributor

Supervisor passed whitespace-only COMPUTER_IMAGE/NETWORK/RUNTIME through to Docker and forwarded bad BROWSER_MODEs to crash the child; values are trimmed and modes fail fast. Whitespace COMPUTER_TOKEN is omitted instead of crashing the child at boot. Stream query tokens and Bearer remainders are trimmed like headers. Control reason/label are capped at 500 chars against poll amplification. Empty WORKSPACE_DIR falls back instead of ENOENT crash. Unparseable socket input gets an error frame. Model image parts are mime-allowlisted and base64-checked.

Verified: bun test shared/user-content-hardening.test.ts (6 pass), supervisor tests/environment-hardening.test.ts + environment.test.ts (6 pass), agent-computer tests/runtime-hardening.test.ts + authorisation + control (45 pass). Biome lint and format clean.

Supervisor passed whitespace-only COMPUTER_IMAGE/NETWORK/RUNTIME
through to Docker and forwarded bad BROWSER_MODEs to crash the child;
values are trimmed and modes fail fast. Whitespace COMPUTER_TOKEN is
omitted instead of crashing the child at boot. Stream query tokens and
Bearer remainders are trimmed like headers. Control reason/label are
capped at 500 chars against poll amplification. Empty WORKSPACE_DIR
falls back instead of ENOENT crash. Unparseable socket input gets an
error frame. Model image parts are mime-allowlisted and base64-checked.

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-verified clean; CI green on this sha.

@davidmckayv
davidmckayv merged commit f72c74f into CopilotKit:main Sep 15, 2026
15 checks passed
davidmckayv added a commit that referenced this pull request Sep 15, 2026
…564)

The Unreleased changelog was missing several changes that landed since v0.0.11: the Composio
connector (#481), the removal of a skill's grants when it is uninstalled (#563), and the
request-validation sweep that answers a malformed request with a 400 rather than coercing it or
letting it through (#543-#548, #550), including the one fail-open it closed. Added, each checked
against the code.

The README's Governed MCP bullet named only Google Drive and Notion; Composio brokers a few hundred
more apps in the catalogue now, so it says so.
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.

2 participants