Area: apps/server
Version: current main at 45c0dff8ec33a023c79ccb4e06494309253d1c25
Codex shadow-home materialization treats only exact auth.json and models_cache.json as private. Other shared-home entries are symlinked into the shadow home, including auth-like filenames
Reproduction:
- Create disposable shared and shadow Codex homes
- Add mode-0600 fixtures auth-fixture-a.json, auth_fixture_b.json, and auth.json.bak to the shared home
- Add a mode-0600 auth.json fixture to the shadow home
- Run resolveCodexHomeLayout and materializeCodexShadowHome
- Inspect file types and targets with lstat and readlink
Actual result:
- The three shared auth-like fixtures become shadow-home symlinks
- The shadow's exact auth.json remains private
Expected result:
- Credential-like entries remain private to their owning home
- They are never linked into another shadow home
- Existing credential-like shadow symlinks fail closed
Suggested correction:
- Match names beginning with auth followed by end-of-name, dot, underscore, or hyphen
- Apply the predicate case-insensitively
- Keep author.json and normal session, config, skill, and cache entries shared
This establishes filesystem topology only. It does not claim Codex reads those files, uses their contents, or corrupts authentication
Fixtures only. No real credential file was read, hashed, copied, moved, renamed, or logged
Reproduced on Linux at 3b95e7831b with disposable mode-0600 shared/shadow homes, both through materialization and real dev-server startup. The three reported auth-like fixtures became symlinks; the shadow's
auth.jsonremained private.#23428 keeps auth-like entries private and rejects existing matching symlinks. Two regression tests fail before the fix; all 10 focused tests pass afterward. The runtime evidence also checks preserved files, normal sharing, and rejection before provider launch.