codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex Cloud rejects allowlisted Azure Blob Storage endpoint with “Cloudflare egress requires HTTP inspection”

Open nikhil-pandey opened this issue 2 months ago • 6 comments

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

26.928.21956

What subscription do you have?

Plus

What platform is your computer?

Darwin 27.0.0 arm64 arm

What issue are you seeing?

Summary

Codex Cloud cannot connect to an Azure Blob Storage endpoint despite its exact hostname being allowed in the environment’s internet-access settings.

The configured proxy rejects the connection with:

Cloudflare egress requires HTTP inspection

The actual storage account hostname is omitted for privacy.

Environment

  • Codex Cloud managed environment with restricted internet access.
  • Network policy reports enforced.
  • The exact Azure Blob Storage hostname is explicitly allowlisted.
  • Azure management, Azure Key Vault, GitHub API, Tailscale API, and Cloudflare API endpoints are also allowed.

Reproduction

Replace <storage-account> with an existing, explicitly allowlisted Azure Storage account. Keep the environment’s inherited proxy settings:

curl --show-error --max-time 15 \
  "https://<storage-account>.blob.core.windows.net/"

Result:

curl: (56) CONNECT tunnel failed, response 403

To capture the proxy’s response body:

import socket

host = "<storage-account>.blob.core.windows.net"

with socket.create_connection(("proxy", 8080), timeout=5) as s:
    s.settimeout(5)
    s.sendall(
        f"CONNECT {host}:443 HTTP/1.1\r\n"
        f"Host: {host}:443\r\n"
        "Connection: close\r\n\r\n".encode()
    )
    print(s.makefile("rb").read().decode())

Request:

CONNECT <storage-account>.blob.core.windows.net:443 HTTP/1.1
Host: <storage-account>.blob.core.windows.net:443
Connection: close

Response, with the date header omitted:

HTTP/1.1 403 Forbidden
content-length: 42
content-type: text/plain
server: envoy
connection: close

Cloudflare egress requires HTTP inspection

Comparison

Through the same configured proxy:

Destination Explicitly allowed CONNECT result
Azure Blob Storage endpoint Yes 403: Cloudflare egress requires HTTP inspection
Azure Key Vault endpoint Yes 200
GitHub API Yes 200
Tailscale API Yes 200
Cloudflare API Yes 200

A made-up, non-allowlisted storage hostname receives a different response:

Destination forbidden

Because that hostname is not allowlisted, this does not establish whether another allowlisted storage endpoint would trigger the inspection error.

Expected behavior

The explicitly allowed Azure Blob Storage endpoint should be reachable through the supported proxy path, or the proxy should accurately explain any additional configuration requirement.

Diagnostic boundary

The proxy rejects CONNECT before a TLS tunnel is established and before Azure authentication. The response does not establish that Cloudflare handles the destination traffic.

Why does an allowlisted Azure Blob Storage endpoint trigger a Cloudflare HTTP-inspection error?

What steps can reproduce the bug?

Feedback ID: 01a10150-4f00-745b-96f6-f6eaadf8207c

What is the expected behavior?

No response

Additional information

No response

nikhil-pandey avatar Oct 03 '26 11:10 nikhil-pandey

Even with full internet access, Azure Storage doesnt seem to work. S3 and GCP Cloud Storage do work.

nikhil-pandey avatar Oct 17 '26 09:10 nikhil-pandey

This has been happening for me as well. Just like described it seems exclusive to azure storage.

vsadams avatar Oct 21 '26 03:10 vsadams

I also have this issue, I also see this is happening only when trying to connect to azure blob storage. When asking the agent to check why it happens while env editing / setup, it succeeds

IdoHadar avatar Oct 22 '26 13:10 IdoHadar

I have exactly the same issue.

bares43 avatar Nov 05 '26 10:11 bares43

Same for me: Trying to access Azure storage at *.blob.core.windows.net.

Getting “Cloudflare egress requires HTTP inspection”

Spoonio avatar Nov 19 '26 14:11 Spoonio

same here :( surely this should be rectified as a priority? Anyone found a work around?

Have a Codex Cloud environment which has azure CLI configured and authenticated, and it configures the services but cannot upload to the blob.

tablelandsbasketball avatar Dec 02 '26 01:12 tablelandsbasketball