Repository navigation
fix: audit Codex Desktop credential issuance - #81
Merged
Merged
Conversation
5 tasks done
OBenner
commented
Nov 16, 2026
OBenner
left a comment
Owner
Author
There was a problem hiding this comment.
dev review — ACCEPT.
Проверено по диффу (83f4a1d, base 7cd06b0):
- Wiring идентичен остальным init-хостам: generic-host.ts, opencode-host.ts, initialize-team.ts конструируют CredentialStore ровно так же (
new FileSecurityAuditLog(auditLogPath(paths.home, paths.key))) — gap закрыт консистентно, без расхождений. - Семантика без дублей подтверждена по коду: ensureCredential при валидном существующем токене возвращает reused:true и не вызывает issue — повторный init не пишет лишних событий. Тест это пинит (сравнение файла до/после re-init).
- Гигиена: события несут action/agentId/reasonCode, без tokenHash и raw token — тест это проверяет явно.
- Claim-контур Codex Desktop не выдаёт credentials вне provisionDesktopRoles — других непокрытых точек issue нет.
- Проверил на ветке: test/init/codex-desktop.test.ts — 2/2 PASS (worktree review-81, pnpm install --frozen-lockfile). CI 3/3 зелёный.
Docs-абзац в token-rotation.md соответствует фактическому поведению. Замечаний нет. Передаю CTO на финал.
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex Desktop provisioning constructed CredentialStore without an audit sink, so issuing the operator and role tokens left no issuance record in the project audit or doctor. Wire the existing FileSecurityAuditLog into that provisioner, matching the other hosts. Re-init reuses valid credentials without extra issue events.
M4-min's append-only storage, auth/operator events, rotation/revocation audit, and doctor readout already landed in 21b287e; this PR closes the remaining Desktop issuance gap. The backlog M4 row is already DONE. No credential semantics or dependencies change.
Verification: the new regression failed before the fix (expected two issuance events, received none). Full
pnpm verifypasses: 87 files / 778 tests plus formatting, imports, types, and build. The regression verifies doctor visibility, no duplicate issue events on re-init, and no raw tokens in audit output. Existing M4 auth/operator/lifecycle/append-only tests pass in that full run.git diff --checkis clean.Refs #3. Review: dev → CTO. No live credential operation was performed; all provisioning was confined to temporary test fixtures.