Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7bbf00bc6a635a6958071f2114c4a24bde2d514a74d70d88549710b6de67e91b
Ticket: 8a2f7bf96d312c610bf3c34798329df1c17ef30d
Repository avatars: let a project upload an icon
User & Date: dmestas on 2026-08-18 19:22:21
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    Forgejo shows a per-repository icon. quarry renders initials, which is fine as a default but should not be the only option.
    
    The question this raises is where the bytes live, and 0001 has an answer that has to be respected: §11 says derived data is wipeable and rebuildable, and an uploaded image is NOT derived — it cannot be reconstructed from the store. So it may not sit in the index, which is disposable by design.
    
    Two candidates:
    
    - **A blob table in the forge OLTP**, beside accounts and the repo registry. That database is already the authoritative non-DAG state and already carries things a wipe must not destroy. Small images (cap at, say, 256 KiB, and re-encode server-side to strip metadata) are a reasonable fit, and it inherits whatever backup story the OLTP has.
    - **The repository itself**, as an unversioned file. That makes the icon travel with a clone and puts it under the store rather than beside it — but zit#e77c25c (unversioned files) is not built, so this is blocked on that.
    
    The first is available today and is the smaller change. Worth doing after teams, since an org would want one too.
    
    Whichever is chosen: re-encode rather than store what was uploaded, serve from a path that is content-addressed so it caches immutably like the archives do, and never serve the original filename or content type back.
    
  3. severity changed to: "Minor"
  4. status changed to: "Open"
  5. title changed to: "Repository avatars: let a project upload an icon"
  6. type changed to: "Feature_Request"