You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow list for commands instead of danger-full-access + deny list #12716
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.
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
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.
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
@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).
Activity
[-]Allow list for commands instead of danger-full-access[/-][+]Allow list for commands instead of danger-full-access + deny list[/+]etraut-openai commentedon Feb 24, 2026
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.
mycatnamedweb commentedon Feb 26, 2026
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
etraut-openai commentedon Apr 3, 2026
This feature request hasn't received enough upvotes, so closing.
muddi900 commentedon May 4, 2026
This is the biggest issue stopping me from switching to Codex from Claude Code. I think this should be considered.
etraut-openai commentedon May 4, 2026
@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).