Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3851460da94df63f4562faadd3478d0888c8d7e6ac66f2857c99bb07ebc0b748
Ticket: b112b2055da8ee0ba7cfa156a2475481c3622702
Private repository cannot be cloned, synced or pushed by anyone, including its owner (G-41)
User & Date: zeitgeist on 2026-09-17 21:30:08
Changes

  1. icomment:
    Measured on prod at build 5833fef9a792, because I had wrongly believed this was fixed. It is not. The finding splits cleanly.
    
    THE SERVER SIDE WORKS. Against a freshly created private repository, the sync endpoint answers:
      anonymous, application/x-fossil  -> 404 (read gate refuses, correct)
      HTTP Basic as the owner          -> 413 (gate ADMITS, then rejects my junk body)
      public repository, anonymous     -> 413
    So SyncReadGate does let an identified caller read a private repository. That half is real.
    
    THE CLIENT CANNOT REACH IT. `zit clone https://[email protected]/r/<private>` with ZIT_PASSWORD set answers 404, the same as anonymous: zit does not send HTTP Basic on a clone or pull, and the sync protocol's login card is a PUSH credential, not a read one. So a private repository is unclonable in practice by everyone, which is what this ticket says, even though the gate would admit the right person if the request carried them.
    
    That makes this protocol-shaped rather than a gate bug, and it wants deciding rather than patching: either the read gate also accepts the login card (a read that authenticates the way a push does), or zit sends HTTP Basic when its remote carries a user, or private repositories are not syncable and this becomes a documentation change. The first two are not quarry's call alone.
    
    Left Open deliberately. Closing it on the strength of the server-side measurement would have been wrong, and I nearly did.
    
  2. mimetype: "text/x-markdown"