[WRONG BRANCH] fix(windows): always remove secret ACL inheritance - #388
[WRONG BRANCH] fix(windows): always remove secret ACL inheritance#388luvs01 wants to merge 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
Motivation
icacls <path>textual ACE output and could skip the destructive/inheritance:rstep, allowing later ancestor-inherited ACEs to expose secrets.Description
icaclsstdout to decide the object was already compliant and could be skipped. The parser and the sync/async shortcut checks were deleted so the hardener no longer treats an owner-only textual ACE listing as proof of protection. (src/lib/windows-secret-acl.ts)/inheritance:rto disable inheritance, then remove broad SIDs with/remove:g(the mutation flow inrunIcaclsis unchanged)./grant:r,/inheritance:r, and/remove:gsteps when required; renamed/adjusted tests to reflect the hardened behavior. (tests/windows-secret-acl.test.ts)Testing
bun test tests/windows-secret-acl.test.ts, which passed (Windows ACL-focused cases green).bun run typecheck, which completed successfully.bun run privacy:scan, which passed.bun run test; the Windows ACL regression remained green but several unrelated integration tests timed out or failed in this environment (these failures are unrelated to the ACL change).Codex Task