LuxelEspañol

Luxel v0.2 · Reference · part 3 of 5

Luxel compiler diagnostics (3)

CodeRuleSeverityWhenWhat to write instead
LUXEL-E031aseferrorluxel check: app-specific executable code is published (a .js/.wasm asset, .luxel/ outputs, a runtime module that is not the shipped universal file or contains an app string)Publish only the universal runtime modules; app logic stays on the server
LUXEL-E032collection-over-limiterrorluxel check: a collection (view or surface) allows more items than policies.maxCollectionItemsA lower maxItems, or pagination
LUXEL-E033payload-too-largeerrorluxel check: an event request can exceed policies.maxPayloadBytes, or a surface exceeds policies.maxSurfaceBytesShorter maxLength on the fields, or a smaller surface
LUXEL-E034event-not-allowederrorluxel check: a view or surface sends an event outside policies.allowedEventsAn allowed event, or extend the list deliberately
LUXEL-E035component-not-allowederrorluxel check: a view or surface uses a component outside policies.allowedComponentsAn allowed component
LUXEL-E036secret-exposureerrorluxel check: a public output contains a value shaped like a secret (built-in patterns: private keys, cloud and API keys, tokens…; plus policies.exposure.secrets)Keep secrets on the server, in the environment
LUXEL-E037internal-host-exposureerrorluxel check: a public output names a host listed in policies.exposure.internalHosts (any subdomain of it)Public outputs carry no infrastructure names
LUXEL-E038env-secret-exposureerrorluxel check: a public output contains the value of LUXEL_VIEW_KEYS, DATABASE_URL or a variable in policies.exposure.secretEnv (each key of a key list too)Read it on the server; never copy it into a view
LUXEL-E039data-classerrorluxel check: a public view shows data above policies.publicMaxDataClass, or a surface declares a lower data class than the view it bindsMake the view private, or classify the surface at least as high as its contract view
LUXEL-E040surface-grammarerrorA dynamic surface breaks the closed surface grammar (unknown field or component, bad id, unknown contract view…)The shape the message lists
LUXEL-E041markup-in-dataerrorA dynamic surface carries markup or control characters in a textPlain text only
LUXEL-E042surface-inputserrorA surface's Fields and events do not match the contract (missing input, extra Field, item key on an Action, maxLength above the contract)One Field per event input, within the contract's limits
LUXEL-E043forbidden-sloterrorData (an item field or a state path) aimed at an attribute no slot may write: id, name, style, srcdoc, an event handler, href, src, or any free attributeSlots are text, enumerated attributes (state + stateClasses), numbers (‹Chart>, ‹Bar>) and input values only
LUXEL-E044event-without-policyerrorA contract event without an authorization policy (allow([...roles]) or publicEvent())Every event declares who may send it; the gateway denies anything else
LUXEL-E045id-without-scopeerrorAn event carries an id (its param, a select, a select column of a rows field) without a refs kindDeclare the resource kind in refs (the app's scope function re-checks every id), or LOCAL for an id that names no resource
LUXEL-E046rows-over-limiterrorA row collection with inputs allows more rows than the maxRows policyLower maxItems, or raise the policy
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.