Skip to content

Default proxy connectivity in Codex Cloud broken #52161

Closed

Description

@erjeve

What issue are you seeing?

### Component and workspace

- Component: **Codex Cloud (new)**
- Workspace/plan: **ChatGPT Business**
- Timestamp: **2026-10-08 approximately 14:40 UTC**

### Summary

Environment onboarding successfully accessed the repository through the platform-provided HTTPS route. Authenticated fetch and push dry runs passed.

However, a normal task launched from the published environment cannot connect to its injected proxy. The failure persists after runtime status reports unrestricted HTTP networking with policy state `enforced`.

### Expected behavior

Tasks launched from the published environment should receive a reachable runtime proxy and support authorized outbound HTTPS/Git operations.

### Reproduction



### Actual behavior

Uppercase and lowercase HTTP/HTTPS proxy variables point to:

```text
http://proxy:8080
```

DNS resolution succeeds:

```text
172.31.2.61 proxy
```

HTTPS fails immediately:

```text
curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
GitHub HTTP status: 000
```

The failure reproduced on a subsequent check. Direct Python socket connection attempts to both `proxy:8080` and `proxy:8088`, with five-second timeouts, returned:

```text
PermissionError: [Errno 1] Operation not permitted
```

These observations do not distinguish executor network enforcement from proxy-service or routing failures.

### Runtime observations

- Repository bootstrap succeeded at commit:
  `5ac0060175e5c62e150373c3847d1e16719dabf7`
- Desired and observed spec revisions: `3`
- Observations: current
- Desired and observed phase: `running`
- Connectivity: `connected`
- Failure: `null`
- HTTP network policy: `unrestricted`
- Policy state: `enforced`

Earlier observations reported revision `2` and policy state `unknown`. Connectivity remained broken after revision `3` reported enforcement.

`/etc/codex/network-policy.json` reports:

- Policy version: `1`
- Unrestricted HTTP policy
- TCP connect proxy: `http://proxy:8088`
- Empty TCP destination grants
- `vpn_configured: false`

No configured secrets, runtime variables, or outbound identities were reported.



### What steps can reproduce the bug?

1. Prepare and publish a Codex Cloud environment with a GitHub repository.
2. Verify that repository fetch works during onboarding.
3. Launch a normal task from that environment.
4. Run:

```bash
getent hosts proxy

curl --connect-timeout 5 --max-time 15 \
  --silent --show-error --output /dev/null \
  --write-out 'GitHub HTTP status: %{http_code}\n' \
  https://github.com
```

### What is the expected behavior?

After onboarding Codec Cloud it is expected to be able to (at least) fetch the configured github repo where it is supposed to work on.

### Additional information

OpenAI Help Support Chat asked whether workspace Agent Security networking restrictions apply.

In the ChatGPT Business workspace’s Admin Console, neither **Agent Security** nor **Policies & Config** is visible. Consequently, I cannot inspect effective “Manage Networking,” “Only allow domains added by admins,” or local/private connectivity settings.

This does not establish whether those policies are absent, unavailable, or hidden by permissions.

### Requested investigation

Please investigate:

1. Executor-to-proxy reachability on ports `8080` and `8088`, including policy-denial logs explaining `EPERM`.
2. Proxy DNS/sidecar assignment, listener availability, startup readiness, and network attachment.
3. Effective workspace-level networking requirements for this Business workspace.
4. Differences between onboarding and normal-task networking contexts.
5. Why status reports `connected` and policy `enforced` while the injected proxy remains unreachable.

### Full diagnostic identifiers supplied to OpenAI Support.

- Feedback session/thread ID:
  `01a11c2a-eb27-71fb-9d2f-d8fb47ad1044`
- Failing task/thread/session ID:
  `01a11bef-c302-746d-8924-4c3f4080b06e`
Full environment diagnostics have been provided privately to OpenAI Support. Please correlate this issue using the failing task/thread/session ID above; failure occurred around 2026-10-08 14:40 UTC.

Activity

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

    @github-actions
    Contributor
  4. erjeve commented on Oct 8, 2026

    @erjeve
    Author

    the default seems to be no permission for internet access - this cannot be changed be changed durably by a setting. But a turn-based permission can be granted when Codex is explicitly asked to access the internet in a user prompt. This now seems to be the workaround for the lack of a durable grant.

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-webconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions