|
2026-09-24
| ||
| 00:52 | • Ticket [8518c09b21] Private tickets: honour is_private rather than indexing and ignoring it status still Fixed with 1 other change artifact: b2f23aa4c8 user: zeitgeist | |
|
2026-08-19
| ||
| 12:38 | • Fixed ticket [8518c09b21]. artifact: adc0a54741 user: dmestas | |
| 12:35 | • Fixed ticket [8518c09b21]. artifact: 9dc2291965 user: dmestas | |
| 12:11 | • Review ticket [8518c09b21]. artifact: 07d89e8c0f user: dmestas | |
| 12:11 | • Review ticket [8518c09b21]. artifact: ee62b789ad user: dmestas | |
| 12:10 | • Ticket [8518c09b21]: 1 change artifact: 04c0c885e2 user: dmestas | |
| 11:04 | • Ticket [8518c09b21]: 3 changes artifact: 64dd47ff48 user: dmestas | |
|
2026-08-18
| ||
| 21:07 | • New ticket [8518c09b21]. artifact: 744c1fea98 user: dmestas | |
Private tickets: honour is_private rather than indexing and ignoring it
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.
Fixed across two passes; this one closes it.
Already held (from the migration work): the list, the board, search
(dropped from the corpus, not filtered at query time), and the detail
page — TicketByPrefix answers not-found for a private ticket, so a
reader cannot even confirm it exists.
Fixed now:
- Timeline events. Every ticket change wrote an
eventrow — id, author, date on public display. The fold now applies the same rule as the search doc: going private deletes the ticket's event rows, going public RESTORES them from ticket_change. An open-time sweep scrubs indexes folded before events followed privacy (verified live: tcl's 33 private tickets, 0 leaked events, timeline clean). - The nav count now reads
ticket WHERE private = 0— a count that disagrees with the list it sits above is a confirmation leak. - The one-way door.
ticket.setresolved ids through the same filtered reader, so a private ticket was permanently uneditable — nobody could ever un-private one. Writes (token-gated) now resolve viaTicketByPrefixAll; reads keep the refusal. Erring toward private is only safe if un-privating stays possible. TicketPrivate(id)errs toward withholding: an unknown id answers private.
Known remainders, deliberately out of scope: attachment blobs remain hash-addressable if the hash is known from elsewhere (nothing public links them any more); contributor counts include private-ticket authors (names only). Both belong to #9561ac07b1's capability design.