Skip to content

Simplify SSH tunneling and honor system HTTPS proxies - #61975

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/62423c8a8267842c9e401b3f9094c7278c47a490
Nov 17, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/62423c8a8267842c9e401b3f9094c7278c47a490

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Simplify SSH tunneling and honor system HTTPS proxies

What changed

  • Make codex tcp-tunnel an SSH stdio helper, removing the loopback listener, stdin control protocol, and JSON diagnostics.
  • Add --token-file for one-use credentials, consumed only after gateway verification, with environment-based OAuth routing or a legacy IPv4 --target.
  • Honor system HTTPS proxy settings without attempting direct QUIC, and keep gateway credentials inside verified TLS.
  • Race direct TCP addresses through TLS and HTTP/2 readiness so stalled peers do not block a working address.

Testing

Add coverage for proxy credential isolation and stalled TLS peers, plus an opt-in Linux OpenSSH integration test for complete uploads and remote exit while local stdin remains open.

## What changed

- Make `codex tcp-tunnel` an SSH stdio helper, removing the loopback listener, stdin control protocol, and JSON diagnostics.
- Add `--token-file` for one-use credentials, consumed only after gateway verification, with environment-based OAuth routing or a legacy IPv4 `--target`.
- Honor system HTTPS proxy settings without attempting direct QUIC, and keep gateway credentials inside verified TLS.
- Race direct TCP addresses through TLS and HTTP/2 readiness so stalled peers do not block a working address.

## Testing

Add coverage for proxy credential isolation and stalled TLS peers, plus an opt-in Linux OpenSSH integration test for complete uploads and remote exit while local stdin remains open.

GitOrigin-RevId: 62423c8a8267842c9e401b3f9094c7278c47a490
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/62423c8a8267842c9e401b3f9094c7278c47a490 branch from 00d21dd to 98323ed Compare November 17, 2026 06:04
@copyberry
copyberry Bot merged commit 98323ed into main Nov 17, 2026
10 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/62423c8a8267842c9e401b3f9094c7278c47a490 branch November 17, 2026 06:04
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-17T06:04:17.886581Z 98323ed 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.

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant