Commit Graph
2 Commits
Author SHA1 Message Date
clawbot c1c28204a1 Keep only a short, plain request ID; make others up at random
check / check (push) Failing after 2s
pixa's own RequestID middleware replaces chi's and the response-header
middleware. It keeps a request's own X-Request-Id only when it is at
most 64 letters, digits, '-', '_' or '.', so an over-long or odd value
is never sent back or upstream, and otherwise makes a random ID with
crypto/rand, which tells nothing about the host or how many requests
pixa served. It stores the ID under chi's RequestIDKey, where the
logging middleware, the handlers and the fetcher read it.

Model: opus-5-5
2026-10-04 09:44:47 +00:00
clawbot e00bf374cb Test that the upstream fetch and image log lines carry the request ID
A fetch must send the ID of the request it serves as X-Request-Id, and
the "upstream fetched", "image converted" and "image served" lines must
carry it as request_id, through either image route. newSignedHostServer
takes the logger its handlers and image service write to; its existing
callers pass a discarding one.

Model: opus-5-5
2026-10-04 08:40:15 +00:00