fix(core): DPAPI keyring works when started from PowerShell 7 #18

Merged
james.maes merged 1 commits from fix/dpapi-psmodulepath into main 2026-11-08 14:03:20 +00:00
1 Commits
Author SHA1 Message Date
james.maesandClaude Opus 5.5 1c54e7fae0 fix(core): DPAPI keyring works when started from PowerShell 7
node / node (push) Successful in 44s
build / node (push) Successful in 44s
Started from pwsh 7, the child Windows PowerShell 5.1 inherits PowerShell 7's
PSModulePath and cannot load Microsoft.PowerShell.Security, so
ConvertTo-SecureString fails and every DPAPI set/get reports "Windows
credential protection failed". The release workflow's Windows lane (steps in
pwsh) hit it in the existing DPAPI test. The keyring now spawns PowerShell
without PSModulePath; each shell computes its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 08:01:58 -06:00