Skip to content
quarry History Of Ticket 8a2f7bf96d
Login

History Of Ticket 8a2f7bf96d

Artifacts Associated With Ticket 8a2f7bf96d

  1. Ticket change [7bbf00bc6a] (rid 885) by dmestas on 2026-08-18 19:22:21:

    1. Untracked field cmimetype: "text/x-markdown"
    2. comment initialized 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 initialized to: "Minor"
    4. status initialized to: "Open"
    5. title initialized to: "Repository avatars: let a project upload an icon"
    6. type initialized to: "Feature_Request"
  2. Ticket change [3e4d5c6097] (rid 1069) by dmestas on 2026-08-19 11:04:31:

    1. priority changed to: "Low"
    2. type changed to: "Feature_Request"
  3. Ticket change [701e775986] (rid 1120) by dmestas on 2026-08-19 12:10:46:

    1. subsystem changed to: "web"
  4. Ticket change [8e014fc972] (rid 8968) by zeitgeist on 2026-09-16 05:40:52:

    1. icomment:
      Built, 2026-09-16, with a different answer to the storage question than
      either candidate above - and teams got it too, at dmestas's ask.
      
      WHERE THE BYTES LIVE: the forge's own bucket (oltp.ForgeBucket), which
      did not exist when this was written. It arrived so attachments would
      work on a forge whose users have no storage account of their own, and
      an uploaded mark is one more small object in a bucket the operator
      already runs and already pays for.
      
      That respects RFC 0001 §11 the same way candidate A does - the image is
      not derived, so it is not in the index - without putting binary in the
      OLTP, which is a poor home for bytes served on every listing. Candidate
      B stays blocked on unversioned files and is still the nicer answer the
      day that lands.
      
      The privacy objection RFC 0018 raised against avatars is kept by
      construction rather than waived: the FORGE serves the bytes and the
      page never links the bucket. An img pointed at R2 would have broken
      "the interface loads nothing from another host" for every reader of
      every page a mark appears on.
      
      What shipped:
      - one table keyed by (kind, name), because a mark is a mark; the kind
        is half the key since a team and a repository may hold the same name
      - avatar.set / avatar.get / avatar.clear, gated on `a` on the
        repository or ownership of the team - the same authority that
        already decides the name and description
      - the type read from the BYTES, never from what the upload claimed;
        SVG refused, since it is a document that can carry script and would
        be served from our own origin; RIFF checked for the WEBP form
      - the digest in the KEY and in the URL, so replacing a mark writes a
        new object and arrives at a new address; served immutable with a 304
        on revalidation
      - an Image section on both settings pages; with no storage bound it
        says WHY rather than offering a control that refuses
      - 512 KiB, and no re-encode: the ticket suggested stripping metadata
        server-side, which needs an image decoder in the request path. Worth
        its own ticket if wanted - the cap and the type check are what keep
        this safe, not the re-encode.
      
      RFC 0018's "An uploaded avatar" is struck through with the reversal
      recorded underneath; that section asked to read as a decision.
      
      Landed across 2daaaf849fee, 8ce04ede106d and b31bcd1ad97c.
      
      NOT closed yet: nothing is bound at /fleet/settings on zeitforge, so
      no image has been uploaded end to end. Binding also could not have
      worked until today - BindBucket refused the empty name the forge's own
      binding uses, which is in b31bcd1ad97c.
      
    2. mimetype: "text/x-markdown"
  5. Ticket change [538c43ee2d] (rid 9423) by zeitgeist on 2026-09-16 22:53:10:

    1. icomment:
      Done — repository avatars upload, serve and clear end to end.
      
      Left open deliberately until something had actually gone through. It has: a PNG through the live route on this forge came back 200, image/png, 70 bytes, and the clear took it straight back out.
      
      What landed since this ticket was filed: the (kind, name) avatar table serving repo, team and user marks; sniffing by magic bytes with SVG refused; the forge's own bucket (BindBucket no longer refuses an empty repo); paste-to-upload including a phone path, since iOS only fires paste into an editable target; and a preview with Undo before anything is saved.
      
      Two fixes on top, both found in use rather than in review: oneof=repo|team was written with a SPACE, so every upload of either kind was refused; and the editor trusted `input.files = dt.files`, which can be ignored silently — the preview drew, the input stayed empty, and the required-but-hidden input made the browser refuse to submit with no message. That was "upload gates and never works".
      
      quarry's own repository wears the DAG-node logo rather than an identicon; a team called quarry does not.
      
    2. mimetype: "text/x-markdown"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  6. Ticket change [f020590f17] (rid 12458) by zeitgeist on 2026-09-24 00:52:51:

    1. Untracked field number: "23"