openai / openai/codex

Upgrade the managed network proxy from Rama 0.3.0-alpha.4 to 0.3.0

Open
#39,557 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI connectivity
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Summary

Codex's managed network proxy pins Rama to =0.3.0-alpha.4. In that release, Rama initializes its global DNS resolver once as HickoryDns::default(), so a long-running proxy can retain resolver configuration from before a network, VPN, or DNS change.

Stable Rama 0.3.0 defaults to AppleDnsResolver on macOS and performs lookups through DNSServiceQueryRecord. Upgrading is therefore a likely fix for stale DNS in long-running Codex sessions, although it should be confirmed with an A/B reproducer.

This surfaced when Tycho/P2 downloads failed through Codex's managed proxy after the effective network/DNS environment changed. Maven's proxy setting was not the controlling transport.

Proposed change

  • Upgrade the Rama dependencies from alpha.4 to stable 0.3.0.
  • Migrate the connector stack to stable Rama's DnsConnector; stable Rama separates DNS resolution from the TCP connector, so this is not only a version bump.
  • Preserve domain allowlisting and private-address rejection for every resolved candidate.
  • Add a test that keeps one proxy process alive, changes the effective DNS configuration, and verifies that the next lookup uses the new configuration.
  • Re-evaluate the Hickory advisory exceptions added in #20627.

References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in codex-rs/network-proxy/Cargo.toml and inspect the current Rama dependencies and connector setup. Read the stable Rama DnsConnector reference and compare it with the alpha.4 resolver references in the issue. Done means the proxy uses Rama 0.3.0, preserves domain allowlisting and private-address rejection, adds the long-running DNS-change test, and re-evaluates the Hickory advisory exceptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.