[WRONG BRANCH] fix(windows): fail closed on principal resolver errors - #256
[WRONG BRANCH] fix(windows): fail closed on principal resolver errors#256luvs01 wants to merge 1 commit into
Conversation
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
|
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 (3)
📝 WalkthroughWalkthroughThe change removes the Windows ARM64 PowerShell fallback. Principal lookup and ACL identity queries now require trusted ChangesTrusted PowerShell resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to The change removes an unsafe Windows PowerShell fallback and preserves fail-closed resolution behavior; no actionable merge-blocking risk remains beyond normal checks and review. 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
resolveTrustedWindowsPowerShellExe()as the authority.DEFAULT_WINDOWS_ARM64_POWERSHELLconstant and the resolution logic that returned it after arbitrary resolver failures.setTrustedWindowsSystemDirectoryResolverForTests.structure/02_config-and-codex-home.md) to state that the ACL operation fails closed when trusted system-directory resolution is unavailable.Testing
bun test tests/windows-user-principal.test.ts, which passed.bun run typecheck, which completed successfully.bun run privacy:scan, which passed.bun run test; the broader suite produced unrelated failures/timeouts (lab automation, outbound proxy, attribution, and management API tests) that are not caused by this focused change.Codex Task
Summary by CodeRabbit
Security
Bug Fixes