WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@viyatb-oai
Copy link

@viyatb-oai viyatb-oai commented Dec 22, 2025

This add a new crate, codex-network-proxy, a local network proxy service used by Codex to enforce fine-grained network policy (domain allow/deny) and to surface blocked network events for interactive approvals.

  • New crate: codex-rs/network-proxy/ (codex-network-proxy binary + library)
  • Core capabilities:
    • HTTP proxy support (including CONNECT tunneling)
    • SOCKS5 proxy support
    • policy evaluation (allowed/denied domain lists; denylist wins; wildcard support)
    • small admin API for polling/reload/mode changes
    • optional MITM support for HTTPS CONNECT to enforce “limited mode” method restrictions
  • Docs: docs/network-proxy-quickstart.md describing how to build/run the proxy locally and how to configure it

Will follow up integration with codex in subsequent PRs.

Testing

  • cd codex-rs && cargo build -p codex-network-proxy
  • cd codex-rs && cargo run -p codex-network-proxy -- proxy
  • (optional) curl via HTTP_PROXY/HTTPS_PROXY as described in docs/network-proxy-quickstart.md

@github-actions
Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

"http://127.0.0.1:8080".to_string()
}

fn default_ca_cert_path() -> PathBuf {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, so these are intended to be relative paths?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I meant this to have mitm/{cert} as a relative path to $CODEX_HOME - what would make the most sense since we support multiple places to have codex config

@viyatb-oai viyatb-oai changed the title [sandbox] Introducing a network sandbox proxy feat: introducing a network sandbox proxy Dec 24, 2025
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.

3 participants