Skip to content

docs(id): decision record for HTTP CONNECT proxy traversal (#5796) - #8209

Merged
dezren39 merged 1 commit into
mainfrom
queue/12791-5796-connect-proxy-traversal
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/12791-5796-connect-proxy-traversal

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

What

Decision record for #5796 — HTTP CONNECT proxy traversal, the sixth item of #5671's decomposition sketch. Design only; no implementation.

doc/2026-11-10T19-55-00Z_design_id5796_connect_proxy_traversal.md

Decisions recorded

  • One CONNECT client, two callers. Same tunnel code serves the transport stack dialling a broker/host and the locally terminated SSH endpoint. No shell-out to socat/curl -x/ssh -o ProxyCommand.
  • Egress config is explicit-plus-environment, never guessed: CLI → HTTPS_PROXY/ALL_PROXY/NO_PROXY → per-peer config → global config → direct tier. PAC/WPAD rejected for v1 with the reason stated (and named as a follow-up rather than silently dropped).
  • Credentials are references, resolved at use: credential://, env://, and literal: only behind an explicit insecure flag. Never in config values, logs, errors, diagnostics, task payloads or queue results. This answers id: design: ID transport fallback for UDP-denied networks v1 #5671's open question on proxy-auth storage and closes the half id: design: transport negotiation & fallback ordering (from #5671) #5791 §8 deferred here.
  • TLS-in-TLS inside the tunnel, verified, no exceptions. A corporate TLS-inspecting appliance produces tls_failure and is surfaced, never worked around; the record says plainly that the operator's correct lever is a do-not-decrypt policy exemption, and that ID's E2E layer is what survives inspection.
  • Keepalive rides the tunnel below the proxy's idle floor (id: design: id broker / serve-proxy role (from #5671) #5792's 25 s jittered PING), and a dead tunnel is a resumption, not a session failure.
  • Local SSH endpoint is id's own loopback listener (the existing world ssh-tunnel --listen/--stdio shape plus a proxy choice), loopback-only by default, granting no authority, terminating no SSH.
  • Failure mapping adds no new classes: 407 → proxy_auth_required (ask once, never guess, never rotate), 403/502/503 → proxy_denied (fall through, don't quarantine the proxy), TLS/auth failures → stop and surface, tunnel death → resumption.
  • 12 invariants implementation must hold; 9 rejected alternatives with reasons.

Gate

The previous packet (task 12791, 2026-11-08) parked on "parent #5671 has no decision record". That gate was wrong and was corrected by triage 12830: #5671 is a decomposition umbrella whose four decisions are fixed in its own body, and #5791/#5792/#5798 landed exactly that way. §12 checks all four parent decisions explicitly and finds no change; two parent open questions are answered here rather than silently forked.

Verification

No code changed. Read at origin/main 7dc4aefa23: confirmed no CONNECT/proxy client exists in pkgs/id/src or pkgs/id/crates/id-core/src (so this is genuinely undesigned work), and confirmed the server half it must reach exists — SSH_TUNNEL_ALPN/SshTunnelProtocol (world_ssh.rs:89,97), world ssh-tunnel args (cli.rs:1962-1977), broker frame codec (serve_proxy.rs). No runtime tests apply to a doc-only change.

Closes #5796.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Records the design decision for #5671's decomposition item 6: one CONNECT
client used by both the transport stack and the locally terminated SSH
endpoint, explicit-plus-environment proxy config, credential references
resolved from the platform store at use, TLS-in-TLS inside the tunnel
with no verification bypass, honest treatment of TLS-inspecting corporate
proxies, and failure classification mapped onto #5791's classes without
new top-level states.

Consumes the #5671 body decisions and the #5791/#5792 records without
amending them; the stale '\''parent has no decision record'\'' gate that
parked the previous packet is corrected in the record's gate section.
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 19:54
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T19:54:32.580022Z
We couldn’t complete this review. Comment @codex review to try again.
c7113dd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a7eee0c9-b240-493a-be3f-1eef4f383034
Commits

Reviewing files that changed from the base of the PR and between 0438c1a and c7113dd.

Files selected for processing: 1

  • doc/2026-11-10T19-55-00Z_design_id5796_connect_proxy_traversal.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit c4bd439 into main Nov 10, 2026
4 of 8 checks passed
@dezren39
dezren39 deleted the queue/12791-5796-connect-proxy-traversal branch November 10, 2026 21:30
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.

id: design: HTTP CONNECT proxy traversal (from #5671)

1 participant