Password protection
Password protection puts a password page in front of a hostname of your storefront. The check runs at Cloudflare's edge, before the request reaches your storefront or its cache. The limits page lists its numbers.
What it protects
- Previews are protected by default: every deployment's own address (
<name>-<9 characters>.laioutr.app) and the addresses of environments other than production. - Production's own hostname and your domains are protected when you switch them on, one by one.
- An apex hostname (
example.comwithoutwww) is never protected. It redirects towww; protect that hostname.
When you protect one hostname of a storefront while another hostname serves the same storefront publicly, Cockpit names the public one, so the content is not reachable unprotected by accident.
What stays reachable
A path with a segment after /webhooks/, such as /webhooks/app-<name>/<webhook>, stays reachable without the
password on every protected hostname. A service that sends webhooks from its own servers cannot enter a password; it
signs each delivery instead. The edge does not check that signature. The route under /webhooks/ has to, before it
parses the delivery or acts on it, so whatever a route there answers, it answers to anyone. The edge passes these
requests on with their method, headers and body unchanged. It only takes the protection's own header, query
parameters and cookie off the request, the referer included, and resolves . and .. segments in the path.
Nothing else is exempt. Every other path an app serves, its OAuth callbacks included, stays behind the password.
/webhooks and /webhooks/ themselves are protected, and so is a path that only resembles a delivery path: one that
leaves the prefix once resolved, such as /webhooks/../checkout, one with an empty segment right after the prefix,
such as /webhooks//x, and one with an encoded /, \ or . (%2F, %5C, %2E, in either case) anywhere in its
path.
/webhooks/ shows a page under
/webhooks/ to anyone, without the password. From that release on, Frontend Core answers a path under /webhooks/
that no route claims with a plain 404, and no longer serves a Studio page there. An older build renders such a path
like any other page: usually the storefront's own 404 page with its header, footer and navigation, or the Studio page
at that path if there is one. Upgrade Frontend Core to the latest release on each protected storefront and deploy it.
A deployment built before the upgrade keeps this behavior on its own address for as long as it is
kept: a preview until a newer deployment of its name replaces it,
a replaced production deployment for 24 hours. Rolling production back to such a deployment brings it back on your
hostnames.Setting the password
Open Hosting › Laioutr Cloud in Cockpit and go to Password protection. Project Managers and Owners can set it.
A project has one password. A new password replaces the old one and logs out everyone who used the old one. A visitor who entered the password stays logged in for 7 days.
Bypass secrets for automation
A bypass secret lets a machine through without the password page: a CI smoke test, an end-to-end test suite, a monitoring check. Create one per machine in the same panel, so you can revoke one without the others.
- Send the secret in the header
x-laioutr-protection-bypass: <secret>. - When you cannot set a header, send it as the query parameter
?x-laioutr-protection-bypass=<secret>. - To get a cookie instead, add
x-laioutr-set-bypass-cookie=trueto aGETrequest with the secret. The answer sets the cookie and redirects to the same URL without the parameters. Inside a cross-site frame, usex-laioutr-set-bypass-cookie=samesitenone.
A wrong secret is treated like none: the visitor sees the password page. The secret never reaches your storefront. A revoked secret stops working within 60 seconds.
Laioutr Studio
Laioutr Studio has its own bypass secret, which Cockpit creates for you. It lets Studio show your protected previews. It cannot be revoked; if it leaks, rotate it in the panel.
Examples
A CI smoke test against a deployment's own address:
curl -fsS -H 'x-laioutr-protection-bypass: prbp_…' https://<name>-<9 characters>.laioutr.app/
A Playwright suite that sends the secret with every request:
import { defineConfig } from '@playwright/test';
export default defineConfig({
use: {
baseURL: process.env.PREVIEW_URL,
extraHTTPHeaders: { 'x-laioutr-protection-bypass': process.env.LAIOUTR_PROTECTION_BYPASS! },
},
});
Logs
Where the level of each line your storefront writes comes from, what one entry holds, and how to find the lines of one request.
Hyperscaler
While Laioutr Cloud provides a built-in default hosting environment, Laioutr is designed to remain fully extensible for teams with their own infrastructure and deployment requirements.