Windows: an index created by one account locks every other account out. Index files should inherit the project folder's ACL, not be owner-only #317
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#317
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Field setup (operator, 2026-10-05): two different Windows accounts, an admin account and a desktop user, work in the same project folder with the same code-index. When the admin account creates or rewrites
.code-index/index.db, the desktop account can no longer open it.Why v0.33.0 does not prevent it.
perms::restrict_to_owner(crates/indexer/src/perms.rs) puts a PROTECTED DACL on every index file. It grants full access to OWNER RIGHTS, SYSTEM and the token user's SID. That fixes the single-account case, where an elevated and a non-elevated session of the same user share a SID. For two accounts it shuts the second account out by construction. v0.33.0 turns the symptom into a permanentindex_unavailable_permissionrefusal with the repair (icacls <dir> /reset /T, or rename.code-index), but the lockout still happens.Rule: the index must be no more private than the project folder it was built from. Anyone who can read the source can read its index.
.code-index/should INHERIT the project folder's ACL. No protected owner-only DACL. That coversindex.db,-wal,-shm,daemon.*andlanguages.toml.Also check:
0600files in a folder shared by a group). Decide it explicitly: either keep it, and say so, or follow the folder's mode.doctorreports the condition.Tests:
index_access_denied_e2erefusal still holds when a folder genuinely denies the user.Target: v0.33.1, right after v0.33.0.