Skip to content

Implement handle-based reparse-safe filesystem authority #324

Done

Description

@morluto

Implement the native Node-API adapter that opens each authority-relevant path component with CreateFileW (FILE_FLAG_OPEN_REPARSE_POINT, FILE_FLAG_BACKUP_SEMANTICS), inspects attributes and reparse tags, and records stable volume/file identity.

Acceptance:

  • Rejects disallowed symlinks, junctions, mount points, and unknown reparse tags.
  • Supports NTFS and explicitly fails closed on unsupported filesystems.
  • Volume identity is canonical 16-hex; file identity is canonical lowercase hex of FILE_ID_INFO.
  • Requested-path mismatches and malformed observations return native_contract_mismatch.

Part of #289.

Activity

  1. added
    enhancement
    P1: high
    on Jul 20, 2026
  2. added
    area: domain
    on Oct 14, 2026
  3. morluto commented on Nov 24, 2026

    @morluto
    OwnerAuthor

    Closing as implemented: native/windows/src/filesystem.cc (openComponent, openFile, identity) opens every path component with CreateFileW (FILE_FLAG_OPEN_REPARSE_POINT | FILE_FLAG_BACKUP_SEMANTICS), rejects reparse points, restricts admission to local NTFS/ReFS volumes with FILE_PERSISTENT_ACLS, and records canonical 16-hex volumeSerial and 32-hex lowercase FILE_ID_INFO fileId. src/windows/WindowsNativeLoader.ts (windowsFileIdentitySchema and loadWindowsNativeAuthority) enforces these invariants at the inspection boundary (failureStage: "inspection").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: higharea: domainenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions