Roaderly logo

Observability, security hardening, and image uploads on the server

Shipped
DM

Davide Marchetti

A foundational pass on the server side:

  • Observability: structured logging on all /api/db endpoints with request-id correlation, plus a per-route latency histogram surfaced in the dashboard.
  • Security hardening: rate limits on auth endpoints, stricter CORS, security headers (CSP, HSTS, X-Content-Type-Options) applied uniformly across all three apps.
  • Image uploads to R2: typed buffer-based upload helper with content-hashed object keys and a sharp-based optimisation pass before upload.

None of this is glamorous user-facing work but it is the floor everything else stands on.

April 23, 2026

Activity feed

  • Mateo Sanchez
    Mateo Sanchez

    Structured logging with request-id correlation is the bar I expect. Per-route latency histogram in the dashboard is the bonus that makes debugging incidents actually possible.

    April 23, 2026

    Replay