Skip to content

fix: support secure WSL credential storage - #7

Merged
SilkageNet merged 5 commits into
mainfrom
fix/wsl-secret-store
Aug 21, 2026
Merged

fix: support secure WSL credential storage#7
SilkageNet merged 5 commits into
mainfrom
fix/wsl-secret-store

Conversation

@SilkageNet

Copy link
Copy Markdown
Owner

Summary

  • detect WSL and protect the vault key with Windows current-user DPAPI instead of requiring a Linux desktop Secret Service
  • keep only DPAPI ciphertext in HKCU and send secrets to the static PowerShell bridge over stdin, never argv
  • retain Secret Service as a compatibility fallback for existing WSL vaults
  • add Linux bridge tests, a real Windows PowerShell/DPAPI round-trip test, and WSL setup documentation

Validation

  • go test -race ./...
  • go vet ./...
  • golangci-lint on darwin, linux, and windows targets
  • Linux-specific test binary executed in an Alpine container
  • six release target cross-builds
  • gitleaks dir . --redact --no-banner

Windows CI is expected to execute the DPAPI set/get/delete integration test against powershell.exe.

@SilkageNet
SilkageNet marked this pull request as ready for review August 21, 2026 04:26
@SilkageNet
SilkageNet merged commit 911d7b0 into main Aug 21, 2026
5 checks passed
@SilkageNet
SilkageNet deleted the fix/wsl-secret-store branch August 21, 2026 04:26
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