[WRONG BRANCH] fix(win): fail-closed on config directory ACL hardening errors - #55
[WRONG BRANCH] fix(win): fail-closed on config directory ACL hardening errors#55luvs01 wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
⏳ DRAFT
What to do
Its title has been prefixed with |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughWindows configuration-directory ACL hardening now fails closed. ChangesConfiguration ACL hardening
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Motivation
Description
hardenSecretDir(..., { required: true })failures inconfigMutationDatabasePath()so hardening errors abort before the mutation DB or secret files are created.OPENCODEX_HOME.tests/config.test.tsto assert thatsaveConfig()throws and does not createconfig.jsonwhen required directory hardening fails.Testing
bun test tests/config.test.ts -t "saveConfig fails closed when config directory hardening fails on win32"which passed.bun x tsc --noEmit(viabun run typecheck) which passed.bun run privacy:scanwhich passed.bun run test; the long-running suite encountered an unrelated cross-process test timeout and was stopped, so please re-run CI for full-suite verification.Codex Task
Summary by CodeRabbit