Measured on the shipped image (openwaf:ci, 2026-10-02) with 16 recorded
sources:
GET /admin-api/observations?source=203.0.113.11
-> 200, 16 rows over 16 different addresses, X-Total-Count: 16
GET /admin-api/observations?src=203.0.113.11
-> 200, the same 16 rows
The filter was neither applied nor refused. It was absent: minimal APIs bind
the parameters a handler declares and discard the rest, so an operator
investigating one address was handed fifteen other addresses and a total that
matched those fifteen. Every list endpoint behaved this way. This is the same
shape as the bug OPEN-23 found one level up, where an unknown ?source= VALUE
meant "operator" and a typo in a DELETE wiped the manual list.
Two changes, because a refusal alone would have hidden a fair question:
- TryKnownQuery refuses any query parameter the endpoint has not heard of,
naming the parameter and listing what that endpoint accepts. `token` is in
the known set on purpose: the admin auth layer reads it from the query
string and OPEN-16 ruled that curl-friendly form stays supported. Three
existing integration tests call /admin-api/blocks?token=… and were right to
— a guard that does not know the whole surface refuses requests that work,
which is a worse bug than the one it prevents.
- /observations and /alerts gained ?source=, and X-Total-Count counts the
filtered set rather than the table, so the header answers the question that
was asked instead of putting a 16 next to a single row. An empty ?source= is
refused rather than read as "every source".
Teeth: QueryHonestyTests (13) — integration 125 -> 138, and the three tests
the guard broke on the first run are the proof it bites. Compose gate gained a
scene with 7 assertions (74 -> 81): the filter returns one source and no
other, the total is the filtered total, ?zzz=1 and ?src= are refused by name
on two endpoints, and the parameters the endpoint really does honour still
answer 200.
Gates at this commit — macOS host: unit 128/128, integration 138/138, smoke
28/0, compose 81/0, console 58/0. Linux rehearsal: source PASS (128/128,
138/138, 28/0), compose 81/0, enforcement lag 12 ms.