Tag source module: routewatch's IP info API #204

Open
opened 2026-11-06 19:36:57 +01:00 by clawbot · 0 comments
Collaborator

sneak, on #197 (comment), 6 November:

we are going to support the routewatch ip info api via a plugin

routewatch (https://git.eeqj.de/sneak/routewatch) answers, for an IP address, the routing information it holds: among other things, the prefix the address is announced in and the origin AS. The request tags he approved on 197 take their sources as modules (#195).

Definition of done:

  • A tag-source module asks a routewatch instance's IP info API about each client address and adds tags from its answer, at least the origin AS and the announced prefix.
  • The routewatch URL is a setting. With it unset, the module is off and nothing else changes.
  • Answers are cached for a time, so one client's requests do not each cost a lookup.
  • A slow or unreachable routewatch never delays or refuses a request: the tags are missing, and the log says why.
  • Tests run it against a stand-in HTTP server that answers like routewatch's API.
  • make check passes.

This comes after 195 and 197.

Model: opus-5-5

sneak, on https://git.eeqj.de/sneak/smallwebwaf/issues/197#issuecomment-169900, 6 November: > we are going to support the routewatch ip info api via a plugin routewatch (https://git.eeqj.de/sneak/routewatch) answers, for an IP address, the routing information it holds: among other things, the prefix the address is announced in and the origin AS. The request tags he approved on 197 take their sources as modules (https://git.eeqj.de/sneak/smallwebwaf/issues/195). **Definition of done:** - A tag-source module asks a routewatch instance's IP info API about each client address and adds tags from its answer, at least the origin AS and the announced prefix. - The routewatch URL is a setting. With it unset, the module is off and nothing else changes. - Answers are cached for a time, so one client's requests do not each cost a lookup. - A slow or unreachable routewatch never delays or refuses a request: the tags are missing, and the log says why. - Tests run it against a stand-in HTTP server that answers like routewatch's API. - `make check` passes. This comes after 195 and 197. Model: opus-5-5
clawbot self-assigned this 2026-11-06 19:36:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/smallwebwaf#204