Bug: Codex seats can write hive/bin (no way to make it read-only); suggest a named Codex permission profile
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start at the Codex seat spawn options (autoModeFlag/autoFlag) and codexWritableRootsToml, then trace how per-seat .codex/config.toml is generated. Check both regular and temp/worker seats. Done means Codex seats can write to the configured hive paths while hive/bin stays read-only, with the named permission profile selected without -s.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version: Munder Difflin 0.5.7 (macOS, Apple Silicon), Codex CLI 0.163.0
What happens
Codex agents (seats) can write to everything under <harnessHome>/hive/, including hive/bin/. Files in hive/bin/ (e.g. hive-node, the hook scripts) are executed by things that run outside the agent sandbox (hooks, background services). So any Codex seat can replace an executable that later runs unsandboxed.
Claude Code seats can be fenced off with sandbox.filesystem.denyWrite (plus an Edit(...) deny rule). There is no equivalent for Codex seats, because the generated config only uses the legacy sandbox.
Evidence
- The generated per-seat
<agent>/.codex/config.tomlhas[sandbox_workspace_write].writable_rootsincluding the project, the agent folder, the entire hive, and the palace. No named permission profile. - Seats are spawned with
-a never -s workspace-write(autoModeFlag/autoFlag), andcodexWritableRootsTomlonly emits legacywritable_roots. - Retest from a Codex seat (2026-10-24):
open(O_CREAT|O_EXCL)onhive/bin/.probesucceeded, then unlinked. Write allowed.
Expected
A way to keep hive/bin (and other app-owned executable paths) read-only for Codex seats while the rest of the hive stays writable.
Suggested fix (supported by Codex 0.163.0)
Emit a named permission profile instead of the legacy sandbox, and select it without -s:
approval_policy = "never"
default_permissions = "hive_guarded"
[permissions.hive_guarded]
extends = ":workspace"
[permissions.hive_guarded.filesystem]
"<project>" = "write"
"<harnessHome>/hive" = "write"
"<harnessHome>/hive/bin" = "read"
"<harnessHome>/palace" = "write"
Drop sandbox_mode / [sandbox_workspace_write] for that mode (they should not be mixed with a named profile), keep -a never, and omit -s workspace-write. References: Codex config schema and permissions compiler at rust-v0.163.0 (codex-rs/core/config.schema.json, codex-rs/core/src/config/permissions.rs), and https://developers.openai.com/codex/config-reference/.
Ideally the read-only list is configurable (some users protect more app-owned paths), and temp/worker Codex seats get the same profile.
Workaround we use for now
A file-hash watcher on hive/bin that alerts on any change. Detection only, not prevention.
Related: #687, #688 (other requests about the generated seat sandbox settings).
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.5k
- Forks
- 1.2k
- Merge medio
- 12 h 44 min
- PR fusionados (30 d)
- 65
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de HarnessMD/munder-difflin
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
HarnessMD/munder-difflin#793 ·
Los mantenedores suelen responder en 1 día
-
Monitor dispatch input is too small to send messagesPosiblemente ocupada @rajpreetcodes la tomó hace 17 días. Abiertobug os:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
HarnessMD/munder-difflin#720 ·
Los mantenedores suelen responder en 1 día
-
JetBrains Junie CLIAbiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
HarnessMD/munder-difflin#510 ·
Los mantenedores suelen responder en 1 día
-
Ask Me counter counts down as questions are answered (5/5 to 1/5), which reads as questions disappearingQuizá libre de nuevo @xiechimon la tomó hace 44 días y no hay ningún pull request abierto. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
HarnessMD/munder-difflin#267 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug os:windows
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
HarnessMD/munder-difflin#800 ·
Los mantenedores suelen responder en 1 día
Todos los issues de HarnessMD/munder-difflin
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
CopilotKit/openmuse#215 ·
Los mantenedores suelen responder en 3 días
-
b:minor bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
software-mansion/argent#1698 ·
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 comentario ·
Los mantenedores suelen responder en 1 día