Skip to content

handle windows keystore permissions honestly - #61

Merged
Kunal-Somani merged 1 commit into
mainfrom
feat/windows-keystore
Jul 23, 2026
Merged

handle windows keystore permissions honestly#61
Kunal-Somani merged 1 commit into
mainfrom
feat/windows-keystore

Conversation

@Kunal-Somani

Copy link
Copy Markdown
Owner

On Windows, os.chmod(0o600) is a near-no-op. This change detects the platform and takes the appropriate action:

  • Windows: attempts to restrict via icacls, logs a clear warning if it fails
  • Non-Windows: chmod(0o600) as before

Extracted into a _restrict_permissions() helper called from both _ensure_config() and _write() to avoid duplicating the branching logic.

Verified: 94/94 tests, ruff + mypy clean.

@Kunal-Somani
Kunal-Somani merged commit 1307f3d into main Jul 23, 2026
12 checks passed
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