Skip to content

[PROD-871][2/3] The CLI can register a personal proxy and keep its tunnel to the linked proxy gateway open - #110

Merged
daniel-gumloop merged 4 commits into
daniel-prod-871-cli-gateway-streamsfrom
daniel-prod-871-cli-tunnel-connection
Nov 27, 2026
Merged

daniel-gumloop merged 4 commits into
daniel-prod-871-cli-gateway-streamsfrom
daniel-prod-871-cli-tunnel-connection

Conversation

@daniel-gumloop

@daniel-gumloop daniel-gumloop commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

The SDK can register this computer as a linked proxy, and gumloop.linked_proxy can keep a tunnel to the gateway open.

  • client.linked_proxies registers a machine (POST /api/v1/linked-proxies/cli) and gets an hour-long gateway token (POST /api/v1/linked-proxies/<id>/gateway-token), with the new types.
  • cli/linked_proxy_key.py creates the machine's Ed25519 key and keeps the private key in the OS keychain.
  • sign_in.py builds the sign-in token: signed by the machine key and carrying the gateway token.
  • connection.py signs in, serves the gateway's streams through 1/3's tunnel, and reconnects with backoff. TLS trusts certifi's roots only.
  • New dependencies: websockets>=14 and certifi.

In this part the connection stops when the gateway closes with 4001. 3/3 replaces that: only a refused gateway token request stops it.

Why

The CLI command in 3/3 needs a registration, a key and a connection that stays up.

Compatibility

  • Additive. No existing command or type changes.
  • The routes exist only on backends with gumloop/gumloop_backend#14790 and the linked-proxies flag on for the org.

How it's tested

  • Unit tests for the SDK resource, the key, sign-in and the connection.

Companion PRs: backend gumloop/gumloop_backend#14520 (stack of 15), frontend gumloop/gumloop_frontend#10318 (stack of 3).

@daniel-gumloop daniel-gumloop changed the title [PROD-871] The CLI can register a linked proxy and keep its tunnel to the linked proxy gateway open [PROD-871][2/3] The CLI can register a linked proxy and keep its tunnel to the linked proxy gateway open Nov 26, 2026

@devin-ai-integration devin-ai-integration Bot 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.

🔍 Devin Review: 3 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@daniel-gumloop
daniel-gumloop force-pushed the daniel-prod-871-cli-tunnel-connection branch 3 times, most recently from 7e01a98 to 5c24f3b Compare November 26, 2026 03:48
@daniel-gumloop daniel-gumloop changed the title [PROD-871][2/3] The CLI can register a linked proxy and keep its tunnel to the linked proxy gateway open [PROD-871][2/3] The CLI can register a personal proxy and keep its tunnel to the linked proxy gateway open Nov 26, 2026
@daniel-gumloop
daniel-gumloop force-pushed the daniel-prod-871-cli-tunnel-connection branch from 5c24f3b to 9dcd887 Compare November 26, 2026 06:00
@daniel-gumloop
daniel-gumloop force-pushed the daniel-prod-871-cli-tunnel-connection branch from 9dcd887 to 4ef4a34 Compare November 26, 2026 21:32
@daniel-gumloop
daniel-gumloop merged commit 26f0e3b into main Nov 27, 2026
11 of 17 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.

2 participants