Files
alzeo/dashboard
Hasan BasbunarandClaude Opus 5.5 9550a202f1 relay: scrub every spelling of /api/credential and every 2xx answer of a secret route
The code review of v1.56.0 found two ways around the credential scrub of the Agent tab's relay.
secret_keys_for() read the raw path while is_secret_path() read the normalized one, so
/api//credential, /./api/credential or /api/%63redential were scrubbed without "value", the
stored credential itself. And the scrub ran on 200 only: a 201 or 206 from a secret route
went to the browser as it came. Both now read one normalized_target(), and every 2xx answer
with a body is scrubbed. Three tests, red on the old code (11 failures), green now (66/66).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:51:35 +01:00
..