patch

Session Secret Validation

An unusable SESSION_SECRET_KEY stops the server before it touches the database, with a message that says what to do about it

server · security · dashboard · fix

An unusable session secret stops the server at startup

The cookie master key is a 256-bit signing key followed by a 256-bit encryption key, so SESSION_SECRET_KEY has to be at least 64 bytes. A shorter one used to panic deep in startup, after the database was open, the migrations had run and the workers were up, with a message about key length and nothing about the variable that set it.

  • The key is built in SecurityConfig::from_env, before any I/O, so a bad secret stops the process there
  • The error names the length it received and the command that produces a valid one: openssl rand -hex 32
  • openssl rand -base64 32 gives 44 characters and is refused with that same message, rather than a panic
  • SecurityConfig has a hand-written Debug that redacts the secret, so it cannot reach a log line through the derived Debug on Config
  • A valid secret still builds the same key it always did, so existing sessions survive the upgrade

The docs no longer publish a working key as their example value, and explain that changing the key invalidates every existing session.

Fixes

  • Webhook and Slack URLs are parsed with URL and checked for protocol instead of prefix-matched, so https:// on its own no longer passes validation and reaches the save
  • Enter or Space on a waterfall collapse chevron expands the span. The row handler calls preventDefault, which is what dispatches a native button's click, so keyboard use selected the row and never expanded it
  • A span whose reported end precedes the start of the view window, reachable when an SDK's clock runs backwards mid-span, no longer draws a bar with negative width. Both ends are clamped to the track
  • The toast progress value is normalized once and used for the bar, for aria-valuenow and for the caption. A caller reporting 150 drew a full bar and announced "150 %" against a declared maximum of 100
  • The data-table column header shows press feedback again. It opens a popup, and Base UI swallows :active on those, so it looked inert until the panel appeared

Improvements

  • Biome enforces a cognitive complexity limit across the workspace. The 28 violations it found were cleared by lifting their logic into modules that are tested directly: trace summaries, alert credentials and routing, integration forms, event jump targets, project setup snippets, transaction payloads, waterfall geometry and data-table query parsing
  • Vitest resolves the @/ alias, so a unit test whose subject imports a value through it no longer fails as if a package were missing
  • CI, CodeQL, cargo-deny and CodeRabbit run on pull requests to any base branch. A branches filter matches the PR's base, so a stacked PR or one onto a long-lived feature branch merged with no checks at all

Open source under AGPL-3.0. No per-event pricing, no sampling you did not ask for.