Skip to content

[test] Read the real ACL back on Windows - #807

Open
ok wants to merge 1 commit into
mainfrom
test-windows-acl-readback
Open

ok wants to merge 1 commit into
mainfrom
test-windows-acl-readback

Conversation

@ok

@ok ok commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What & why

On Windows the owner-only checks for config.json and the relay vault cannot use file modes; their privacy rests on the ACL that hardenStorageDirs sets on the user data folder. Until now only its arguments were tested. This test runs the real step on a temp folder and reads the ACL back: inheritance cut, only this account and SYSTEM, inherited by every file and folder, no entry for Everyone, Users or Authenticated Users.

Coverage

Unit, Windows only; skipped elsewhere. It runs in CI once the Windows job of #806 is on main.

Ran locally

On a Windows 11 machine: 1/1 tests, 48/48 asserts pass. No UI change.

Windows has no file mode, so what keeps config.json and the relay
vault private is the ACL on the user data folder. The test runs the
real step on a temp folder and checks that only this account and
SYSTEM have access, on the folder and everything in it.

This branch has not been deployed

No deployments
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