Skip to main content

Buyer guide

Codex Sandbox & Approvals Checklist for Security Reviews

Enforce local sandbox and approval settings, set network rules, and review each Codex Cloud environment separately.

Reading time
3 min read
Sources
9 cited

The call

Approve Codex with the Auto preset enforced through requirements.toml, network access allowlisted through the proxy, and danger-full-access limited to isolated CI runners.

Then review every cloud environment's internet access and secrets one by one.

Approving Codex means approving two systems. On laptops, the sandbox and approval policy you enforce decide what model-generated commands can touch. In Codex Cloud, each OpenAI-hosted environment sets its own internet access and secrets and ignores device policy. This checklist covers both, from OpenAI's agent security and managed configuration documentation.

When you need this

  • Security has to approve Codex before it reaches more engineers.
  • Some engineers already run Codex with approvals off or full access.
  • Codex Cloud environments need credentials for package registries or internal services.
  • You need to show auditors which settings are enforced and which are only defaults.

Worked example: two policies for one company

  1. Laptops

    Ship requirements.toml through MDM so every local client starts in workspace-write with on-request approvals and network access off, and users cannot override it. XING manages Codex defaults centrally on every laptop this way.

  2. CI

    Allow danger-full-access only on isolated CI runners or containers, the controlled environments OpenAI names, and sign CI in with an API key.

  3. Cloud

    Review each Codex Cloud environment on its own, because none of the laptop policy reaches it.

  4. Audit

    Record who may disable approvals or leave the sandbox, and pull audit records from the Compliance API on Enterprise.

Evaluation criteria

  1. Start from the defaults

    What can Codex touch on a developer's machine out of the box?

    Look forIn a version-controlled folder, Codex recommends the Auto preset, which pairs a workspace-write sandbox with on-request approvals and network access off. Git metadata stays read-only inside writable roots, as do the .agents and .codex folders. Folders outside version control start read-only.

  2. Enforce settings with requirements

    Which settings can a user change, and which are locked?

    Look forThe requirements.toml file constrains approval policy, sandbox mode, permission profiles, web search mode, managed hooks, MCP servers, and plugin sources, and users cannot override it. For Codex 0.138.0 or later, OpenAI recommends allowed_permission_profiles with a managed default_permissions. Deliver requirements through the system file, Agent Security in the Admin Console, or macOS MDM. Remove the retired approval_policy = "untrusted", which can stop clients from starting.

  3. Constrain the network

    When commands need the network, which destinations can they reach?

    Look forRoute commands through the network proxy, which applies allowlist-first domain rules. Deny always wins, and local and private addresses stay blocked by default. Web search uses an OpenAI-maintained cache by default and switches to live results under full access. The proxy does not filter web search, connectors, MCP servers, browser use, or cloud tasks, so govern each of those with its own control.

  4. Decide who runs without guardrails

    Who, if anyone, may turn approvals off or leave the sandbox?

    Look forWrite down who can disable approvals or leave the sandbox. The --ask-for-approval never flag removes prompts. OpenAI limits danger-full-access to controlled environments such as isolated CI runners or containers. App or MCP calls marked destructive still require approval. NVIDIA gives every employee an agent VM with read-only production access.

  5. Review Codex Cloud on its own

    What can a cloud task reach, and which secrets does it hold?

    Look forCloud environments do not inherit local device policy, MDM settings, or local network access. Each environment sets its own internet access and network secrets, and saving a network secret adds its domains to restricted internet access. An allowed domain in Agent Security does not override a restriction in the environment's settings.

  6. Match sign-in to data policy

    Which data terms apply to each engineer's Codex usage?

    Look forChatGPT sign-in applies workspace RBAC and Enterprise retention and residency settings. An API key applies the API organization's retention and data-sharing settings instead. GPT-6 Astra runs with safety monitoring that can pause a task. Under zero data retention or non-US data residency, a paused task ends without findings or a resume option.

Questions to ask vendors

  1. Which of our requirements are enforced on client versions older than 0.138.0?
  2. Which traffic sits outside the command network proxy in our deployment, and which control governs each?
  3. Who can view or change network secrets saved to a shared cloud environment?
  4. Compliance API records do not cover every local action, so which local telemetry and hook logs do we collect beside them?

Red flags

  • Full access or --yolo on laptops that hold production credentials.
  • Cloud environments with unrestricted internet access and production secrets.
  • The retired untrusted approval policy still in managed defaults or startup scripts.
  • MCP servers enabled with no allowlist.

Products in this piece

Sources

Official documentation
7
Public source
2
  1. Codex docs: Agent approvals & securityOfficial documentationlearn.chatgpt.com
  2. Codex docs: SandboxingOfficial documentationlearn.chatgpt.com
  3. Codex docs: Managed configurationOfficial documentationlearn.chatgpt.com
  4. Codex docs: Non-interactive modeOfficial documentationlearn.chatgpt.com
  5. Codex docs: Cloud environmentsOfficial documentationlearn.chatgpt.com
  6. Codex docs: AuthenticationOfficial documentationlearn.chatgpt.com
  7. Codex docs: Admin rollout guideOfficial documentationlearn.chatgpt.com
  8. Alexander Stolle, XING: Rolling Out Codex, Agentic Conf Hamburg talk (recorded Mar 22, 2026)Public sourceyoutube.com
  9. Justin Boitano, NVIDIA Blog: NVIDIA puts GPT-5.5 Codex to work (published Apr 23, 2026)Public sourceblogs.nvidia.com