{"vsa":"0.9.0","type":"StaticManifest","manifestVersion":"1.0.0","viewId":"docs-v0-2-behind-a-gateway-2","title":"Luxel behind a gateway (2) · Docs v0.2","requires":[{"name":"zone.text","version":"^1.0.0"}],"optional":[{"name":"render.dom","version":"^1.0.0"},{"name":"projection.slots","version":"^1.0.0"}],"trustDomain":"self","dataClass":"public","zones":[{"zoneId":"l-1","kind":"text","label":"Luxel"},{"zoneId":"l-2","kind":"text","label":"Docs"},{"zoneId":"l-3","kind":"text","label":"Demo"},{"zoneId":"l-4","kind":"text","label":"Numbers"},{"zoneId":"l-5","kind":"text","label":"Security"},{"zoneId":"l-6","kind":"text","label":"Releases"},{"zoneId":"l-7","kind":"text","label":"Roadmap"},{"zoneId":"l-8","kind":"text","label":"Blog"},{"zoneId":"l-9","kind":"text","label":"Español"},{"zoneId":"t-10","kind":"text","label":"Docs v0.2"},{"zoneId":"l-11","kind":"text","label":"Docs v0.1: 0.1.0 betas →"},{"zoneId":"l-12","kind":"text","label":"Search documentation →"},{"zoneId":"t-13","kind":"text","label":"Start"},{"zoneId":"l-14","kind":"text","label":"Overview"},{"zoneId":"l-15","kind":"text","label":"Getting started"},{"zoneId":"l-16","kind":"text","label":"Primeros pasos"},{"zoneId":"l-17","kind":"text","label":"Concepts"},{"zoneId":"t-18","kind":"text","label":"Guide"},{"zoneId":"l-19","kind":"text","label":"Views"},{"zoneId":"l-20","kind":"text","label":"Screens"},{"zoneId":"l-21","kind":"text","label":"Testing screens"},{"zoneId":"l-22","kind":"text","label":"Forms"},{"zoneId":"l-23","kind":"text","label":"Collections"},{"zoneId":"l-24","kind":"text","label":"Charts"},{"zoneId":"l-25","kind":"text","label":"Polling"},{"zoneId":"l-26","kind":"text","label":"Languages"},{"zoneId":"l-27","kind":"text","label":"Server"},{"zoneId":"l-28","kind":"text","label":"Sessions"},{"zoneId":"l-29","kind":"text","label":"Production"},{"zoneId":"l-30","kind":"text","label":"Behind a gateway"},{"zoneId":"l-31","kind":"text","label":"Tooling"},{"zoneId":"l-32","kind":"text","label":"From React or Next.js"},{"zoneId":"t-33","kind":"text","label":"Reference"},{"zoneId":"l-34","kind":"text","label":"Typical React mistakes"},{"zoneId":"l-35","kind":"text","label":"API"},{"zoneId":"l-36","kind":"text","label":"Diagnostics"},{"zoneId":"l-37","kind":"text","label":"Support matrix"},{"zoneId":"t-38","kind":"text","label":"Security"},{"zoneId":"l-39","kind":"text","label":"Security guide"},{"zoneId":"l-40","kind":"text","label":"Threat model"},{"zoneId":"l-41","kind":"text","label":"Claims and evidence"},{"zoneId":"t-42","kind":"text","label":"Project"},{"zoneId":"l-43","kind":"text","label":"Known gaps"},{"zoneId":"l-44","kind":"text","label":"Upgrading to 0.2.0-alpha.1"},{"zoneId":"l-45","kind":"text","label":"Changelog"},{"zoneId":"l-46","kind":"text","label":"Index of all sections"},{"zoneId":"t-47","kind":"text","label":"Luxel v0.2 · Guide · part 2 of 3"},{"zoneId":"t-48","kind":"text","label":"Luxel behind a gateway (2)"},{"zoneId":"t-49","kind":"text","label":"Field"},{"zoneId":"t-50","kind":"text","label":"Meaning"},{"zoneId":"t-51","kind":"text","label":"Default and rules"},{"zoneId":"t-52","kind":"text","label":"jwksHttpInCluster"},{"zoneId":"t-53","kind":"text","label":"jwksUrl is a Kubernetes service address fetched over plain http inside the cluster"},{"zoneId":"t-54","kind":"text","label":"false; only for an http jwksUrl whose host ends in .svc or .svc.cluster.local; required for such a URL in production"},{"zoneId":"t-55","kind":"text","label":"parseIdentityConfig (from @luxel-framework/gateway) is the check luxel-host runs, and the one luxel build runs (with production: false); a deploy script can call it too."},{"zoneId":"t-56","kind":"text","label":"Why audience or authorizedParty is required: without one, a token the same provider issued to another client would be accepted. With Keycloak, the access token's aud is often account (the account console's client), which every client's "},{"zoneId":"t-57","kind":"text","label":"tokens carry. The client the token was issued to is in azp. So set authorizedParty to your client id."},{"zoneId":"t-58","kind":"text","label":"2. The bindings"},{"zoneId":"t-59","kind":"text","label":"// server/bindings.mjs\nimport { defineIdentityPrincipal } from '@luxel-framework/gateway';\nimport { createPgSessionStore } from '@luxel-framework/postgres';\nimport pg from 'pg';\n\n"},{"zoneId":"t-60","kind":"text","label":"// A bundled store (stage S1-A): PostgreSQL for several nodes, or createMemorySessionStore() for one.\n// A delegated or third-party store is refused at startup (LUXEL-M002, docs/guide/support-matrix.md).\n"},{"zoneId":"t-61","kind":"text","label":"export const sessionStore = createPgSessionStore({ pool: new pg.Pool({ connectionString: process.env.DATABASE_URL }) });\n\n// Verified claims in, principal out. Return null to refuse this identity (403, no session).\n"},{"zoneId":"t-62","kind":"text","label":"export const identityPrincipal = defineIdentityPrincipal((claims) => {\n  const roles = claims.realm_access?.roles?.filter((r) => r === 'agent' || r === 'supervisor') ?? [];\n  if (roles.length === 0) return null;\n"},{"zoneId":"t-63","kind":"text","label":"  return { userId: String(claims.sub), roles, displayName: String(claims.name ?? '') };\n});"},{"zoneId":"t-64","kind":"text","label":"identityPrincipal runs once per new session, not per request. A role change in later tokens does not change a session that is already open; end a session at any time with sessionStore.revokeUser(userId)."},{"zoneId":"t-65","kind":"text","label":"The bindings must not export resolveSession or startSession in this mode: luxel-host resolves every session from the verified token. ctx.signIn is refused too."},{"zoneId":"t-66","kind":"text","label":"luxel-host adds identityKey to the principal: a hash of the issuer and the subject, which binds the session. The store must return the principal exactly as it was opened, every field included. luxel-host checks this once per new session; a "},{"zoneId":"t-67","kind":"text","label":"store that drops the field answers 503 and logs luxel.identity.store."},{"zoneId":"t-68","kind":"text","label":"Supported stores (stage S1-A): the PostgreSQL store of @luxel-framework/postgres (it keeps identityKey in an identity_key column, added to an existing table when the host starts) and the memory store (one node). The delegated store and "},{"zoneId":"t-69","kind":"text","label":"third-party stores are refused at startup (LUXEL-M002) until stage S1-C, which brings a strict confirm schema and a conformance kit for them."},{"zoneId":"t-70","kind":"text","label":"A revocation that races with a sign-in is made effective. Each user has a revocation counter. revokeUser raises it and deletes the user's sessions in one atomic step. luxel-host reads the counter before it opens a session and opens only if "},{"zoneId":"t-71","kind":"text","label":"the counter still has that value, atomically with any revocation; otherwise the store throws SessionRevokedError and the request gets 401. A delegated backend in this mode (refused at startup in stage S1-A, LUXEL-M002; the contract below is "},{"zoneId":"t-72","kind":"text","label":"kept for stage S1-C, which makes it stricter):"},{"zoneId":"t-73","kind":"text","label":"answers revocation-epoch ({ userId } in, { epoch } out, a non-negative integer kept in the database every node shares). A value is never given twice for a user: take new values from one sequence, both when the row is created and on each "},{"zoneId":"t-74","kind":"text","label":"revocation. Rows of users with no session may then be removed after a while: an open that read a removed row is refused, never admitted;"},{"zoneId":"t-75","kind":"text","label":"makes revoke-user (raise the counter, delete the user's sessions) one transaction;"},{"zoneId":"t-76","kind":"text","label":"refuses with HTTP 409 an open whose body carries revocationEpoch when the user's counter differs, in the same transaction as the insert, and serialized with revoke-user (for example by locking the counter row: SELECT … FOR SHARE in the "},{"zoneId":"t-77","kind":"text","label":"open, the counter's update first in the revocation)."},{"zoneId":"t-78","kind":"text","label":"answers abandon ({ key, until }): deletes the session under key if present and keeps a tombstone of key until until (luxel-host sends the abandon time plus the longest session lifetime, anonymous or signed in). An open of a tombstoned key "},{"zoneId":"t-79","kind":"text","label":"is refused (409), atomically with the abandon (one table keyed by key does it). luxel-host abandons the id of an open it undoes, because the open's answer may be lost while the open is still on its way."},{"zoneId":"t-80","kind":"text","label":"keeps the pendingUntil (epoch milliseconds) an open carries: the session is then provisional. Until that time validate answers it WITH its pendingUntil (luxel-host uses the field to keep a provisional session from every request but the one "},{"zoneId":"t-81","kind":"text","label":"that opened it; a backend that drops it makes the session an ordinary one); from that time on validate answers null for the key (the session ended by itself; the backend may delete it then or at its next purge);"},{"zoneId":"t-82","kind":"text","label":"answers confirm ({ key } in, { \"confirmed\": true } out when the session is live after the call, its pendingUntil removed; { \"confirmed\": false } when it is gone, abandoned or past its deadline). Exactly one of these two bodies: any other "},{"zoneId":"t-83","kind":"text","label":"answer (an empty body, {}, null, another type) is read as \"outcome unknown\", the request is refused and the session is closed. The operation is repeated safely: confirming a confirmed session answers true. abandon ends a confirmed session "},{"zoneId":"t-84","kind":"text","label":"too. Without these, every sign-in fails closed, or a revocation may miss a session opened while it runs. A store without confirm cannot serve this mode: luxel-host refuses to start with it. The PostgreSQL store does this with a "},{"zoneId":"t-85","kind":"text","label":"‹table>_revocation table and a ‹table>_rseq sequence, created at start; its tombstones are rows of the session table, and a provisional session is a row with pending_until."},{"zoneId":"t-86","kind":"text","label":"luxel-host chooses each new session's id before it asks the store to open it, so an open whose answer is lost can still be closed. A delegated backend opens under the key it is sent, as before."},{"zoneId":"t-87","kind":"text","label":"Envoy Gateway with Keycloak"},{"zoneId":"t-88","kind":"text","label":"The owner's pilot setup. Envoy Gateway's OIDC filter signs the person in against Keycloak and, with forwardAccessToken, sends the access token upstream as Authorization: Bearer:"},{"zoneId":"t-89","kind":"text","label":"apiVersion: gateway.envoyproxy.io/v1alpha1\nkind: SecurityPolicy\nmetadata:\n  name: luxel-oidc\nspec:\n  targetRefs:\n    - group: gateway.networking.k8s.io\n      kind: HTTPRoute\n      name: luxel\n  oidc:\n    provider:\n"},{"zoneId":"t-90","kind":"text","label":"      issuer: https://sso.example.com/realms/acme\n    clientID: luxel-pilot\n    clientSecret:\n      name: luxel-oidc-client-secret\n    redirectURL: https://app.example.com/oauth2/callback\n    logoutPath: /oauth2/logout\n"},{"zoneId":"t-91","kind":"text","label":"    forwardAccessToken: true\n    refreshToken: true"},{"zoneId":"t-92","kind":"text","label":"refreshToken: true lets Envoy renew an expired access token itself with the refresh token (Envoy's use_refresh_token, the setting the repository's Envoy test runs with); Envoy Gateway's default is false, so without it the person signs in "},{"zoneId":"t-93","kind":"text","label":"again whenever the access token expires. The callback (redirectURL's path, /oauth2/callback) and logoutPath must be matched by an HTTPRoute that this policy covers (here the luxel route, with a / prefix match); otherwise the OIDC filter "},{"zoneId":"t-94","kind":"text","label":"never sees them. Envoy Gateway's control plane itself is not run by this repository's tests (only the Envoy proxy, with a hand-written bootstrap)."},{"zoneId":"t-95","kind":"text","label":"And in luxel.config.ts:"},{"zoneId":"t-96","kind":"text","label":"identity: {\n  mode: 'gateway-jwt',\n  issuer: 'https://sso.example.com/realms/acme',\n  authorizedParty: 'luxel-pilot',\n  audience: 'account',\n  jwksUrl: 'https://sso.example.com/realms/acme/protocol/openid-connect/certs',\n},"},{"zoneId":"t-97","kind":"text","label":"When luxel-host runs in the same cluster as Keycloak, the key set can be fetched from Keycloak's service address while the token's iss stays the public address (aud is often account, so check azp only):"},{"zoneId":"t-98","kind":"text","label":"identity: {\n  mode: 'gateway-jwt',\n  issuer: 'https://idp.example.net/realms/development',\n  authorizedParty: 'app-frontend-dev',\n  jwksUrl: 'http://keycloak.oauth.svc.cluster.local:8080/realms/development/protocol/openid-connect/certs',\n"},{"zoneId":"t-99","kind":"text","label":"  jwksHttpInCluster: true,\n},"},{"zoneId":"t-100","kind":"text","label":"jwksHttpInCluster is needed in production for the plain http address. Whoever can alter that traffic can sign in as anyone: use it only where the cluster network is trusted (or encrypted by a mesh)."},{"zoneId":"t-101","kind":"text","label":"Points to check:"},{"zoneId":"t-102","kind":"text","label":"iss is the URL Keycloak was reached at when it issued the token. Set Keycloak's hostname (KC_HOSTNAME) so that the gateway and luxel-host see the same issuer."},{"zoneId":"t-103","kind":"text","label":"Refresh. Let the gateway renew tokens before they expire (Envoy Gateway has a refresh setting in recent versions; check the SecurityPolicy reference of yours). A renewed token with the same subject keeps the Luxel session. A token forwarded "},{"zoneId":"t-104","kind":"text","label":"past its exp closes it (401)."},{"zoneId":"t-105","kind":"text","label":"**X-User-* and X-Actor.** If your Envoy configuration also sends these, luxel-host ignores them. When they arrive without a token, it logs luxel.identity.untrusted-headers with family names, never the values, and the request gets no session "},{"zoneId":"t-106","kind":"text","label":"of any kind: a public view that needs a (visitor) session answers 401 to it, and a static public form refuses it (401) before anything is counted or its form token spent. Static public pages are served as usual. When tokenHeader is another "},{"zoneId":"t-107","kind":"text","label":"header, Authorization counts as such a header too."},{"zoneId":"t-108","kind":"text","label":"The token never reaches a page. Handlers can read session.identity.token (to call your APIs). Every dynamic answer luxel-host writes (a page, a streamed page's data, a view's state, an event's answer, an error) is checked for the request's "},{"zoneId":"t-109","kind":"text","label":"credential before it is compressed or sent: one that holds it is not sent (500, or the view's error state for a streamed page) and is logged as luxel.response.refused without the value. Log lines are scrubbed of it too."},{"zoneId":"t-110","kind":"text","label":"Who the user is never reaches a log line. An error your handler or your identityPrincipal throws may quote the subject, an email or a name. In the log lines of a request, luxel-host replaces by [redacted] every string value of the claims of "},{"zoneId":"t-111","kind":"text","label":"the token it verified (not iss, aud, azp, typ) and the request's session ids. A value of 8 characters or more is replaced wherever it appears, a shorter one only as a whole word, one under 3 characters not at all. These values are not kept "},{"zoneId":"t-112","kind":"text","label":"out of pages: a page may show the user's own name. Your own console.log is yours."},{"zoneId":"t-113","kind":"text","label":"Keycloak access tokens are RS256 by default; the default algorithms cover it."},{"zoneId":"t-114","kind":"text","label":"The client address"},{"zoneId":"t-115","kind":"text","label":"luxel-host's rate limits key on the client's address. Behind Envoy every request comes from Envoy's address, so list Envoy, and only Envoy, in LUXEL_TRUST_PROXY:"},{"zoneId":"t-116","kind":"text","label":"# The Envoy pods' addresses (here the gateway's pod CIDR); several entries are separated by commas.\nLUXEL_TRUST_PROXY=10.42.7.0/24"},{"zoneId":"t-117","kind":"text","label":"Envoy appends the address it received the request from to X-Forwarded-For when its listener has use_remote_address: true and skip_xff_append is left false, its default (set it in a hand-written bootstrap; check your Envoy Gateway version's "},{"zoneId":"t-118","kind":"text","label":"ClientTrafficPolicy reference for its listeners). With skip_xff_append: true the last entry is whatever the client sent. For a request from a listed peer luxel-host reads that header from the right, skips the addresses that are listed too, "},{"zoneId":"t-119","kind":"text","label":"and keys on the first one that is not. A request from any other peer (a pod that reaches luxel-host without Envoy) keeps its socket address: a forged X-Forwarded-For does not change the bucket it spends from. If a cloud load balancer sits "},{"zoneId":"t-120","kind":"text","label":"in front of Envoy, list its addresses as well, or every client keys on the balancer's address. Unset or 0 trusts nothing; there is no trust-all value (1, a CIDR wider than /8 (IPv4) or /16 (IPv6), or entries that together cover more than a "},{"zoneId":"t-121","kind":"text","label":"/6 (IPv4) or /14 (IPv6), refuses to start)."},{"zoneId":"t-122","kind":"text","label":"oauth2-proxy"},{"zoneId":"t-123","kind":"text","label":"With --pass-access-token=true, oauth2-proxy sends the provider's access token upstream as X-Forwarded-Access-Token:"},{"zoneId":"t-124","kind":"text","label":"identity: {\n  mode: 'gateway-jwt',\n  issuer: 'https://sso.example.com/realms/acme',\n  authorizedParty: 'oauth2-proxy', // the client id oauth2-proxy uses with your provider\n"},{"zoneId":"t-125","kind":"text","label":"  jwksUrl: 'https://sso.example.com/realms/acme/protocol/openid-connect/certs',\n  tokenHeader: 'x-forwarded-access-token',\n},"},{"zoneId":"t-126","kind":"text","label":"The access token must be a JWT signed by the provider; some providers issue opaque access tokens, which cannot be verified this way. --pass-authorization-header sends the ID token as Authorization: Bearer instead. Its aud is the client id, "},{"zoneId":"t-127","kind":"text","label":"so with tokenHeader: 'authorization' set audience to your oauth2-proxy client id."},{"zoneId":"t-128","kind":"text","label":"Cloudflare Access"},{"zoneId":"t-129","kind":"text","label":"Cloudflare Access signs its own token and sends it as Cf-Access-Jwt-Assertion. Its issuer is your team domain, its key set is under /cdn-cgi/access/certs, and its aud is the application's AUD tag:"},{"zoneId":"t-130","kind":"text","label":"identity: {\n  mode: 'gateway-jwt',\n  issuer: 'https://your-team.cloudflareaccess.com',\n  audience: '‹the application AUD tag>',\n  jwksUrl: 'https://your-team.cloudflareaccess.com/cdn-cgi/access/certs',\n"},{"zoneId":"t-131","kind":"text","label":"  tokenHeader: 'cf-access-jwt-assertion',\n},"},{"zoneId":"t-132","kind":"text","label":"The browser also holds this token in a CF_Authorization cookie. luxel-host reads only the header, never that cookie."},{"zoneId":"t-133","kind":"text","label":"Signing out"},{"zoneId":"t-134","kind":"text","label":"‹Logout> ends the Luxel session and, by default, redirects to a public view ("},{"zoneId":"l-135","kind":"text","label":"Sessions"},{"zoneId":"t-136","kind":"text","label":"). The real sign-out is the gateway's. As long as the gateway keeps forwarding a valid token, the next request opens a new Luxel session."},{"zoneId":"t-137","kind":"text","label":"Declare the gateway's own sign-out path in identity.signOutPath to send the browser there:"},{"zoneId":"t-138","kind":"text","label":"identity: {\n  mode: 'gateway-jwt',\n  // … issuer, audience or authorizedParty, jwksUrl …\n  signOutPath: '/oauth2/logout', // Envoy Gateway's logoutPath\n},"},{"zoneId":"t-139","kind":"text","label":"With it, the ‹Logout> form first ends the Luxel session in the store and clears its cookie, then answers 303 to that path, where the gateway ends its own session. When the store does not acknowledge the end, the answer is the usual refusal "},{"zoneId":"t-140","kind":"text","label":"and the browser is not sent on. Nothing of the request chooses the destination: it is one value of the configuration, fixed at start."},{"zoneId":"t-141","kind":"text","label":"signOutPath is one absolute path of this origin (the gateway answers on the app's own host): no scheme, host, query or fragment, no encoding, no empty or dot segment, nothing under /_luxel/, at most 256 characters. The build and luxel-host "},{"zoneId":"t-142","kind":"text","label":"refuse any other value (LUXEL-E024 at build; a start error), and the message never repeats it. The page's form-action 'self' covers the redirect. An address on another host, or one with a query (oauth2-proxy's rd), needs the general "},{"zoneId":"t-143","kind":"text","label":"external destinations, which come in a later release; until then, put that link in a page the gateway itself serves."},{"zoneId":"t-144","kind":"text","label":"What each gateway's logout address ends depends on its configuration; check it against your provider:"},{"zoneId":"t-145","kind":"text","label":"Envoy Gateway's logoutPath clears the gateway's own session. It also signs out of the provider only when the provider's end-session endpoint is configured or discovered."},{"zoneId":"t-146","kind":"text","label":"oauth2-proxy's /oauth2/sign_out clears oauth2-proxy's own cookies. The provider's session stays active, so the next visit can sign in again without a password, unless the rd parameter sends the browser on to the provider's end-session "},{"zoneId":"t-147","kind":"text","label":"address."},{"zoneId":"t-148","kind":"text","label":"Cloudflare Access's /cdn-cgi/access/logout revokes the user's Access session across all Access applications; the domain it is called on decides which domain's cookie is cleared (Cloudflare's session management "},{"zoneId":"t-149","kind":"text","label":"(https://developers.cloudflare.com/cloudflare-one/access-controls/access-settings/session-management/))."},{"zoneId":"t-150","kind":"text","label":"The ‹Logout> form's signOutPath is the only external destination for now. A link (or a ‹Logout>) to an address on another host needs declared external destinations, which come in a later release."},{"zoneId":"t-151","kind":"text","label":"What fails, and how"},{"zoneId":"t-152","kind":"text","label":"Case"},{"zoneId":"t-153","kind":"text","label":"Answer"},{"zoneId":"t-154","kind":"text","label":"Log line (no value, no token)"},{"zoneId":"t-155","kind":"text","label":"Invalid, expired, wrong iss/aud/azp, unknown kid, alg not allowed"},{"zoneId":"t-156","kind":"text","label":"401 (UNAUTHENTICATED on /_luxel/*)"},{"zoneId":"t-157","kind":"text","label":"luxel.identity.refused with a reason code"},{"zoneId":"t-158","kind":"text","label":"Another subject's token with a session's cookie"},{"zoneId":"t-159","kind":"text","label":"401; that session ends"},{"zoneId":"t-160","kind":"text","label":"luxel.identity.refused another-subject"},{"zoneId":"t-161","kind":"text","label":"The store does not acknowledge the close of the session a refused request carries (another subject's token, no token, an invalid token): 3 calls, then one abandon"},{"zoneId":"t-162","kind":"text","label":"503, no data, nothing opened. When the abandon is not acknowledged either, the answer clears the cookie, and the session stays in the store until it expires, its user is revoked or a later close succeeds (GAPS.md)"},{"zoneId":"t-163","kind":"text","label":"luxel.identity.session.close (error), luxel.identity.refused close-failed"},{"zoneId":"t-164","kind":"text","label":"identityPrincipal returns null"},{"zoneId":"t-165","kind":"text","label":"403"},{"zoneId":"t-166","kind":"text","label":"luxel.identity.refused principal"},{"zoneId":"t-167","kind":"text","label":"Too many requests from one address (the bindings' rateLimiter, a bucket of its own)"},{"zoneId":"t-168","kind":"text","label":"429, before the token is verified"},{"zoneId":"t-169","kind":"text","label":"none"},{"zoneId":"t-170","kind":"text","label":"Too many new sessions for one subject (30, then one every 2 s)"},{"zoneId":"t-171","kind":"text","label":"429"},{"zoneId":"t-172","kind":"text","label":"luxel.identity.refused rate-limited"},{"zoneId":"t-173","kind":"text","label":"The last JWKS fetch failed (unreachable, an error status, a body over 64 KiB, more than 32 keys, not a valid set), or the set is too old and cannot be refreshed"},{"zoneId":"t-174","kind":"text","label":"503, for every request that passes the identity gate (with or without a token, visitors included); nothing is opened, used or ended"},{"zoneId":"t-175","kind":"text","label":"luxel.identity.jwks, luxel.identity.refused unavailable"},{"zoneId":"t-176","kind":"text","label":"The session ended, or the token expired, while an event's body was read"},{"zoneId":"t-177","kind":"text","label":"401; the event does not run"},{"zoneId":"t-178","kind":"text","label":"luxel.identity.refused"},{"zoneId":"t-179","kind":"text","label":"identityPrincipal, the session store or the rate limiter throws"},{"zoneId":"t-180","kind":"text","label":"500; neither the error message nor the path is logged (they may quote values)"},{"zoneId":"t-181","kind":"text","label":"luxel.identity.failure with a fixed reason"},{"zoneId":"t-182","kind":"text","label":"The session closed between the host's check and your handler (adapters of @luxel-framework/server)"},{"zoneId":"t-183","kind":"text","label":"UNAUTHENTICATED; the transaction rolls back"},{"zoneId":"t-184","kind":"text","label":"none"},{"zoneId":"l-185","kind":"text","label":"Previous: Luxel behind a gateway"},{"zoneId":"l-186","kind":"text","label":"Next: Luxel behind a gateway (3)"},{"zoneId":"l-187","kind":"text","label":"Edit this page on GitHub"},{"zoneId":"t-188","kind":"text","label":"This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app."},{"zoneId":"t-189","kind":"text","label":"Measured when the site is built: the runtime files this page loads, compressed as they are sent."},{"zoneId":"l-190","kind":"text","label":"GitHub"},{"zoneId":"l-191","kind":"text","label":"Discussions"},{"zoneId":"l-192","kind":"text","label":"Apache-2.0"},{"zoneId":"l-193","kind":"text","label":"Ties and losses"},{"zoneId":"t-194","kind":"text","label":"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."}],"events":[],"messages":{"network":"Could not reach the server. Check your connection and try again.","unexpected":"Something went wrong. Reload the page."},"extensions":{"render.dom@1":{"root":{"el":"div","class":"site site--en page--doc","children":[{"el":"header","class":"topbar","children":[{"zone":"l-1","el":"span","class":"brand"},{"el":"div","class":"nav","children":[{"zone":"l-2","el":"span","class":"nav-link"},{"zone":"l-3","el":"span","class":"nav-link"},{"zone":"l-4","el":"span","class":"nav-link"},{"zone":"l-5","el":"span","class":"nav-link"},{"zone":"l-6","el":"span","class":"nav-link"},{"zone":"l-7","el":"span","class":"nav-link"},{"zone":"l-8","el":"span","class":"nav-link"}]},{"zone":"l-9","el":"span","class":"lang"}]},{"el":"main","class":"main main--doc","children":[{"el":"div","class":"sidebar","children":[{"zone":"t-10","el":"p","class":"sidebar-version"},{"zone":"l-11","el":"span","class":"side-link side-link--version"},{"zone":"l-12","el":"span","class":"side-link side-link--search"},{"zone":"t-13","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-14","el":"span","class":"side-link"},{"zone":"l-15","el":"span","class":"side-link"},{"zone":"l-16","el":"span","class":"side-link"},{"zone":"l-17","el":"span","class":"side-link"}]},{"zone":"t-18","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-19","el":"span","class":"side-link"},{"zone":"l-20","el":"span","class":"side-link"},{"zone":"l-21","el":"span","class":"side-link"},{"zone":"l-22","el":"span","class":"side-link"},{"zone":"l-23","el":"span","class":"side-link"},{"zone":"l-24","el":"span","class":"side-link"},{"zone":"l-25","el":"span","class":"side-link"},{"zone":"l-26","el":"span","class":"side-link"},{"zone":"l-27","el":"span","class":"side-link"},{"zone":"l-28","el":"span","class":"side-link"},{"zone":"l-29","el":"span","class":"side-link"},{"zone":"l-30","el":"span","class":"side-link side-link--current"},{"zone":"l-31","el":"span","class":"side-link"},{"zone":"l-32","el":"span","class":"side-link"}]},{"zone":"t-33","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-34","el":"span","class":"side-link"},{"zone":"l-35","el":"span","class":"side-link"},{"zone":"l-36","el":"span","class":"side-link"},{"zone":"l-37","el":"span","class":"side-link"}]},{"zone":"t-38","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-39","el":"span","class":"side-link"},{"zone":"l-40","el":"span","class":"side-link"},{"zone":"l-41","el":"span","class":"side-link"}]},{"zone":"t-42","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-43","el":"span","class":"side-link"},{"zone":"l-44","el":"span","class":"side-link"},{"zone":"l-45","el":"span","class":"side-link"}]},{"zone":"l-46","el":"span","class":"side-link side-link--index"}]},{"el":"section","class":"article","children":[{"zone":"t-47","el":"p","class":"doc-meta"},{"zone":"t-48","el":"h1","class":"page-title"},{"el":"div","class":"block","children":[{"el":"div","class":"table-wrap","children":[{"el":"table","class":"table","children":[{"el":"thead","children":[{"el":"tr","children":[{"zone":"t-49","el":"th"},{"zone":"t-50","el":"th"},{"zone":"t-51","el":"th"}]}]},{"el":"tbody","children":[{"el":"tr","children":[{"zone":"t-52","el":"td"},{"zone":"t-53","el":"td"},{"zone":"t-54","el":"td"}]}]}]}]},{"zone":"t-55","el":"p","class":"para"},{"el":"p","class":"para","children":[{"zone":"t-56","el":"span"},{"zone":"t-57","el":"span"}]},{"zone":"t-58","el":"h2","class":"minor"},{"el":"p","class":"code","children":[{"zone":"t-59","el":"span"},{"zone":"t-60","el":"span"},{"zone":"t-61","el":"span"},{"zone":"t-62","el":"span"},{"zone":"t-63","el":"span"}]},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-64","el":"li"},{"zone":"t-65","el":"li"},{"el":"li","children":[{"zone":"t-66","el":"span"},{"zone":"t-67","el":"span"}]},{"el":"li","children":[{"zone":"t-68","el":"span"},{"zone":"t-69","el":"span"}]},{"el":"li","children":[{"zone":"t-70","el":"span"},{"zone":"t-71","el":"span"},{"zone":"t-72","el":"span"}]},{"el":"li","class":"depth-1","children":[{"zone":"t-73","el":"span"},{"zone":"t-74","el":"span"}]},{"zone":"t-75","el":"li","class":"depth-1"},{"el":"li","class":"depth-1","children":[{"zone":"t-76","el":"span"},{"zone":"t-77","el":"span"}]},{"el":"li","class":"depth-1","children":[{"zone":"t-78","el":"span"},{"zone":"t-79","el":"span"}]},{"el":"li","class":"depth-1","children":[{"zone":"t-80","el":"span"},{"zone":"t-81","el":"span"}]},{"el":"li","class":"depth-1","children":[{"zone":"t-82","el":"span"},{"zone":"t-83","el":"span"},{"zone":"t-84","el":"span"},{"zone":"t-85","el":"span"}]},{"zone":"t-86","el":"li"}]}]},{"zone":"t-87","el":"h2","class":"section-title"},{"zone":"t-88","el":"p","class":"para"},{"el":"p","class":"code","children":[{"zone":"t-89","el":"span"},{"zone":"t-90","el":"span"},{"zone":"t-91","el":"span"}]},{"el":"p","class":"para","children":[{"zone":"t-92","el":"span"},{"zone":"t-93","el":"span"},{"zone":"t-94","el":"span"}]},{"zone":"t-95","el":"p","class":"para"},{"zone":"t-96","el":"p","class":"code"},{"zone":"t-97","el":"p","class":"para"},{"el":"p","class":"code","children":[{"zone":"t-98","el":"span"},{"zone":"t-99","el":"span"}]},{"zone":"t-100","el":"p","class":"para"},{"zone":"t-101","el":"p","class":"para"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-102","el":"li"},{"el":"li","children":[{"zone":"t-103","el":"span"},{"zone":"t-104","el":"span"}]},{"el":"li","children":[{"zone":"t-105","el":"span"},{"zone":"t-106","el":"span"},{"zone":"t-107","el":"span"}]},{"el":"li","children":[{"zone":"t-108","el":"span"},{"zone":"t-109","el":"span"}]},{"el":"li","children":[{"zone":"t-110","el":"span"},{"zone":"t-111","el":"span"},{"zone":"t-112","el":"span"}]},{"zone":"t-113","el":"li"}]}]},{"zone":"t-114","el":"h2","class":"minor"},{"zone":"t-115","el":"p","class":"para"},{"zone":"t-116","el":"p","class":"code"},{"el":"p","class":"para","children":[{"zone":"t-117","el":"span"},{"zone":"t-118","el":"span"},{"zone":"t-119","el":"span"},{"zone":"t-120","el":"span"},{"zone":"t-121","el":"span"}]},{"zone":"t-122","el":"h2","class":"section-title"},{"zone":"t-123","el":"p","class":"para"},{"el":"p","class":"code","children":[{"zone":"t-124","el":"span"},{"zone":"t-125","el":"span"}]},{"el":"p","class":"para","children":[{"zone":"t-126","el":"span"},{"zone":"t-127","el":"span"}]},{"zone":"t-128","el":"h2","class":"section-title"},{"zone":"t-129","el":"p","class":"para"},{"el":"p","class":"code","children":[{"zone":"t-130","el":"span"},{"zone":"t-131","el":"span"}]},{"zone":"t-132","el":"p","class":"para"},{"zone":"t-133","el":"h2","class":"section-title"},{"el":"p","class":"para","children":[{"zone":"t-134","el":"span"},{"zone":"l-135","el":"span"},{"zone":"t-136","el":"span"}]},{"zone":"t-137","el":"p","class":"para"},{"zone":"t-138","el":"p","class":"code"},{"el":"p","class":"para","children":[{"zone":"t-139","el":"span"},{"zone":"t-140","el":"span"}]},{"el":"p","class":"para","children":[{"zone":"t-141","el":"span"},{"zone":"t-142","el":"span"},{"zone":"t-143","el":"span"}]},{"zone":"t-144","el":"p","class":"para"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-145","el":"li"},{"el":"li","children":[{"zone":"t-146","el":"span"},{"zone":"t-147","el":"span"}]},{"el":"li","children":[{"zone":"t-148","el":"span"},{"zone":"t-149","el":"span"}]}]}]},{"zone":"t-150","el":"p","class":"para"},{"zone":"t-151","el":"h2","class":"section-title"},{"el":"div","class":"table-wrap","children":[{"el":"table","class":"table","children":[{"el":"thead","children":[{"el":"tr","children":[{"zone":"t-152","el":"th"},{"zone":"t-153","el":"th"},{"zone":"t-154","el":"th"}]}]},{"el":"tbody","children":[{"el":"tr","children":[{"zone":"t-155","el":"td"},{"zone":"t-156","el":"td"},{"zone":"t-157","el":"td"}]},{"el":"tr","children":[{"zone":"t-158","el":"td"},{"zone":"t-159","el":"td"},{"zone":"t-160","el":"td"}]},{"el":"tr","children":[{"zone":"t-161","el":"td"},{"zone":"t-162","el":"td"},{"zone":"t-163","el":"td"}]},{"el":"tr","children":[{"zone":"t-164","el":"td"},{"zone":"t-165","el":"td"},{"zone":"t-166","el":"td"}]},{"el":"tr","children":[{"zone":"t-167","el":"td"},{"zone":"t-168","el":"td"},{"zone":"t-169","el":"td"}]},{"el":"tr","children":[{"zone":"t-170","el":"td"},{"zone":"t-171","el":"td"},{"zone":"t-172","el":"td"}]},{"el":"tr","children":[{"zone":"t-173","el":"td"},{"zone":"t-174","el":"td"},{"zone":"t-175","el":"td"}]},{"el":"tr","children":[{"zone":"t-176","el":"td"},{"zone":"t-177","el":"td"},{"zone":"t-178","el":"td"}]},{"el":"tr","children":[{"zone":"t-179","el":"td"},{"zone":"t-180","el":"td"},{"zone":"t-181","el":"td"}]},{"el":"tr","children":[{"zone":"t-182","el":"td"},{"zone":"t-183","el":"td"},{"zone":"t-184","el":"td"}]}]}]}]}]},{"el":"div","class":"pager","children":[{"zone":"l-185","el":"span","class":"pager-link"},{"zone":"l-186","el":"span","class":"pager-link pager-link--next"}]},{"zone":"l-187","el":"span","class":"edit-link"}]}]},{"el":"footer","class":"footer","children":[{"zone":"t-188","el":"p","class":"jsline"},{"zone":"t-189","el":"p","class":"jsnote"},{"el":"div","class":"footer-links","children":[{"zone":"l-190","el":"span","class":"footer-link"},{"zone":"l-191","el":"span","class":"footer-link"},{"zone":"l-192","el":"span","class":"footer-link"},{"zone":"l-193","el":"span","class":"footer-link"}]},{"zone":"t-194","el":"p","class":"made"}]}]}},"projection.slots@1":{"template":"/_luxel/a/docs-v0-2-behind-a-gateway-2.a4f5e9bd1368.html","map":"/_luxel/a/docs-v0-2-behind-a-gateway-2.slots.d202215ac1fb.json"}}}