Files
hermes-agent/agent
Maciej Lisiewski c1405617cd fix(security): keep the BlueBubbles password out of gateway logs (#155459)
* fix(security): keep the BlueBubbles password out of gateway logs

Every BlueBubbles request carries the server password as ?password=.
Two paths wrote it to agent.log in clear:

- Inbound: on the shared listener that serves multiplexed profiles,
  aiohttp's default access logger records the full request target; the
  adapter's access_log=None only applies when it binds its own runner.
  RedactingFormatter now masks credential query params on aiohttp.access
  records (the strict URL pass, which ordinary logs keep off so OAuth /
  magic-link URLs survive).
- Outbound: httpx.HTTPStatusError text embeds the request URL. The
  adapter's log lines and SendResult.error now go through one helper that
  applies redact_url_credentials.

Fixes #143550
Fixes #146420

* test(security): pin every BlueBubbles REST error path and the access-line gate

Each remaining _safe_error site (register, unregister, attachment upload,
attachment download) now has a real httpx 401 test, and a RedactingFormatter
test pins that only aiohttp.access records get the strict URL pass.

Refs #143550

Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>

---------

Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
2026-11-14 12:48:24 +01:00
..
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:28:23 +02:00
2026-10-20 21:04:30 -04:00
2026-10-20 21:04:30 -04:00
2026-10-21 23:05:11 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-20 22:18:49 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-21 23:05:11 -04:00