Files
openwaf/scripts
Pavlo Ratushnyi 4db36f86d0 the operator's console shows what changed on this edge
OPEN-64 gave the edge a record of every deliberate config change and an
endpoint that reads it; the record was invisible to the person it is for.
`/admin` now draws it: when, section, action, target, the note somebody
typed, and the surface it came through, newest 25 of the total.

Rulings this copy holds to:

  * The surface column says `operator` or `import`, never a person. The
    edge has one admin token; a column implying a per-person attribution
    it cannot provide would be a false record, not a thinner one.
  * Engine bans are absent, and the line under the table says so in the
    same breath as the counts: "engine bans are not here, they are not
    decisions". A table that mixed them in would read as "the operator
    chose to ban this address", which is a different claim.
  * The log's two bounds are printed under the table they govern -
    "pruned after 30d or 5000 rows, whichever comes first" - the way the
    retention windows sit on the observations and alerts tables. They come
    from `/state` (`changeRetentionDays`, `changeLogMaxRows`), so the
    numbers are the ones this process was actually started with.
  * A change record that did not land is named in the durable-writes pill
    with its count: "change records not written x1 (1 changes
    unrecorded)". It is the one write failure that changes nothing the
    edge enforces, which is exactly why it would otherwise go unseen - the
    config did change, only its record is missing.

What the run measured rather than assumed: the gate's seed writes a block
whose reason carries markup (`<svg onload=document.title='XSS2'> probe`),
and that reason is now the detail of a change row - so the change table
is a place where a stored operator string reaches the one browser in this
system that holds the admin token. The markup-seed assertion now covers
`#changes tbody`, and a companion assertion proves the string really
arrived as text, because without it an injection count of zero would only
prove that nothing was looked at.

Gates on this head: build 0 warnings / 0 errors, unit 313/313,
integration 298/298 in 34 s, console 98 assertions / 0 failed, smoke
passed 127 failed 0, image 262 MB, compose-smoke 278 passed 0 failed.

Refs OPEN-65.
2026-10-05 06:30:22 +02:00
..