Skip to content

Codex Cloud runtime cannot connect to assigned HTTP proxy proxy:8080 (Operation not permitted) #53767

Open

Description

@BS-Beregning

Summary

A personal Codex Cloud web environment cannot reach its assigned HTTP/HTTPS proxy. DNS resolution succeeds and the destination allowlist is correct, but TCP connectivity to proxy:8080 fails immediately with Operation not permitted. The destination (Vercel) is never reached.

This persists after the general Codex/Work incident on 2026-10-13 was marked resolved.

Failing task

https://chatgpt.com/local/01a135fb-dbec-72ec-b1ba-c694eb03306f

Environment

  • Codex Cloud (current web experience, not Legacy)
  • Personal ChatGPT Plus account, not Enterprise/Business Agent Security
  • Browser: Google Chrome on Windows
  • Internet access enabled
  • Restricted networking
  • No VPN/Tailscale configured
  • No proxy secrets configured

Timestamps

  • Earlier failed connectivity test: approximately 2026-10-13 16:29:17 UTC
  • / feedback submission: approximately 2026-10-13 20:39 UTC; web UI only returned “Thanks for your feedback” and did not return a session ID or share-session option
  • Fresh post-incident test still failed

Effective network policy

/etc/codex/network-policy.json contains:

{
  "version": 1,
  "vpn_configured": false,
  "http_proxy": "http://proxy:8080",
  "http_network_policy": {
    "type": "restricted",
    "egress_rules": [
      { "host": "*.vercel.app" },
      { "host": "lloqfcnrifsbhqcqmrtt.supabase.co" }
    ]
  },
  "tcp_connect_proxy": "http://proxy:8088",
  "tcp_network_access": {
    "domains": [],
    "ip_ranges": []
  }
}

(The actual policy includes the standard Codex/package/GitHub allowlist entries as well; only the relevant entries are shown here.)

Proxy environment

The runtime reports HTTP/HTTPS proxy configuration pointing to http://proxy:8080, including:

http_proxy=http://proxy:8080
https_proxy=http://proxy:8080
HTTP_PROXY=http://proxy:8080
HTTPS_PROXY=http://proxy:8080
CODEX_EXEC_SERVER_PROXY_PRIVATE_IPS_VIA_UPSTREAM=true

DNS

getent hosts proxy:

172.31.24.189    proxy

Route diagnostic

ip route cannot be inspected in the runtime:

Cannot open netlink socket: Operation not permitted

Connectivity results

Fresh verification after the general Codex/Work incident was resolved:

Proxy DNS: PASS
Proxy TCP :8080: FAIL
Vercel HTTPS through proxy: FAIL
*.vercel.app allowlist: PASS
Vercel reached: NO
Final result: CONNECTIVITY STILL BLOCKED

Direct TCP attempt to proxy:8080 fails with:

PermissionError(1, 'Operation not permitted')

curl -v https://vylix-3olufx6ob-xaznedarbassam-1655.vercel.app uses https_proxy=http://proxy:8080, resolves the proxy to 172.31.24.189, then fails immediately:

Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

curl -v http://proxy:8080 fails identically:

Host proxy:8080 was resolved.
IPv4: 172.31.24.189
Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server

Expected behavior

Codex Cloud should be able to reach its assigned HTTP/HTTPS proxy and then enforce the configured restricted destination allowlist. *.vercel.app is explicitly allowed.

Actual behavior

The runtime resolves the assigned proxy but cannot open the connection to proxy:8080; the request never reaches Vercel.

Additional context

OpenAI Support advised that these results fit a Codex Cloud proxy-path/runtime networking problem rather than a Vercel/Supabase or destination-allowlist issue. They also noted that managed controls such as allow_local_binding / allow_upstream_proxy are not exposed in the personal Codex Cloud environment UI.

Please investigate the runtime/upstream proxy connectivity and effective platform-side networking policy for this task/environment. No customer-side repository, Vercel, Supabase, allowlist, or environment changes are being made while this is investigated.

Activity

  1. added
    bug
    codex-web
    connectivity
    sandbox
    on Oct 13, 2026
  2. github-actions commented on Oct 13, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. usausamikann commented on Oct 19, 2026

    @usausamikann

    I'm experiencing the same issue in Codex Cloud on October 19, 2026.

    Environment

    • Codex Cloud (web)
    • Repository: usausamikann/4k_game
    • Workspace: /workspace/4k_game
    • Proxy: http://proxy:8080

    Diagnostic results

    1. Git remote access

    git ls-remote origin HEAD

    • Exit code: 128
    • Failed to connect to proxy port 8080.

    2. HTTPS request

    curl -I --max-time 10 https://github.com

    • Exit code: 7
    • Same proxy connection failure.
    • No HTTP response received.

    3. Proxy configuration

    • HTTP_PROXY / HTTPS_PROXY (both uppercase and lowercase) point to http://proxy:8080.
    • No Git-specific proxy configuration was found.

    4. DNS and TCP connectivity

    • DNS resolution succeeds: proxy → 172.31.1.29.
    • TCP connection to 172.31.1.29:8080 fails with Operation not permitted.

    5. Network policy

    • GitHub was included in the allowed destinations.
    • The effective policy application state was reported as unknown.

    Additional observation

    Interestingly, GitHub operations through a separate ChatGPT GitHub integration were successful, including retrieving the latest main and creating a pull request.

    However, direct Git commands inside the Codex Cloud execution environment consistently failed before reaching GitHub.

    This suggests that the failure may be specific to the task runtime's network path or sandbox permissions, rather than GitHub authentication or repository access.

    Expected behavior

    Codex Cloud tasks should be able to reach their assigned internal proxy and perform authorized GitHub operations.

    Actual behavior

    The proxy hostname resolves correctly, but TCP connections to port 8080 are denied.

    No proxy configuration changes, bypass attempts, or network policy changes were made during diagnosis.

    Thank you for investigating this issue.

  4. goliatone commented on Oct 21, 2026

    @goliatone

    Confirming the same failure in another Codex Cloud setup (2026-10-20). This reproduces across two cloud environments, including one with a newly published configuration. Internet access is enabled; the effective network policy lists the required GitHub API and package-registry destinations.

    Sanitized diagnostic from inside a cloud task:

    Configured proxy port: 8080
    Proxy DNS: PASS
    Proxy TCP: FAIL PermissionError 1
    

    With inherited proxy and CA settings, unauthenticated HTTPS probes to api.github.com and registry.npmjs.org both fail identically:

    curl exit: 7
    HTTP status: 000
    CONNECT status: 000
    Failed to connect to proxy port 8080
    

    A normal Git fetch likewise fails because it cannot reach the proxy (exit 128). No destination-side response or GitHub authentication exchange occurs.

    The destination allowlist appears correctly populated; the runtime cannot establish the TCP connection to its assigned proxy before any allowlist rule can be evaluated. Please investigate the cloud task sandbox/network namespace and outbound permission to the managed proxy endpoint.

    No proxy bypasses or security-policy changes were attempted. Identifying repository, environment, workspace, account, and task details intentionally omitted.

  5. trentjnichols44-arch commented on Oct 23, 2026

    @trentjnichols44-arch

    Additional independent reproduction (2026-10-23 UTC) in Codex Cloud using a personal ChatGPT account, on a separate repository/environment from the original report.

    Expected: When the environment UI already has "Allow Codex to access internet" enabled and "Allow domains: Package managers" selected, a read-only npm registry lookup should connect through the assigned managed proxy and retrieve package metadata.

    Observed in a fresh task (no changes to settings):

    npm view esbuild version --fetch-retries=0 --fetch-timeout=15000

    Exited 1 after a single attempt:

    npm error code EPERM
    npm error syscall connect
    npm error errno EPERM
    npm error FetchError: request to https://registry.npmjs.org/esbuild failed, reason: connect EPERM 172.31.0.109:8080 - Local (undefined:undefined)
    

    Relevant, non-secret effective configuration reported by the task:

    HTTP_PROXY / HTTPS_PROXY = http://proxy:8080
    NO_PROXY = localhost,127.0.0.1,::1
    npm registry = https://registry.npmjs.org/
    npm proxy / https-proxy = null
    

    The initial implementation task failed identically during a bounded npm dependency attempt, with connect EPERM 172.31.5.61:8080. The user confirmed the internet/Package managers UI settings had always been enabled, and made no settings change between the two tasks. The second task was launched separately specifically to isolate the network check. No source modifications or dependency installations were made in the diagnostic task. npm also reported a separate inability to write its log under ~/.npm/_logs; this does not account for the proxy TCP permission denial.

    Impact: Even a narrow, offline-safe code task cannot acquire pinned public build dependencies (e.g. esbuild), so the environment's documented Package managers network access is nonfunctional.

    Request: Please inspect Codex Cloud sandbox egress enforcement and reachability to its assigned proxy proxy:8080 for this class of personal cloud environments. Is there a known workaround or an effective-network-policy mismatch? The failure is before the package registry can respond; increasing npm retries or changing repository credentials should not be needed.

    No credentials, private repository content, or device identifiers included. This looks consistent with the originally reported sandbox/proxy failure, so reporting as a reproduction here rather than opening a duplicate issue.

  6. neutronyesss commented on Oct 26, 2026

    @neutronyesss

    Confirming related socket-level EPERM symptoms in a separate published Codex Cloud web environment (2026-10-26). I have not directly tested connectivity to proxy:8080, so this is a possible related reproduction rather than proof of the identical underlying cause.

    • Starting a Next.js development server on 127.0.0.1:3000 failed with listen EPERM.
    • An independent Python standard-library socket.bind(("127.0.0.1", 0)) failed with PermissionError, errno 1 (EPERM). This reproduces the local bind failure without application code.
    • A single short-timeout, read-only HTTPS GET to an explicitly allowlisted preview service, using the configured HTTP/HTTPS proxy, failed with URLError -> PermissionError(errno=1) at the socket phase; no HTTP response was received.
    • The destination hostname appeared in both the executor policy and enforced Cloud allowlist. HTTP/HTTPS proxy variables were present and the destination was not configured to bypass the proxy.

    These checks suggest a Cloud sandbox socket restriction rather than an application or destination allowlist error. Could the team investigate whether local socket bind and outbound proxy-path connections are denied by a common managed policy, and identify a supported correction?

    No source files, databases, environment settings, credentials, or production resources were changed. Identifying project, repository, account, endpoint, and session details are intentionally omitted.

  7. DavidB-DnD commented on Oct 28, 2026

    @DavidB-DnD

    I’m experiencing similar problems in Codex Cloud on 28 October 2026, using ChatGPT in a web browser on Windows.

    Runtime networking failure

    My existing task can read and edit repository files and run offline tests, but GitHub and npm requests fail with:

    Failed to connect to proxy port 8080

    A separate diagnostic reports socket creation failing with EPERM before bind/connect. Starting a local HTTP server is also blocked. The runtime reports running/connected with network policy enforced, but dependency installation, browser testing and PR publication cannot proceed.

    Environment publishing failure

    Publishing changes to two cloud environments remains stuck at “Publishing”. One attempt remained there for over an hour, while task diagnostics continued to show the previous configuration version.

    Browser DevTools captured a failed environment-draft update:

    • Method: PATCH
    • Endpoint: /api/codex-cloud/v1/environment-configs/[environment ID]/drafts/[draft ID]
    • Status: 500 Internal Server Error
    • Response Date: 28 October 2026, 00:33:35 GMT
    • Content-Length: 0
      The interface does not surface a useful explanation of this failure. I cannot confirm whether the publishing failure and runtime socket/proxy restriction share a cause.

    Expected behaviour

    Cloud tasks should be able to use their configured proxy for permitted GitHub and package-registry access. Environment publication should either complete and apply the new configuration or display an actionable error.

    Please investigate the effective runtime socket permissions, configured proxy access and failed draft-update/publication operation. Local work is preserved in the existing task. No proxy bypass or host-security changes have been attempted.

    I can provide task and environment references privately through OpenAI Support.

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

    bugcodex-webconnectivitysandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions