Security (2)
Logs
One JSON line per request. Logs never carry a view token, a CSRF token, a session id, a cookie or a body. A session appears as a prefix of a hash of it.
Start-up refusals
With LUXEL_ENV=production, luxel-host refuses to start (exit 1, a reason that names no value) when LUXEL_VIEW_KEYS is missing or a key is malformed or shorter than 32 bytes, when LUXEL_NODES is above 1 without shared stores, when the configuration is invalid, or when LUXEL_STREAM is set. luxel dev refuses to run at all with LUXEL_ENV=production.
luxel check policies
npm run build runs luxel check, which proves these from the build:
| Policy | What it checks | Code |
|---|---|---|
| asef | No app-specific executable code is published | LUXEL-E031 |
| jsBudgetKiB | Executable JavaScript per page (Brotli) | LUXEL-E030 |
| maxCollectionItems, pageSize, maxRows, maxOptions | Bounds of lists, pages, rows, options. A collection declared page: false, maxItems: n in the contract is exempt from pageSize only, and the check lists it (Collections) | E032, E048, E046, E047 |
| maxPayloadBytes | The largest event request a view can produce | LUXEL-E033 |
| allowedEvents, allowedComponents | What views may send and use (‹Logout> is Logout, a ‹Link> counts as Text) | E034, E035 |
| exposure | Secrets, internal host names, secret environment values, server-only names and state paths in public outputs | E027, E036, E037, E038 |
| publicMaxDataClass | The most sensitive data class a public view may show | LUXEL-E039 |
initialTransferKiB and scalability need a measurement and are reported as NOT VERIFIABLE STATICALLY (LUXEL-W002).
The exposure check finds the kinds of leak it knows. A clean report means "no leaks of these kinds", not "no leaks".
What Luxel does NOT do
- It does not protect data from whoever controls the browser. Compiled templates, view tokens, the absence of app code, and the Canvas renderer raise the cost of generic scripts at most. An adapter that knows Luxel can read and send everything the page can. Security is the server's: authorization, scopes, validation and versions.
- It does not compute in the browser. Totals, pages, searches, chart scales, formats and versions are the server's, by design. The cost is a round trip for every recalculation, page or search, and every read event carries its security context.
- It does not push. Data that changes on the server is polled.
- It does not keep user data in browser storage, so the browser cache cannot revalidate user data the way an ETag-based client can.
- It does not hydrate, and does not run components per request.
- It does not log detail (0.2.0-alpha.1, ADR-065): framework lines carry fixed events and allowlisted fields only (route template, method, status, durations, codes); keep your own logger for more. Text your handlers put in a refusal reaches the client as written, unless it quotes the request's session id, its store key or token, or holds a run of 43+ base64url characters (the grammar of a bundled store's session id and store key, whatever its letters) or of 32+ with 2 digits or 4 capitals: that refusal becomes the generic 500; its code, recovery and numbers must be the protocol's (else the same 500). A short custom session id of another request is not detected (known gap). Start failures print startFailure(error): a HostStartError's text, else a code and a reference.
- It is not certified or conformant with WCAG or OWASP, and it is not "production ready" by claim: nothing in the project proves it. Treat the deploy checklist as a checklist, not a guarantee.
The full list of claims, each with its evidence and conditions, is in docs/claims.md.