Skip to content

fix(codex): diagnose and document container sandbox restrictions - #1272

Open
Edd88-pixel wants to merge 2 commits into
coder:mainfrom
Edd88-pixel:eddy/codex-container-sandbox
Open

Edd88-pixel wants to merge 2 commits into
coder:mainfrom
Edd88-pixel:eddy/codex-container-sandbox

Conversation

@Edd88-pixel

@Edd88-pixel Edd88-pixel commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Installing bubblewrap does not ensure a container permits sandbox setup. In the reproduced Docker configuration, seccomp blocks user namespace creation and AppArmor blocks the mounts needed by bubblewrap. The module cannot change those policies from inside the workspace.

Changes

  • Probe Linux user namespace creation and a read-only mount, logging the original failure as a non-fatal warning.
  • Add an opt-in Docker configuration example with seccomp/AppArmor profiles, diagnosis steps, and isolation checks. It requires a non-root container, all capabilities dropped, and no-new-privileges.
  • Cover missing, working, and blocked bubblewrap, including unmanaged configuration and the macOS skip; bump the module to 5.5.2.

Type of Change

  • Bug fix
  • Documentation

Module Information

Path: registry/coder-labs/modules/codex
New version: 5.5.2
Breaking change: No

Validation

  • bun test registry/coder-labs/modules/codex/main.test.ts: 46 passed, 0 failed (414 assertions).
  • terraform test -no-color in registry/coder-labs/modules/codex: 20 passed, 0 failed.

Testing & Validation

  • Tests pass
  • Code formatted
  • Changes tested locally

Related Issues

Fixes #1266

REG-143

@Edd88-pixel
Edd88-pixel marked this pull request as ready for review November 19, 2026 18:00
@Edd88-pixel
Edd88-pixel requested a review from a team November 19, 2026 18:00
@Edd88-pixel
Edd88-pixel requested review from 35C4n0r and removed request for jdomeracki-coder November 19, 2026 18:00

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codex: sandbox cannot create namespaces in a container with bubblewrap installed

1 participant