Skip to content

Allow list for commands instead of danger-full-access + deny list #12716

Closed as not planned

Description

@mycatnamedweb

What variant of Codex are you using?

CLI

What feature would you like to see?

Currently I have to use Codex with full access and provide a deny list of commands instead the default rules inside the .codex folder. It would be much better from a corporate adoption perspective if instead I could provide a whitelist instead, so that every other command is blocked by default. Much needed in highly regulated environments.

Additional information

No response

Activity

  1. added
    enhancement
    on Feb 24, 2026
  2. changed the title [-]Allow list for commands instead of danger-full-access[/-] [+]Allow list for commands instead of danger-full-access + deny list[/+] on Feb 24, 2026
  3. added
    CLI
    sandbox
    on Feb 24, 2026
  4. etraut-openai commented on Feb 24, 2026

    @etraut-openai
    Contributor

    What you're describing is possible today with rules. You can enable the sandbox to restrict writes only to your project and define rules to whitelist specific tool calls so they run outside of the sandbox. You can also use cloud-managed requirements to enforce rules for users across the organization.

  5. mycatnamedweb commented on Feb 26, 2026

    @mycatnamedweb
    Author

    Our environment uses RHEL8 - Landlock is unavailable, so Codex falls back to danger-full-access. Because of that, we rely heavily on strict rules + web search disabled to keep execution constrained.

    So the issue/improvement request is that you cannot use an allow list (instead of a deny list) while running in danger-full-access

  6. etraut-openai commented on Apr 3, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so closing.

  7. muddi900 commented on May 4, 2026

    @muddi900

    This is the biggest issue stopping me from switching to Codex from Claude Code. I think this should be considered.

  8. etraut-openai commented on May 4, 2026

    @etraut-openai
    Contributor

    @muddi900, please take a look at the rules configuration mechanism. If that doesn't meet your needs, please open a new feature request. We generally prioritize feature requests based on community feedback (upvotes).

  9. locked as resolved and limited conversation to collaborators on May 4, 2026
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

    CLIenhancementsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions