The README carries the query-surface contract, and the numbers describe that tree

Numbers re-measured at 336c2f7 rather than carried from the previous sweep:
macOS host unit 128/128, integration 138/138, smoke 28/0, compose 81/0, console
58/0, image 261 MB. Linux rehearsal source PASS (128/128, 138/138, 28/0),
compose 81/0 with enforcement lag 12 ms, console 58/0 with 0 containers left
behind. act at 336c2f7: 5 jobs succeeded, 0 failed — source (128/128, 138/138,
28/0), image (261 MB, compose 81/0), console (58 assertions, 498,801-byte
screenshot artifact), lint, freshness.

Prose: a paragraph on the query surface — a parameter the endpoint never
implemented used to be dropped without a trace, the answer kept its shape, and
the guard's first run broke three tests that were right to send ?token=.
This commit is contained in:
Pavlo Ratushnyi
2026-10-02 10:52:34 +02:00
parent 336c2f74a4
commit db146271c8
2 changed files with 40 additions and 18 deletions
+4 -4
View File
@@ -25,8 +25,8 @@
# scripts/ci-linux-rehearsal.sh runs the gates in containers. Source gates
# (restore, build, unit, integration, smoke) in mcr.microsoft.com/dotnet/sdk:10.0
# - Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json: unit 128/128,
# integration 125/125, smoke 28/28, first try (at 1bcc086). Compose gate in docker:cli against
# the host daemon: 74/74 on Linux. Console gate in
# integration 138/138, smoke 28/28, first try (at 336c2f7). Compose gate in docker:cli against
# the host daemon: 81/81 on Linux. Console gate in
# mcr.microsoft.com/playwright:v1.63.0-noble - the stack seeded by docker:cli,
# the same console-check.cjs driving it in a real Linux Chromium: 58/58. The
# only wall clock ever measured for the source job is 1:02.81 cold (first
@@ -35,8 +35,8 @@
# number. What it does not have is a runner: the repository has no remote, so
# this file has never executed on GitHub. It has been executed by a local
# Actions-compatible runner (nektos/act 0.2.89, catthehacker/ubuntu:act-latest)
# at 1bcc086: 5 jobs succeeded, 0 failed - lint, source (128/128, 125/125, smoke
# 28/0), image (261 MB, compose smoke 74/0), console (58 assertions, screenshot
# at 336c2f7: 5 jobs succeeded, 0 failed - lint, source (128/128, 138/138, smoke
# 28/0), image (261 MB, compose smoke 81/0), console (58 assertions, screenshot
# artifact) and freshness (pin 2026-10 = newest 2026-10).
name: ci
+36 -14
View File
@@ -310,6 +310,27 @@ the same run prints "newest 25 of 42 recorded sources" and "Newest 25 of 274
alerts": the data volume survives `compose down`, which is precisely where a
table that looks like a window stops being honest.
A query parameter the endpoint has never heard of is now refused rather than
dropped. Measured on the shipped image with 16 recorded sources:
`GET /admin-api/observations?source=203.0.113.11` answered 200 with all 16 rows
across 16 different addresses and `X-Total-Count: 16`, and `?src=203.0.113.11`
answered the same. The filter was not applied and not refused — it was absent,
because the framework binds the parameters a handler declares and discards the
rest without a trace. An operator investigating one address was handed fifteen
other addresses and a total that matched those fifteen, which is the same shape
as the bug found one level up, where an unknown `?source=` *value* meant
"operator". Every list endpoint behaved this way. They now answer `400` naming
the parameter and listing what that endpoint accepts, and `/observations` and
`/alerts` gained the filter the shape of the question implied: `?source=<key>`,
exact match, with `X-Total-Count` counting the filtered set rather than the
table, so the truncation flag cannot claim a cut that never happened. An empty
`?source=` is refused rather than read as "every source"; a source with no rows
answers `[]` with a total of 0. `?token=` stays accepted, because the admin
auth layer reads it out of the query string and that transport is deliberate —
and the guard's first run broke three tests that were right to send it, which
is the worse failure mode for a guard of this kind: refusing a request that
works.
The exemption listing was the last one left uncapped, and it had a second fault
worth more than the ceiling. `GET /admin-api/allow` answered with every row ever
written and no statement of whether any of them still meant anything. Measured on
@@ -666,25 +687,26 @@ macOS working tree make the next `--no-build` try to exec an ELF file — inside
`mcr.microsoft.com/dotnet/sdk:10.0`. The compose gate runs in `docker:cli`
against the host daemon, so the image build and the stack are Linux.
Rehearsed 2026-10-02, most recently at `1bcc086`, each stage run on its own, so
Rehearsed 2026-10-02, most recently at `336c2f7`, each stage run on its own, so
the numbers below describe the tree at the head of this file rather than a
commit several fixes behind it. The same suite on the macOS host at `1bcc086`
gives the same counts: unit **128/128**, integration **125/125**, smoke **passed
28, failed 0**, compose **74 passed, 0 failed**, console **58 assertions, 0
commit several fixes behind it. The same suite on the macOS host at `336c2f7`
gives the same counts: unit **128/128**, integration **138/138**, smoke **passed
28, failed 0**, compose **81 passed, 0 failed**, console **58 assertions, 0
failed**, image 261 MB. Source gates: Ubuntu
24.04.5, SDK **10.0.401** resolving `dotnet/global.json` (pinned `10.0.100`,
`rollForward: latestFeature` — which is also the answer to whether
`setup-dotnet` with `10.0.x` satisfies the pin), unit **128/128**, integration
**125/125**, smoke **28/28**, first try, nothing to fix. The first
**138/138**, smoke **28/28**, first try, nothing to fix. The first
rehearsal of this pipeline timed a cold container and a cold NuGet cache at
**1:02.81**; the runs after it were not re-timed, so that is the only wall clock
measured here, and the source job's 25-minute timeout is not close either way.
Compose gate on Linux: **74 passed, 0 failed** (27 before the geo-pin and
Compose gate on Linux: **81 passed, 0 failed** (27 before the geo-pin and
alerting assertions, 41 before the alert-edge ones, 47 before the pillar-health
ones, 53 before the write-health ones, 63 before the ban-write ones, 72 before
the scenes were made non-vacuous), enforcement lag 0 ms, 12 ms and 36 ms in
the scenes were made non-vacuous, 74 before the query surface was refused rather
than dropped), enforcement lag 0 ms, 12 ms and 36 ms in
three runs, 12 ms at `a77ab53`, 13 ms at `6e6461a`, 11 ms at `c97c7a1`, 12 ms at
`7e081da`, 12 ms at `7b57c56`, 14 ms at `1bcc086`. Console gate on Linux: **58
`7e081da`, 12 ms at `7b57c56`, 14 ms at `1bcc086`, 12 ms at `336c2f7`. Console gate on Linux: **58
assertions, 0 failed** — described below, 0 containers left behind. `scripts/geo-db-freshness.sh` was run
in `mcr.microsoft.com/dotnet/sdk:10.0` too: current pin answers 0, and a forced
`PIN=2026-05` answers 1 with the bump command, so the gate that decides whether
@@ -724,12 +746,12 @@ the stage re-run after it leaves 0 containers.
Honest status of the workflow itself: it has never executed on a GitHub-hosted
runner, because the repository has no remote. It *has* been executed start to
finish by a local Actions-compatible runner — `nektos/act` 0.2.89 on
`catthehacker/ubuntu:act-latest`, most recently at `1bcc086` — 5 jobs
`catthehacker/ubuntu:act-latest`, most recently at `336c2f7` — 5 jobs
succeeded, 0 failed: `lint` (both pinned tools download, verify their checksums
and find nothing), `source` (unit 128/128, integration 125/125, smoke 28/28),
`image` (`openwaf:ci` 261 MB, compose smoke 74 passed / 0 failed), `console`
and find nothing), `source` (unit 128/128, integration 138/138, smoke 28/28),
`image` (`openwaf:ci` 261 MB, compose smoke 81 passed / 0 failed), `console`
(58 assertions / 0 failed with `playwright@1.63.0` and `chromium-1243`,
screenshot artifact published, 480,636-byte zip) and the `freshness` job (pin
screenshot artifact published, 498,801-byte zip) and the `freshness` job (pin
2026-10 = newest 2026-10). That is a stronger claim than
"the steps were run by hand", and a weaker one than "CI is green": it proves the
YAML executes and the pinned tools resolve, not that GitHub's image agrees. The
@@ -772,9 +794,9 @@ dotnet/
OpenWaf.Infrastructure/ EF Core (sqlite/postgres), snapshot store, writers, MMDB geo
OpenWaf.Edge/ the deployable: guard, observer, admin API, healthcheck mode
OpenWaf.Tests.Unit/ 128 tests over the decision logic
OpenWaf.Tests.Integration/ 125 tests driving the real pipeline against a fake upstream
OpenWaf.Tests.Integration/ 138 tests driving the real pipeline against a fake upstream
scripts/smoke.sh 28 assertions against a running edge + a real upstream
scripts/compose-smoke.sh 74 assertions against the built image (compose + nginx)
scripts/compose-smoke.sh 81 assertions against the built image (compose + nginx)
scripts/console-check.cjs 58 assertions against the page, in a real Chromium
scripts/geo-db-freshness.sh the pinned geo database vs the vendor (0/1/2)
.github/workflows/ci.yml runs the gates on every push