burr icon indicating copy to clipboard operation
burr copied to clipboard

Improve input validation in LocalBackend and default server binding

Open andreahlert opened this issue 6 months ago • 0 comments

This change tightens input handling in the local tracking backend and updates the default dev server configuration.

Changes:

  • Validates project_id and app_id identifiers with a strict character allowlist
  • Adds a _safe_join() helper that resolves and bounds-checks paths against the configured base directory
  • Returns HTTP 400 for invalid identifiers or out-of-bounds paths
  • Defaults the tracking server to bind on 127.0.0.1 instead of 0.0.0.0

Includes regression tests for identifier and path validation.

andreahlert avatar Jun 02 '26 10:06 andreahlert