Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 744c1fea98ea5d260a83d02045f6b345bdbb8d1bee67694101d1e653b7e5cc29
Ticket: 8518c09b21af97c7f2d8cd6a0ce5e0fc452a5bc7
Private tickets: honour is_private rather than indexing and ignoring it
User & Date: dmestas on 2026-08-18 21:07:50
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    Fossil can mark a whole ticket private. Two repositories in the corpus carry the `is_private` field. quarry folds it like any other field and gives it no meaning — so a ticket its own tracker marked private is listed, searched, and rendered by quarry to anonymous readers.
    
    This is the same class of defect as the `private_contact` leak fixed in 3918395e, and larger: that one exposed a field, this one exposes an entire ticket.
    
    ## Verify first
    
    Before building anything, confirm what is actually in the served corpus:
    
        SELECT count(*) FROM ticket_field WHERE name = is_private AND value NOT IN (0, "")
    
    If the count is non-zero on a public store, this is a live leak and should be treated as urgent rather than as a feature. If it is zero everywhere, it is a correctness gap to close before someone mirrors a tracker that uses it.
    
    ## Shape
    
    1. Fold `is_private` into a column on the `ticket` table, not just a row in `ticket_field`, so it can be filtered in the same index walk as status.
    2. `ticket.list`, `ticket.get` and the FTS documents all exclude private tickets unless the caller may see them. Search matters as much as the list: a snippet leaks the content whether or not the ticket page is reachable.
    3. Reuse the capability from the field-level ticket rather than inventing a second mechanism.
    4. A private ticket a caller may not see must report NOT FOUND, never forbidden — the same rule `repoFor` already applies to private repositories, and for the same reason: a 403 confirms the ticket exists.
    
    ## Depends on
    
    The capability work, for the "unless entitled" half. The exclusion half depends on nothing and should land first: hiding them from everyone is correct today, exactly as with private_contact.
    
  3. severity changed to: "Important"
  4. status changed to: "Open"
  5. title changed to:
    Private tickets: honour is_private rather than indexing and ignoring it
    
  6. type changed to: "Feature_Request"