Skip to content

Codex execution environment cannot use sudo wrapper to reload Caddy #726

Description

@defangdevs

Reproduction

On an agent-box Codex session, follow the documented self-serve vhost flow:

  1. Write a valid ~/sites/*.caddy snippet.
  2. Run sudo /run/current-system/sw/bin/systemctl reload caddy.service.

Both sudo and /run/wrappers/bin/sudo fail before policy evaluation with:

sudo: /nix/store/...-sudo-.../bin/sudo must be owned by uid 0 and have the setuid bit set

/run/wrappers/bin/sudo is present and mode -r-s--x--x, but appears as
nobody:nogroup within the Codex execution environment. This prevents the
documented Caddy reload, even after the vhost snippet was successfully written.

Expected

Codex should be able to use the existing narrowly scoped sudo rule to reload
Caddy, or agent-box should provide an equivalent safe reload path that works in
Codex's execution sandbox.

Environment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions