Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
436656ef35 |
@@ -279,15 +279,12 @@ over the limit in the image.
|
|||||||
keeps any site from making its visitors' browsers store reports (see
|
keeps any site from making its visitors' browsers store reports (see
|
||||||
[CORS](#cors)).
|
[CORS](#cors)).
|
||||||
- **Body limit.** A report body may be at most 1 MiB, the backend's limit for
|
- **Body limit.** A report body may be at most 1 MiB, the backend's limit for
|
||||||
any request. Run on its own, the backend answers 413 before the route to a
|
any request. Run on its own, the backend refuses a larger body with 413:
|
||||||
request that declares a longer body. Without a declared length, the route
|
before the route when the request declares a length over the limit, otherwise
|
||||||
answers 413 only when the report it reads runs past 1 MiB; nothing after the
|
at the route once reading the body passes it. In the image, nginx refuses it
|
||||||
end of the report is read, so a longer body whose report ends sooner is
|
first, with or without a declared length, as its `client_max_body_size`, which
|
||||||
stored, and one that stops being valid JSON sooner is answered 400. In the
|
`configs/nginx.conf` does not set, is 1 MiB by default. nginx answers 413 with
|
||||||
image, nginx refuses a body over 1 MiB first, with or without a declared
|
its own HTML error page, and the backend never sees the request.
|
||||||
length, as its `client_max_body_size`, which `configs/nginx.conf` does not
|
|
||||||
set, is 1 MiB by default. nginx answers 413 with its own HTML error page, and
|
|
||||||
the backend never sees the request.
|
|
||||||
- **Rate limit.** Each client address, resolved through `TRUSTED_PROXIES`, may
|
- **Rate limit.** Each client address, resolved through `TRUSTED_PROXIES`, may
|
||||||
send `REPORTS_PER_MINUTE` reports a minute; past that it gets 429 with
|
send `REPORTS_PER_MINUTE` reports a minute; past that it gets 429 with
|
||||||
`Retry-After: 60`. The minute slides: reports from the minute before still
|
`Retry-After: 60`. The minute slides: reports from the minute before still
|
||||||
@@ -341,13 +338,12 @@ runtime and process metrics. No other request is recorded: not those to
|
|||||||
as a CORS preflight, or a request refused with 404 for a path no route has or
|
as a CORS preflight, or a request refused with 404 for a path no route has or
|
||||||
405 for a method its route does not take. Run on its own, the backend also
|
405 for a method its route does not take. Run on its own, the backend also
|
||||||
answers 413 before the route to a request declaring a body length over the 1 MiB
|
answers 413 before the route to a request declaring a body length over the 1 MiB
|
||||||
limit, which is not recorded. A body over the limit sent without a declared
|
limit, which is not recorded; a report whose body goes over the limit without
|
||||||
length reaches the route and is recorded with the status the route answers,
|
declaring its length reaches the route, is answered 413 there, and is recorded
|
||||||
which is 413 only when the report it reads runs past the limit: nothing after
|
with that status. In the image neither reaches the backend: nginx answers both
|
||||||
the end of the report is read. In the image neither reaches the backend: nginx
|
with 413 itself (see [Report limits](#report-limits)), and nothing of them is
|
||||||
answers both with 413 itself (see [Report limits](#report-limits)), and nothing
|
recorded. Clients can make up any number of paths and methods, and each would
|
||||||
of them is recorded. Clients can make up any number of paths and methods, and
|
add labels to the metrics for as long as the server runs.
|
||||||
each would add labels to the metrics for as long as the server runs.
|
|
||||||
|
|
||||||
`/metrics` is rate limited, so that its password cannot be guessed quickly: each
|
`/metrics` is rate limited, so that its password cannot be guessed quickly: each
|
||||||
client address, resolved through `TRUSTED_PROXIES`, may make 60 requests to it a
|
client address, resolved through `TRUSTED_PROXIES`, may make 60 requests to it a
|
||||||
|
|||||||
Reference in new issue
Block a user