edge: a dedicated access log for blackbeard.observer, and deny hosting-provider networks #24

Closed
opened 2026-09-22 12:01:23 +00:00 by grenade · 0 comments
Owner

Why

The API is reachable by anything, and the only record of who uses it is oolon's shared access.log, whose main format carries neither $http_origin nor $host and mixes every vhost on the proxy.

Parsed 2026-09-12 → 2026-09-22 (blackbeard routes only: /v1/chains, /v1/ws, /v1/healthz):

referer requests
blackbeard.observer 22,128 REST (241 IPs)
none 20,280 REST
none 7,551 WebSocket
localhost:51xx (dev server) 11

No third-party site appears as a referer. The no-referer REST traffic is two headless pollers:

  • 37.187.143.115 (OVH, AS16276): no User-Agent, summary?window=day about once a minute, 17,833 requests. 88% of all no-referer REST.
  • 135.181.130.74 (Hetzner, AS24940): UA stardust-devops, series?window=six_hours every 10 minutes, 1,321 requests.

Two blind spots: browsers send no Referer on the WebSocket handshake, so another site's page opening /v1/ws looks exactly like our UI, and a page with Referrer-Policy: no-referrer looks like a script. Only Origin tells them apart, and it is not logged.

What

  1. A dedicated access log for the public vhost, one JSON line per request, carrying $http_origin and $host besides the usual fields. Parseable without the shared log's quoting, and blackbeard-only.
  2. Deny the hosting networks of Hetzner and OVH (AS24940, AS213230, AS212317, AS16276) with a geo map, from prefixes announced per RIPEstat and committed as a generated file with a script to regenerate it. AS35540 (OVH Telecom) is excluded on purpose: it is OVH's residential broadband.

Measured against the same ten days of logs, the list matches exactly the two pollers above and no UI visitor or WebSocket.

Caveats

  • This is a speed bump, not a gate. A scraper moves to another provider, and VPN exits on these networks lose the site. The dedicated log records denials, so collateral is visible.
  • Prefix lists drift. The committed file is dated and regenerated by hand.
  • Only the public vhost. The node endpoints (quantus./planck.blackbeard.observer) and the mesh vhost are untouched.
## Why The API is reachable by anything, and the only record of who uses it is oolon's shared `access.log`, whose `main` format carries neither `$http_origin` nor `$host` and mixes every vhost on the proxy. Parsed 2026-09-12 → 2026-09-22 (blackbeard routes only: `/v1/chains`, `/v1/ws`, `/v1/healthz`): | referer | requests | |---|---| | `blackbeard.observer` | 22,128 REST (241 IPs) | | none | 20,280 REST | | none | 7,551 WebSocket | | `localhost:51xx` (dev server) | 11 | No third-party site appears as a referer. The no-referer REST traffic is two headless pollers: - `37.187.143.115` (OVH, AS16276): no User-Agent, `summary?window=day` about once a minute, 17,833 requests. 88% of all no-referer REST. - `135.181.130.74` (Hetzner, AS24940): UA `stardust-devops`, `series?window=six_hours` every 10 minutes, 1,321 requests. Two blind spots: browsers send no Referer on the WebSocket handshake, so another site's page opening `/v1/ws` looks exactly like our UI, and a page with `Referrer-Policy: no-referrer` looks like a script. Only `Origin` tells them apart, and it is not logged. ## What 1. **A dedicated access log** for the public vhost, one JSON line per request, carrying `$http_origin` and `$host` besides the usual fields. Parseable without the shared log's quoting, and blackbeard-only. 2. **Deny the hosting networks of Hetzner and OVH** (AS24940, AS213230, AS212317, AS16276) with a `geo` map, from prefixes announced per RIPEstat and committed as a generated file with a script to regenerate it. AS35540 (OVH Telecom) is excluded on purpose: it is OVH's residential broadband. Measured against the same ten days of logs, the list matches exactly the two pollers above and **no UI visitor or WebSocket**. ## Caveats - This is a speed bump, not a gate. A scraper moves to another provider, and VPN exits on these networks lose the site. The dedicated log records denials, so collateral is visible. - Prefix lists drift. The committed file is dated and regenerated by hand. - Only the public vhost. The node endpoints (`quantus.`/`planck.blackbeard.observer`) and the mesh vhost are untouched.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blackbeard/observer#24