You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: owner-only DACL for created data directory and more broad SIDs #1751
On Windows, a data directory that the app creates itself is accessible to its owner only, and further broad principals are treated as untrusted.
Context
Follow-up of #1717 (PR #1734): a newly created data directory on Windows inherits the parent's ACL and is then checked (crates/persistence-sqlite/src/paths.rs:315-320); on Linux/macOS the leaf is 0700. The broad-principal list in data_dir_trust.rs:156-175 covers BUILTIN\Users, Guests and Anonymous only. Spec 0115 §4.1.
Requirements
When the app creates the data directory on Windows, set a protected DACL granting full control to the current user only (no inheritance).
Extend the broad-SID list with Everyone (S-1-1-0), Authenticated Users (S-1-5-11) and INTERACTIVE (S-1-5-4) if not already covered; verify each by test.
Update Spec 0115 and THREAT-MODEL.md wording accordingly.
Acceptance Criteria
A directory created by the app on Windows has a protected owner-only DACL (Windows test)
An existing directory granting modify rights to Everyone, Authenticated Users or INTERACTIVE is refused (pure-function tests)
Linux/macOS behaviour is unchanged
Spec, threat model and changelog fragment updated
Relevant automated tests pass
Technical Notes
Security-critical path. Windows code runs only in the Windows CI job.
Needs maintainer: The issue waits for #1733, but "blocked by" could not be set. Set it on the issue (Relationships), then remove needs-maintainer: The code this issue extends (data_dir_trust.rs and its tests, from #1717/PR #1734) was merged into release/0.8.0 only and is not on develop yet; the back-merge PR #1733 is still open. Nothing to attach the owner-only DACL and extra broad SIDs to until it lands.
Activity
smart-ssh-coder commentedon Dec 5, 2026
Needs maintainer: The issue waits for #1733, but "blocked by" could not be set. Set it on the issue (Relationships), then remove needs-maintainer: The code this issue extends (data_dir_trust.rs and its tests, from #1717/PR #1734) was merged into release/0.8.0 only and is not on develop yet; the back-merge PR #1733 is still open. Nothing to attach the owner-only DACL and extra broad SIDs to until it lands.