Files
romm/backend/endpoints
Sam Dornan 24d990f21a fix(hltb): renew rejected HLTB sessions instead of failing the scan
HLTB sessions are short-lived and pinned to the requesting IP address and
user agent. The handler fetched one session at the start of a scan and never
renewed it, so once HLTB rejected it every remaining lookup failed for the
rest of the scan.

Retry with a renewed session on 403, and back off and retry on 429. Report
the actual cause instead of mapping every HTTP error to "check your internet
connection", which is now used only for genuine connect and timeout errors.

Also fixes two adjacent bugs:

- The honeypot key was written into the caller's payload dict in place. That
  key rotates with the session, so a renewal would leave the dead key in the
  body alongside the new one.
- heartbeat() sent no user agent. HLTB rejects requests without one, and the
  httpx default only happens to be accepted today.

initialize() is now async so the session can be renewed from the async
request path, and uses the shared context httpx client.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 12:48:59 -05:00
..
2026-03-08 14:51:28 -04:00
2026-03-15 11:25:39 -04:00
2026-06-21 17:42:25 -04:00
2026-07-23 14:44:56 -04:00
2025-12-07 16:34:22 -05:00
2026-08-01 14:52:55 -04:00
2026-08-01 14:49:58 -04:00
2026-07-01 08:58:00 -04:00