Skip to content

Add SOCKS5 TCP MITM coverage - #22685

Merged
winston-openai merged 5 commits into
mainfrom
dev/winston/socks5-tcp-mitm
Jun 9, 2026
Merged

Add SOCKS5 TCP MITM coverage#22685
winston-openai merged 5 commits into
mainfrom
dev/winston/socks5-tcp-mitm

Conversation

@winston-openai

@winston-openai winston-openai commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reuse the MITM HTTPS serving path for raw SOCKS5 TCP streams
  • route limited-mode and hooked SOCKS5 TCP requests through MITM before dialing upstream
  • keep SOCKS5 UDP limited-mode behavior unchanged

Validation

  • just fmt
  • just test -p codex-network-proxy
  • just fix -p codex-network-proxy
  • git diff --check

@github-actions

github-actions Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@winston-openai
winston-openai force-pushed the dev/winston/credentialed-routes-refresh branch from 9b533a0 to 9d21585 Compare May 15, 2026 04:42
@winston-openai
winston-openai force-pushed the dev/winston/socks5-tcp-mitm branch 2 times, most recently from 23cd684 to 2fcc0c6 Compare May 15, 2026 05:18
@winston-openai
winston-openai force-pushed the dev/winston/credentialed-routes-refresh branch 2 times, most recently from 68ea51b to e0899d3 Compare May 15, 2026 12:33
@winston-openai
winston-openai force-pushed the dev/winston/socks5-tcp-mitm branch from 2fcc0c6 to 16073ac Compare May 15, 2026 12:33
@winston-openai
winston-openai force-pushed the dev/winston/credentialed-routes-refresh branch from e0899d3 to 9a71b42 Compare May 15, 2026 12:51
@winston-openai
winston-openai force-pushed the dev/winston/socks5-tcp-mitm branch from 16073ac to 34d5e4d Compare May 15, 2026 12:51
@winston-openai
winston-openai force-pushed the dev/winston/credentialed-routes-refresh branch from 9a71b42 to 91a8270 Compare May 15, 2026 17:34
@winston-openai
winston-openai force-pushed the dev/winston/socks5-tcp-mitm branch from 34d5e4d to 74bc589 Compare May 15, 2026 17:34
@winston-openai
winston-openai force-pushed the dev/winston/socks5-tcp-mitm branch from ee776df to 7d11ccc Compare June 9, 2026 02:52
@winston-openai
winston-openai changed the base branch from dev/winston/credentialed-routes-refresh to main June 9, 2026 02:52
@winston-openai
winston-openai marked this pull request as ready for review June 9, 2026 06:32

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d11ccc121

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread codex-rs/network-proxy/src/socks5.rs Outdated
@winston-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@winston-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8812af506c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread codex-rs/network-proxy/src/socks5.rs

@viyatb-oai viyatb-oai 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.

Looks good. Can you update codex-rs/network-proxy/README.md: it still says SOCKS5 is entirely blocked in limited mode, but this now allows HTTPS SOCKS5 TCP on :443 through MITM. The docs should say UDP and non-HTTPS TCP remain blocked, while HTTPS SOCKS5 requires MITM.

@winston-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@winston-openai

Copy link
Copy Markdown
Contributor Author

Updated codex-rs/network-proxy/README.md in afd2f66 to document HTTPS SOCKS5 TCP on :443 requiring MITM in limited mode, with SOCKS5 UDP and non-HTTPS TCP still blocked.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@winston-openai
winston-openai merged commit 472619f into main Jun 9, 2026
31 checks passed
@winston-openai
winston-openai deleted the dev/winston/socks5-tcp-mitm branch June 9, 2026 20:08
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 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.

2 participants