Files
openwaf/.github/workflows
Pavlo Ratushnyi 842b70566f The query-string token is kept, but it no longer happens silently
?token= on the admin API is an affordance for an operator typing curl; the
console never uses it and none of the gates do (0 occurrences of token= in
scripts/). Refusing it is how an operator ends up switching auth off instead of
learning the header. What was wrong was the silence.

Measured on the shipped image before deciding: a container hit with
/admin-api/state?token=<secret> logged 0 lines containing the token at the
shipped level (Microsoft.AspNetCore: Warning), and 2 lines at
Microsoft.AspNetCore=Information, including the full URL. Raising that level is
the ordinary next move while debugging, so the leak is one environment variable
away, not a hypothetical.

Now a request authenticated by the query string logs a warning naming the path
and never the token. Two tests: the query form is served and named; the header
form produces no such warning and no token anywhere in the captured logs. Teeth:
delete the warning and exactly the query test fails (1 failed, 33 passed).

Also refreshed the ci.yml header, whose Linux numbers had gone stale (54/54 +
30/30 + 41/41 -> 59/59 + 32/32 + 43/43 + 33/33), and kept the wall clock quoted
as measured once rather than current.

Gates: build 0 warnings, unit 59/59, integration 34/34, actionlint 0 problems.
2026-10-01 20:27:06 +02:00
..