Runway 1.1.2
This commit is contained in:
1 parent
67d61f339c
commit
5fa0c1ef9f
29 files changed
+548
-76
No files matched your search
@@ -2775,7 +2775,8 @@ Each site keeps its own access log (its public traffic) and audit log (its manag
|
||||
- `runway.logs.queue-capacity` (default `8192`, at least `16`) — log lines wait in a queue between the request and
|
||||
the disk, so a slow disk never slows a page. When the queue is full, new lines are **dropped**, not waited for:
|
||||
the count is the `runway_logs_dropped` metric (and the Logs screen), and a `WARN` *"site log queue saturated"* is
|
||||
logged at most once a minute. Raise it if that count grows; each queued line takes a little memory.
|
||||
logged at most once a minute. An eighth of the queue is held for audit lines (sign-ins, changes), so a flood of
|
||||
public requests drops access lines first. Raise it if that count grows; each queued line takes a little memory.
|
||||
|
||||
### Bandwidth metering (`runway.bandwidth.*`)
|
||||
|
||||
|
||||
+11
-2
@@ -223,7 +223,9 @@ is written **only in detached launcher mode** — the supervisor appends the JVM
|
||||
usually empty; do not go looking for application logs there when running as a service.
|
||||
|
||||
**The public access log.** One line is emitted per **public** request under the logger
|
||||
`runway.access`, from the innermost filter (so the status is final):
|
||||
`runway.access`, written once every filter and handler has finished with it, so with the status it was answered
|
||||
with (the one exception: an error escaping a plugin's own controller is logged with the status set before it,
|
||||
while the client receives `500`):
|
||||
|
||||
```
|
||||
203.0.113.7 GET /about -> 200 (12ms)
|
||||
@@ -237,6 +239,13 @@ fetch will **not** appear here; that is by design (this is a traffic log, not an
|
||||
client IP is the gated one (from a trusted forwarded header only — see Administration §7), never a
|
||||
raw spoofable header.
|
||||
|
||||
It records **every** public request that gets past the protection edge (§3.1), whoever answers it: a page, a
|
||||
plugin's route (`robots.txt`, the sitemap, a form), the sign-in form (every login attempt, successful or not, and
|
||||
a form post refused for its missing token, `403`), an oversized form refused unread (`413`), a suspended, maintenance or over-quota site (`503`), and a
|
||||
request body refused for arriving too slowly (`408`). Before 1.1.2 every one of these except the page was missing,
|
||||
because the log was written by the innermost filter and each of them is answered by a filter outside it. Only the
|
||||
edge's own `403`/`429` stay out: those go to `runway.protect` (§3.1).
|
||||
|
||||
**What to grep for** (systemd, hence `journalctl`):
|
||||
|
||||
```bash
|
||||
@@ -302,7 +311,7 @@ rejections, §3.1); everything else logs under its package, `mx.quest.runway.*`.
|
||||
### 3.1 Seeing what the edge rejected
|
||||
|
||||
A request the protection edge turns away is rejected at `FilterOrder.CORE_PROTECTION` — the outermost slot —
|
||||
and the chain is never called. The access log lives at the innermost slot. So a `403`/`429` from the edge
|
||||
and the chain is never called. The access log sits just inside that slot, so a `403`/`429` from the edge
|
||||
**appears in no other log**, and without a log of its own a site manager would have no way to tell that a
|
||||
crawler was being throttled.
|
||||
|
||||
|
||||
@@ -738,7 +738,9 @@ You declare a **`FilterBand` + a small offset** — never a raw order. The kerne
|
||||
escape its band to preempt the protection floor or run before security. The bands (outermost →
|
||||
innermost) are `EDGE_INGRESS` (raw request, pre-security), `EDGE_EGRESS` (response rewriting),
|
||||
`TENANT` (after the site is resolved, before security), `APPLICATION` (feature filters, inner of
|
||||
security; the default). **`SECURITY` is not contributable** — it belongs to the kernel's realm
|
||||
security; the default). The kernel's access log sits between `EDGE_INGRESS` and the rest: whatever an
|
||||
`EDGE_EGRESS`, `TENANT` or `APPLICATION` filter answers is logged with its status, while a request an
|
||||
`EDGE_INGRESS` filter turns away is not (log it yourself, throttled, if you need to). **`SECURITY` is not contributable** — it belongs to the kernel's realm
|
||||
security chains, and (as above) a non-essential plugin may not declare a `SecurityFilterChain` bean either.
|
||||
|
||||
**Verify:** the boot log prints one line per plugin filter —
|
||||
|
||||
@@ -230,7 +230,8 @@ name or the default language. While no field is set and no manifest icon (192, 5
|
||||
`/manifest.webmanifest` answers 404 and pages do not link to it.
|
||||
|
||||
The **Logs** screen (`/__admin/logs`) shows your site's own **access log** (public traffic — the most recent
|
||||
lines) and its **audit journal**: who did what on your site, and when. The journal records sign-ins
|
||||
lines; every sign-in attempt on your site's login page is there too, as a `POST /login`, and so is a request your
|
||||
site refused, such as a `503` while it is in maintenance) and its **audit journal**: who did what on your site, and when. The journal records sign-ins
|
||||
(`login.success`, `login.failure`) and sign-outs (`logout`), each with the address it came from (`ip=…`, in full:
|
||||
the anonymizing setting below applies to the access log only); password recovery through an emailed link
|
||||
(`recovery.requested`, `recovery.completed`); page changes (`page.saved`, `page.deleted`, `page.published`,
|
||||
@@ -1184,10 +1185,10 @@ two lists, for the **last 7 or 30 days** (never longer than your log retention
|
||||
with a corrected link, the missing page or file, or a redirect from the old address.
|
||||
- **Most-visited pages** — your pages by how often they were successfully viewed, with when last.
|
||||
|
||||
**What it counts.** Only `GET` requests (a form post or a crawler's `HEAD` is not a visit). A **page view** is a
|
||||
**What it counts.** Only `GET` requests (a form post, a sign-in attempt or a crawler's `HEAD` is not a visit). A **page view** is a
|
||||
successful (2xx) answer for an address that looks like a page — no file extension in the last part, or `.html`
|
||||
— so stylesheets, images, downloads, `robots.txt` and the sitemap are left out; a browser re-checking a page it
|
||||
already has (a `304`) is not a new view. A **404** counts for any address, images included, because a missing
|
||||
already has (a `304`) is not a new view, and neither is a refusal (a `403`, or a `503` during maintenance). A **404** counts for any address, images included, because a missing
|
||||
image is a broken link too. Addresses are shown **without their query string** (`/search?q=…` counts as
|
||||
`/search`), and very long ones are shortened on screen (hover to see the whole stored address).
|
||||
|
||||
|
||||
Reference in new issue
Block a user