Skip to content

dev2 gateway nginx: pass WebSocket upgrades for /desktop and /browse bridges - #288

Merged
ralyodio merged 1 commit into
masterfrom
fix/gateway-websocket-upgrade
Nov 30, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/gateway-websocket-upgrade

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

gateway.c0mpute.com's catch-all location never forwarded Upgrade/Connection, so the c0mpute.com/desktop (noVNC) and /browse (CDP) WebSocket bridges got a 400 from the worker while :7777 directly answered 101. Adds a regex location for /(desktop|browse)/v1/ws with the upgrade headers and a 1 h idle timeout.

Applied live on dev2 already (backup /etc/nginx/sites-available/gateway.c0mpute.com.bak-20261130-ws, live file was identical to this repo before the change); nginx -t ok, both paths now return 101, /healthz 200, and a remote browser session was driven end to end through wss://gateway.c0mpute.com/browse/v1/ws.

🤖 Generated with Claude Code

…rowse/v1/ws

The catch-all location never set Upgrade/Connection, so nginx answered 400
("Connection header did not include upgrade") for the c0mpute.com/desktop
and /browse bridges while the worker on :7777 answered 101. Applied live
on dev2 2026-11-30 (backup gateway.c0mpute.com.bak-20261130-ws); both now 101.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

0 finding(s) in the 1 file(s) this pull request changes.

Nothing in the files this pull request changes.

42 pre-existing finding(s) elsewhere in the repository — **HIGH**: 15 | **MEDIUM**: 13 | **LOW**: 14

Not introduced by this pull request.

Severity Rule Location
HIGH py-ssrf-outbound-request dev2/dev2-site:152
HIGH py-ssrf-outbound-request dev2/dev2-site:1103
HIGH py-ssrf-outbound-request dev2/dev2-site:1916
HIGH sh-remote-script-execution root-ubuntu.sh:3262
HIGH sh-remote-script-execution root-ubuntu.sh:3263
HIGH sh-remote-script-execution root-ubuntu.sh:5176
HIGH sh-remote-script-execution root-ubuntu.sh:5180
HIGH sh-remote-script-execution root-w3bs-os.sh:3639
HIGH sh-remote-script-execution root-w3bs-os.sh:3640
HIGH sh-remote-script-execution root-w3bs-os.sh:5569
HIGH sh-remote-script-execution root-w3bs-os.sh:5579
HIGH sh-remote-script-execution root-w3bs-os.sh:5586
HIGH sh-remote-script-execution root-w3bs-os.sh:5602
HIGH sh-remote-script-execution root-w3bs-os.sh:5607
HIGH sh-plaintext-download root-w3bs-os.sh:6289
MEDIUM sql-template-interpolation dev2/dev2-site:1347
MEDIUM sql-template-interpolation dev2/dev2-site:1424
MEDIUM gha-ssh-key-secret dev2/templates/deploy-dev2.yml:40
MEDIUM sh-remote-script-execution root-ubuntu.sh:5384
MEDIUM redos-nested-quantifier src/domain-free.ts:56

…and 22 more; the full set is in the SARIF artifact.

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 018c813 into master Nov 30, 2026
2 checks passed
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