mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
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>