LuxelEspañol

Luxel v0.2 · Security · part 2 of 2

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:

PolicyWhat it checksCode
asefNo app-specific executable code is publishedLUXEL-E031
jsBudgetKiBExecutable JavaScript per page (Brotli)LUXEL-E030
maxCollectionItems, pageSize, maxRows, maxOptionsBounds 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
maxPayloadBytesThe largest event request a view can produceLUXEL-E033
allowedEvents, allowedComponentsWhat views may send and use (‹Logout> is Logout, a ‹Link> counts as Text)E034, E035
exposureSecrets, internal host names, secret environment values, server-only names and state paths in public outputsE027, E036, E037, E038
publicMaxDataClassThe most sensitive data class a public view may showLUXEL-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.

Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.