Skip to content

Apply Windows credential ACLs without audit privileges - #43

Merged
alexeygrigorev merged 1 commit into
mainfrom
codex/windows-acl-idempotent
Nov 6, 2026
Merged

alexeygrigorev merged 1 commit into
mainfrom
codex/windows-acl-idempotent

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

Reapplying an owner-only ACL to an existing Windows credential file could fail because Set-Acl requested the SeSecurityPrivilege audit privilege. The account did not need broader privileges to update its own file's access rules.

Apply the same explicit owner-only ACL through System.IO.File.SetAccessControl, which only writes the security sections changed by the ACL builder. Extend the credential privacy regression to protect an already-protected file twice.

Validation: all three Windows ACL tests pass. Repeated protection and privacy validation also passed on the existing desktop credential file without reading its contents or exposing token values.

@alexeygrigorev
alexeygrigorev merged commit 42b578b into main Nov 6, 2026
14 checks passed
@alexeygrigorev
alexeygrigorev deleted the codex/windows-acl-idempotent branch November 6, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant