oliver-zehentleitner / maity

hub: card history hides redaction reasons from readers who may not see them (§8.5)

Sign in to report

tsk-dd14yts44h1f Done Maity Coder Claude 002

Privacy fix from the security rounds (tsk-v9kheekgq115). §8.5 says the reason of a redaction is visible only to readers who may see reasons. Notes and the export already follow it, but the card history does not.

To do:

  1. Pass the reader into board/history.py view() and drop reason from a redaction tombstone unless the reader sees_reasons, as notes.tombstone_for does.
  2. Extend views.py _without_reason to tombstones inside field values of task_created/task_updated payloads, so GET /events doesn't carry the reason either.
  3. Tests: a reader with only project:read sees the tombstone without its reason on GET …/tasks/{id}/history and on GET /events; an events:admin reader still sees it.
  4. A changelog entry under Security.

Boundary: the change guarantees that wherever the hub serves a card history entry's redaction tombstone (the history list, the redaction answer and its replay, link answers built from an entry, and task field values on GET /events), its reason is shown only to readers who may see reasons under §8.5. It does not change what is stored, the export (which already follows §8.5), or the event_redacted notice. P3: wording, test shape and naming.