Skip to content

Fix Windows credential ACLs from PowerShell 7 - #42

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

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

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

Dapier sign-in from a PowerShell 7 host saved the session and then failed while applying owner-only Windows file permissions. The Python child inherited PowerShell 7 module paths, causing Windows PowerShell to load an incompatible Security module.

Load the Security module from the invoked shell's own PSHOME before applying or inspecting ACLs. Add a regression with an incompatible module ahead of the built-ins, and run credential privacy tests on Windows CI. The shared-file fixture edits only the DACL so it needs no audit privileges.

Validation: all three credential ACL tests pass on the affected Windows desktop, including the incompatible-module regression; no credential values are read or emitted.

@alexeygrigorev
alexeygrigorev merged commit c3c55fb into main Nov 6, 2026
14 checks passed
@alexeygrigorev
alexeygrigorev deleted the codex/windows-acl-powershell branch November 6, 2026 09:23
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