Skip to content

[MOCA SBX] WebSocket upgrades on intercepted connections #1488

Closed

Description

@pdettori

Priority: P3 · Part of the Cortex × MOCA SBX epic · Not in #905's breakdown · MOCA contract: MI1 §8.5 item 5

Problem

Some tools a sandbox runs use WebSockets through the proxy. MOCA's contract allows the upgrade, and applies the Host check to the upgrade request.

What Cortex does today

Upgrade is stripped on intercepted requests (forwardproxy/server.go:1138). The strip is recorded (:481-482).

What MOCA needs

Allow Upgrade: websocket on intercepted connections, with the CONNECT-host check applied to the upgrade request and the audit event recorded.

Done when

A WebSocket echo through an intercepted host works, and the audit shows one event.

Activity

  1. added
    enhancement
    on Oct 22, 2026
  2. self-assigned this
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions