Skip to content

Codex Cloud: managed proxy proxy:8080 unreachable in restricted (Package managers) environment #56491

Open

Description

@zeevtur

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.163.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex Cloud environment has restricted internet (Package managers) enabled, but the platform-managed proxy http://proxy:8080 is unreachable from tasks. proxy resolves to varying private IPs (e.g., 172.31.x.x), but any request (including allowlisted https://github.com) fails immediately with curl: (7) Failed to connect to proxy port 8080 / HTTP 000. Reproduces in brand-new tasks after republish. Env ID: ccarenv_b64_Y2NhcmVudl8wZWY4MmI2Zjk0OGM4MTkxOTBmOTQzMGM0YjRkMmI4YQ. Task URL: https://chatgpt.com/local/01a1692d-4445-73a8-b096-6cd01fc28065 (around 2026-10-23 14:34 UTC).

What steps can reproduce the bug?

Create/open Codex Cloud environment for zeevtur/JobSearch

Turn on Allow Codex to access internet → Allow domains: Package managers (keep additional domain zeevtur.app.n8n.cloud) → Publish

Start a new task from that published environment

In the task terminal, run: curl -sv --proxy http://proxy:8080 https://github.com -o /dev/null

Observe: curl: (7) Failed to connect to proxy port 8080 (HTTP 000) even though proxy resolves and github.com is allowlisted

Env ID: ccarenv_b64_Y2NhcmVudl8wZWY4MmI2Zjk0OGM4MTkxOTBmOTQzMGM0YjRkMmI4YQ

Task URL:
https://chatgpt.com/local/01a1692d-4445-73a8-b096-6cd01fc28065

Approx time: 2026-10-23 14:34 UTC

The curl -sv --proxy http://proxy:8080 https://github.com -o /dev/null output and the /etc/codex/network-policy.json proxy fields

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Oct 23, 2026
  2. added
    bug
    codex-web
    connectivity
    on Oct 23, 2026
  3. zeevtur commented on Oct 23, 2026

    @zeevtur
    Author
  4. zeevtur commented on Oct 23, 2026

    @zeevtur
    Author

    cat /etc/codex/network-policy.json | head -n 50

    {
    "version": 1,
    "vpn_configured": false,
    "http_proxy": "http://proxy:8080",
    "http_network_policy": {
    "type": "restricted",
    "egress_rules": [
    {
    "host": "aka.ms"
    },
    {
    "host": "api.nuget.org"
    },
    {
    "host": "apt.buildkite.com"
    },
    {
    "host": "apt.llvm.org"
    },
    {
    "host": "archive.apache.org"
    },
    {
    "host": "archive.ubuntu.com"
    },
    {
    "host": "auth.docker.io"
    },
    {
    "host": "azuresearch-usnc.nuget.org"
    },
    {
    "host": "azuresearch-ussc.nuget.org"
    },
    {
    "host": "bcr.bazel.build"
    },
    {
    "host": "bitbucket.org"
    },
    {
    "host": "buf.build"
    },
    {
    "host": "builds.dotnet.microsoft.com"
    },
    {
    "host": "builds.hex.pm"
    },
    {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcodex-webconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions