List cap (F4): a server read with overrideAccess: true that passes a request on is not capped (the cookie scanner's scheduled crawl read its review list through the token request); reference types without the e2e fixtures; changelog heading covers all of 1.18.0

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 17:22:10 +01:00
co-authored by Claude Opus 5.5
parent e23edb2429
commit 2af8ef180f
9 changed files with 48 additions and 1297 deletions
+4 -1
View File
@@ -1354,7 +1354,10 @@ gets 403 on every write door.
## Lists and sorting (`listLimit`, `refuseOperatorSort`, `lockedDocuments`, 1.18.0)
Three defaults for what a caller from outside (REST, GraphQL) may ask of a collection. The Local API — the frontend,
seeds, the project's own code (`req.payloadAPI === 'local'`) — is never touched.
seeds, the project's own code (`req.payloadAPI === 'local'`) — is never touched, and neither is a read with
`overrideAccess: true` that server code makes while it passes an outside request on (`payload.find({ req,
overrideAccess: true })`, e.g. the cookie scanner's scheduled crawl, which has no account): it is the server's own read,
not the caller's. A read with `overrideAccess: false` and the caller's `req` is the caller's and is capped.
- **`listLimit` (security audit F4).** A list (`find`, versions, distinct values) asked by a caller that is not staff
gets at most **100** documents per request; `pagination=false` and `limit=0` become one page of 100. Before, one