Lolly Beta
Launch App

DeployInstance configuration, SSO and signing

Lolly Work instance configuration

Note: Lolly Work

This guide covers the optional organisation service. Configuration, console and API paths refer to your Lolly Work instance. The packaged console keeps its release-matched copy of this guide.

A Lolly Work server takes its settings from three places. Knowing which one holds a setting tells you whether changing it needs a restart, and whether the value is safe to keep in version control.

Where settings live

instance.json

Shapes the deployment

  • who can sign in
  • storage and limits
  • the render worker
  • notifications and the audit head log

Read at startEdit the file, then restart. Safe to keep in version control.

Environment

Holds every secret, and a few process switches

  • session and link keys
  • provider and blob credentials
  • mail, webhook and signing keys
  • database, port and migrations

Read at startSet it in your secret store. Never in the file.

Governance

Changes day to day

  • grants
  • tool overlays
  • approval chains
  • feature flags and provider exposure

LiveChange it in the console, or export and apply it as a document.

Members' apps read the outcome through GET /api/v1/org-config. Secrets never leave the server.

The file and the environment are read when the server starts; governance changes while it runs.

signed by Lollywork-configuration-layers.htmlHTMLpixels, not shapes9 KBAI generatedgenerated by Claude Opus 5.5Check it yourselfGet the signed file

Feature-flag governance in the console: each flag's default state and whether people may change it signed by Lolly Demovector SVG11 paths160 nodes83 groups10 images195 KBCheck it yourselfGet the signed fileFeature-flag governance in the console: each flag's default state and whether people may change it signed by Lolly Demovector SVG11 paths160 nodes83 groups10 images195 KBCheck it yourselfGet the signed file

Unset keys take the defaults on this page. instance.example.json in the Lolly Work repository is a working starting point, and server/src/config/instance.ts is the authority. On a running instance, the console's Limits and quotas tab, and GET /api/v1/limits (policy.edit), list each limit the instance enforces with its value and its source: configuration, environment or a built-in default.

A starting file

A production instance needs a handful of keys, and the rest can keep their defaults:

{
  "deployment": { "mode": "production" },
  "instance": {
    "name": "Example Studio",
    "baseUrl": "https://work.example.com",
    "pack": "/srv/lolly-work/pack",
    "catalogPublicationGeneration": 1
  },
  "idp": {
    "issuer": "https://sso.example.com/realms/example",
    "clientId": "lolly-work",
    "displayName": "Example SSO"
  }
}

Set DATABASE_URL, LW_SESSION_SECRET and LW_LINK_SECRET in the environment (signing secrets of at least 32 bytes), plus LW_IDP_CLIENT_SECRET if the identity provider issues one. Add idp.admission to limit who may sign in: without it every verified sign-in is admitted, and setup warns. Map idp.roleGroups too: setup also warns for each of owner, admin, approver and author left unmapped, because a group with exactly that name at the identity provider would grant the role.

Run pnpm run check:setup with the deployment's configuration and environment to read the same local checks as startup. It exits 1 for failed production checks and 0 otherwise; a zero exit does not turn not-tested integrations into acceptance evidence. It neither connects to the database nor calls identity, renderer or asset providers. The owner console's Customer setup page also checks the running store and pending migrations, and generates deployment files for a staged owner cutover (Customer setup).

deployment

KeyDefaultWhat it does
modeautoproduction enforces production checks regardless of NODE_ENV. evaluation permits memory storage and ephemeral secrets, including inside a production container. auto inherits production from NODE_ENV for existing installations.
applicationapiapi serves the console and API without requiring an employee shell. web requires a governed shellDir or external appUrl. A configured shellDir is checked in either profile.
requireServerRenderingfalseRequire every advertised tool to have at least one configured server format. Hooked and HTML-layout tools need a worker URL and secret. This checks configuration, not a successful worker render.
Note: What production refuses

Production refuses memory storage, development login, open access, missing identity, an unsafe public base URL, signing secrets shorter than 32 bytes, inconsistent worker or signer configuration, and an incompatible active pack.

Helm defaults to production; the evaluation overlay and example JSON select evaluation.

instance

KeyDefaultWhat it does
nameLolly Workthe deploy's display name, also called the workspace name: console rail, sign-in card, /healthz, instanceName in /api/auth/config, and the invite, refusal and request pages, notices and copied invite messages ("Ana invited you to Example Studio"). Use the name people already know
baseUrlhttp://localhost:8787the URL this deploy answers on. Drives OIDC redirect URIs and the Secure cookie flag - must match reality. Passkeys are offered only when this is HTTPS on a host name, or http://localhost; never on a bare IP address
pack./packs/demothe brand pack mount: catalog, tools, design tokens, fonts, logos. The default is the small demo pack committed at packs/demo; the server warns at boot if the path does not exist, and the catalog is empty until it does
catalogPublicationGenerationunsetoperator-provisioned, positive safe integer identifying an immutable mounted release; 0 and negative numbers are refused. Production requires a generation, supplied here or by a verified signed source envelope. Advance the number when changing an unsigned pack or its engine pin; never decrease a generation or reuse one for different bytes.
catalogPublicKeyunseta public P-256 key as a JWK (kty: "EC", crv: "P-256", no private d) that verifies a mounted catalog's signed publication sequence
shellDirunsetpath to a built Lolly shells/web/dist. Set ⇒ the shell is served at / on one origin (session cookies work, the shell's org/ governance seam activates)
shellReleasePointerunsettrue serves immutable shell releases instead of one dist: shellDir/current.json selects the current release under shellDir/releases/, and the previous and retained releases keep answering for clients still on them. Needs an absolute shellDir
appUrlunsetwhere the Lolly app lives when it is not same-origin (a Vite dev server, a split deploy). The console sends "Open Lolly" and deep links to this address
modelOriginhttps://lolli.liwhere the served shell's on-device models come from when the shell dist does not carry them. The public shell build does not: its model files live on the project's release host. A request for /models/... that shellDir cannot answer is passed to this exact origin, so the browser stays on one origin and an interrupted download resumes (Range, If-Range and the validators go through). null keeps every model request on this server, for a dist built with its models or a deployment that offers none. HTTPS only, without a path (a loopback http:// origin is accepted for local testing)
connectorOriginsunsetexact HTTPS origins (no paths, wildcards or credentials; at most 32) that the served shell's custom connectors may reach. Added to the shell's connect-src only; every other directive and header is unchanged. Use it where the ingress cannot replace response headers, for example a shared cluster with snippet annotations disabled. The shell build's VITE_CONNECTOR_ORIGINS must list the same origins, and each provider's CORS must allow the workspace origin
brandTokensunsetmap source IDs (mounted or profile:<name>) to explicit tokens asset IDs; required when a source has multiple independent heads
connectPackunseta .lolly instance pack to HOST from boot - a path relative to pack (or absolute). Seeded only before any durable branding decision, while no download is suppressed or hosted, so an ephemeral deploy offers /connect/pack.lolly without an owner ever uploading; an owner's own upload always wins, and a file naming a different instance base is refused loudly at seed time
inviteNoteunsetone plain-text line shown on the invite page and at the end of copied invite messages, such as which sign-in to use when an organisation blocks one. Trimmed, at most 240 characters, no line breaks; an empty line is the same as unset. See invite links
homeViewunsetthe view a signed-in member's Lolly opens on when they arrive at the bare address: tools (the tools gallery) or projects (their Projects). Unset means tools. A link to a tool, a team project or a view still opens where it points, and choosing Tools later still shows the tools. Sent to members' shells in GET /api/v1/org-config as home; a shell that predates the setting ignores home
homeUrlunsetoptional destination for the Home button and arrival at the bare address, overriding homeView. A root-relative URL such as /#/p?team=project-id, or an HTTPS URL for an organisation's own landing page. Credentials, protocol-relative URLs and executable schemes are refused. Explicit document and view links keep their destinations

pack supports materialized trees, modern profiles.json roots and legacy brand layouts. Selection lives in the Store; mounted files are never rewritten. See Design-system administration for persistence requirements and explicit tokens selection.

The publication fence records both the generation and the mounted release digest. Startup verifies this identity before /readyz succeeds; /healthz remains a liveness check. The engine pin is normalized as canonical JSON in both source and bundled servers. When upgrading a server that recorded the earlier raw-file pin identity, provision a higher positive catalogPublicationGeneration for the reviewed release once. Keep the existing fence and sequence history; deleting them would remove rollback protection.

What production mode needs from a pack. A positive generation, from one of two places: set catalogPublicationGeneration, or mount a pack whose catalog/tools/index.sig.json carries a signed sequence and set catalogPublicKey to the key that verifies the signature. The demo pack in the image is unsigned, so production with the demo pack needs catalogPublicationGeneration: 1. Without either, /readyz answers 503 with "catalog": "failed" and the log says which condition failed; restart after fixing the configuration.

Under a non-open access mode, a shellDir that is missing or predates the org/ governance module stops boot. LW_ALLOW_STALE_SHELL=1 downgrades that refusal to a warning in evaluation only; production still refuses the old shell.

idp

KeyDefaultWhat it does
issuer""Exact OIDC issuer URL; see the supported profile in the enterprise identity guide
clientId""the client this deploy authenticates as
displayName""human name on the sign-in button ("Keycloak", "Company SSO", "ZITADEL"). Empty ⇒ "SSO"
groupsClaimgroupsthe claim carrying group membership
claimMapgiven_name / family_name / email / titlewhich claims fill firstname, lastname, email, title. email_verified vouches only for the email claim: a remapped email counts as verified only when it equals email, otherwise only under emailVerification: trusted
roleGroups{}exact groups for owner/admin/brand-manager/approver/author/member/viewer. Highest match wins; unmatched accounts are members. Omitted owner/admin/approver/author retain literal legacy names; omitted brand-manager/member/viewer have no mapping, so brand-manager is held only through this mapping (roles). An explicit empty array disables that role mapping. Each group can appear once. Applies to IdP and local groups, including existing accounts after restart.
additional[]further IdPs beside the primary - each { id, kind?, issuer, clientId, displayName, groupsClaim?, claimMap?, clientSecretRef? }. kind is oidc (default), github or password. A GitHub entry takes no issuer, needs clientSecretRef, refuses scopes, authParams, hostedDomain and tenantId, and accepts only emailVerification: "claim" (see the GitHub recipe). A password entry is described below. Unset claims inherit the primary's; the secret rides the env var clientSecretRef names; subs store namespaced <id>:<sub>. With several houses, plain /api/auth/login serves a chooser. Each entry may also set the per-IdP keys below (hostedDomain, tenantId, emailVerification, scopes, authParams); those are never inherited from the primary. See more than one IdP
admissionabsentwho may sign in, checked on every OIDC, GitHub, password and proxy sign-in before a user row is written: { emails?: string[], domains?: string[], invitations?: boolean (default true) }. Absent = every verified sign-in is admitted (production setup warns). {} admits invitations only. Admission by email, domain or invitation needs a verified email (see emailVerification). See who may sign in
linkedStandingDays30whole days, 1-365. How long one sign-in's IdP groups, and the account's own sign-in's standing under admission, carry over to the person's other linked sign-ins. See one person, several sign-ins
bootstrapOwners[]emails that get the owner group (first roleGroups.owner name, else owner) on first account creation once admitted with a verified email. The group remains in local membership until an owner removes the group. Audited as auth.bootstrap-owner. Each must be admitted by admission.emails or admission.domains; refused when roleGroups.owner is []
pendingabsentup to eight provider names (each up to 80 characters) shown as disabled choices, such as Company SSO (pending), on the sign-in and invitation pages. Adds no sign-in route. See planned sign-ins
hostedDomainabsentper IdP. Google Workspace domain: the hd claim must equal it (a mismatch or missing claim refuses), and it is sent as the hd authorization parameter
tenantIdabsentper IdP. Microsoft Entra directory id (GUID): the tid claim must equal this id
emailVerificationclaimper IdP. claim: email-based admission needs email_verified: true. trusted: every email this IdP sends counts as verified (tenant-pinned IdPs that omit the claim)
linkByEmailprimary: true under claim; additional: falseper IdP. Whether a sign-in from this IdP may join an existing person whose email matches. Additional providers require an explicit choice. Owner and admin accounts never join by email. The primary default requires a verified address; set true to link from a trusted IdP (refused unless that IdP has a hostedDomain or tenantId pin), or false to never link from this one
scopes["openid", "profile", "email"]per IdP. Requested scopes, a list or a space-separated string; must include openid
authParams{}per IdP. Extra authorization request parameters, allowlisted: prompt, hd, domain_hint, login_hint, acr_values. Any other key is refused; hd must equal hostedDomain when both are set
Advanced keys for each OIDC provider

These settings apply to each OIDC provider independently and are not inherited by additional entries. GitHub and password entries refuse them. See Enterprise identity deployment for registration, claim semantics, acceptance checks and lifecycle procedures.

KeyDefaultWhat it does
tokenEndpointAuthMethodclient_secret_post with a secret, otherwise noneclient_secret_basic, client_secret_post or none; must match provider registration and advertised metadata
signingAlgorithmRS256Exactly one of RS256, ES256, PS256; other algorithms are refused
trustedAudiencesabsentExplicit additional audience strings; the Lolly Work client must still be present and azp, when present, must match the Lolly Work client
assurance.acrValuesabsentNonempty string list; returned acr must equal one entry
assurance.amrValuesabsentNonempty string list; returned amr must include every entry
assurance.maxAgeSecondsabsentInteger 0-86400; requires auth_time within this age, with sixty seconds of tolerance
Note: Gated access needs a sign-in

Gated access needs idp.issuer, proxyAuth.enabled or a password entry, or dev.enabled for local work. The server refuses to start otherwise. See identity.

Email and password (kind: "password")

For people who cannot use the instance's other sign-ins. Add one entry to idp.additional:

{ "id": "email", "kind": "password", "label": "Email and password" }
KeyDefaultWhat it does
id-the slug in /api/auth/login?idp=<id>. password is reserved for this kind
kind-password
labelEmail and passwordthe chooser button and the sign-in list in a person's Lolly Settings; displayName is accepted instead
linkByEmailfalseas for every additional entry, unset means no. true lets a password sign-in join the existing person who holds the same verified email. The other way round never happens: a password sign-in is stored unverified (an admin typed the address, no mailbox proved it), so no later sign-in through another provider joins an account by it

How people get and reset a password, who may issue a link, the lockout and what each sign-in checks are in email and password.

policy

What members may do, how long things last and how much they may store. Lolly reads the limits it needs from org-config.

Access, sessions and AI

KeyDefaultWhat it does
defaultAccessModegatedopen (anonymous catalog), gated (sign-in required), per-tool
sessionTtlHours12member session lifetime (token exp and cookie Max-Age); must be > 0 and ≤ 720
sessionMaxHoursunsetthe longest a session chain may run after the sign-in that started it, with sliding renewal on. Unset equals sessionTtlHours, which turns renewal off. When set it must be ≥ sessionTtlHours and ≤ 720. A session past half its TTL gets a fresh cookie on the next API write or poll of the session, org-config or inbox, never past authAt + sessionMaxHours. A device approved at /activate, and the browser kept signed in after removing a sign-in, continue the approving chain under the same cap; with renewal off that cap is sessionTtlHours from the sign-in, so a device approved late in a browser session gets only that session's remaining time. See identity
serviceTokens.allowLegacyUnboundedtruekeep accepting service tokens minted before tokens had an expiry. New tokens always expire. Rotate those integrations, then set false
ai.enabledfalseapproval ceiling for managed AI; the audited ai flag must also be explicitly On. See managed AI.
ai.capabilities[]explicit capability list; required and nonempty when enabling AI. Unknown or duplicate capabilities are rejected.

A shorter sessionTtlHours bounds token lifetime while a directory change has not yet reached Lolly Work. With sessionMaxHours set, a cookie in use is renewed up to that cap, but each renewal checks the account, its session epoch and admission again first, so a person who left the lists stops at the end of their current cookie. Once Lolly Work receives a group or role change, authorization uses the live record on each request. Disabling an account or bumping its session epoch revokes existing member tokens on their next authenticated request. Token expiry does not replace the offboarding integration.

Invitations, requests and sharing

KeyDefaultWhat it does
guestLinks.enabledtruewhether guest-edit links may be minted at all
guestLinks.maxTtlHours168hard cap on any guest link's lifetime
guestLinks.defaultTtlHours72the default offered when minting
invites.allowadminswho may invite new people by email, from inside Lolly or from the console and lw invite add: owners (instance owners), admins (holders of user.invite: admins and owners by default) or members (any member not denied user.invite). Inviting through a project also needs manager on that project
invites.domains[]when not empty, a new address must be at one of these domains (a leading @ is dropped, matching is case-insensitive)
invites.maxTtlHours720how long an invitation made from a project stays open; at most 8784 (366 days)
invites.projectRolesall fourwhich project roles may be given by invitation, role change or group grant: any of viewer, commenter, editor, manager. A commenter reads and comments but never changes artwork
invites.passwordDomains[]domains whose people usually sign in with email and password, the same rule as domains. When every address on a console or project invite is at one of them, "Can set a password" starts ticked, so the invite link also sets the password. It only suggests: the tick stays an admin's choice. See setting a password from the link
requests.projecttruemembers may ask for access to a project or session link they cannot open, and viewers may ask to edit. See asking for access
requests.joinfalsea person who signed in but is not admitted may ask the admins to let them in, from the refusal page. Off by default, because it lets anyone who can sign in somewhere reach the admins. See asking to join
requests.ttlDays14whole days, 1 to 60. How long a request stays open before it expires, with its notice
requests.joinOpenMax50whole number, 1 to 1000. The most requests to join and to use another account for an invitation that may be open at once across the instance; past it, new ones are held (the person sees the same page, nothing is stored)
sharing.instance.enabledtruewhether a project may be shared with everyone signed in to this instance (never guests or service tokens). false also stops shares made before the change
sharing.instance.maxRolecommenterthe highest role that audience may get: viewer, commenter or editor. Lowering it lowers existing shares too
sharing.customGroupstruewhether members may make their own groups (group.create) and share projects with them. These groups never count as directory groups for grants
sharing.maxGrantDaysunsetthe longest end date a membership or group grant may carry, in whole days (1 to 3660). Unset means no limit
nearby.enabledtrueinstance-mediated "nearby" presence: the collab.nearby capability bit and both /api/v1/collab/nearby routes. false keeps the whole surface dark fleet-wide

policy.invites is optional; leaving it out keeps the defaults above. Unknown keys and values outside the lists are refused at startup, here and in policy.sharing and policy.ai.

The tier and the domain list govern invitations, which let someone new sign in; sharing a project with someone who already has an account needs manager on the project and an allowed role only. The console does not edit this block (its configuration document covers grants, overlays, chains, providers, flags and catalog fields), so change it in the configuration and redeploy. See invite policy.

"policy": {
  "invites": { "allow": "members", "domains": ["example.com"], "maxTtlHours": 168, "projectRoles": ["viewer", "editor"] }
}

policy.requests is optional too, and unknown keys in it are refused at startup. Requests answer to the same rules as inviting: an approver may only grant what they could grant directly. This example turns join requests on, keeps the invitation lifetime at its 30-day default, and suggests the password tick for example.com addresses:

"instance": {
  "name": "Example Studio",
  "inviteNote": "If your organisation blocks Google sign-in, use GitHub or email and password."
},
"policy": {
  "invites": { "passwordDomains": ["example.com"] },
  "requests": { "join": true, "project": true, "ttlDays": 14, "joinOpenMax": 50 }
}

Comments and versions

KeyDefaultWhat it does
comments.enabledtruedurable canvas review; false disables reading and writing comment threads without changing session access
comments.mentionstrue@ mentions in comments and the comment-people list behind them; false stores no mentions and refuses that list. See canvas comments
comments.noticestrueinbox notices for mentions and replies; false writes none and hides the ones already written (they are still removed at 30 days)
comments.emailTitlesfalsename the document in mention email. Off, a private document's title is not sent to a mail provider. Mention email itself is a seam that is off in this release
versions.maxBytes1073741824bytes of saved-version content all documents together may hold (1 GiB); one document may hold at most 100 MiB. Over it the oldest automatic versions are removed first, then a named save or a restore answers 409 VERSION_SPACE. See data lifecycle

Files and uploads

KeyDefaultWhat it does
projectFiles.enabledtrueshared files inside team projects. They also need a durable store: on the memory store they are off whatever this says. See shared files
projectFiles.maxFileBytes26214400largest single file (25 MiB); at most 4294967296 (4 GiB, migration 0075). Over it: 413 PROJECT_FILE_TOO_LARGE
projectFiles.projectBudgetBytes134217728bytes of files one project may hold (128 MiB). Over it: 413 PROJECT_FILE_BUDGET
projectFiles.instanceBudgetBytes268435456bytes of files all projects together may hold (256 MiB). Over it: 413 INSTANCE_FILE_BUDGET
projectFiles.uploadTtlHours24the longest an unfinished upload stays open; at most 720. It expires sooner, 15 minutes after its begin or its last accepted part. An expired upload counts toward no budget; once it is an hour past expiry it is removed at the next upload or retention run
uploads.enabledfalsescoped uploads: private, resumable uploads a person or a service token names by reference as a catalog submission original, an automation input or a file reference. Off by default, and upgrading leaves them off; turning them on adds uploads.instanceBudgetBytes to what the blob store may hold (see below). See resumable uploads
uploads.maxFileBytes67108864largest single upload (64 MiB); at most 4294967296 (4 GiB). A catalog original is also capped at submit.maxBytes. Over it: 413 UPLOAD_TOO_LARGE
uploads.ownerBudgetBytes134217728bytes one person or service token may hold in uploads that have not expired (128 MiB). Over it: 413 UPLOAD_BUDGET
uploads.instanceBudgetBytes268435456bytes all owners together may hold (256 MiB). Over it: 413 INSTANCE_UPLOAD_BUDGET
uploads.uploadTtlHours24the longest an unfinished upload stays open; at most 720. It expires sooner, 15 minutes after its begin or its last accepted part
uploads.readyTtlHours24how long a finished upload can be named after it finished; at most 720. A catalog submission removes its upload sooner
uploads.fileTtlHours168how long a finished file reference can be read and named after it finished (a week); at most 720. Its owner can delete it sooner
approvalArtifacts.enabledtruewhether an approval request can carry its file. Nothing is stored until a chain is bound to a tool and someone asks for a review. Off, shells send a request with the tool's id and no file
approvalArtifacts.maxFileBytes67108864largest file one request can carry (64 MiB); at most 536870912 (512 MiB). Over it: 413 UPLOAD_TOO_LARGE
approvalArtifacts.instanceBudgetBytes1073741824bytes all stored request files may hold (1 GiB). Over it: 413 APPROVAL_ARTIFACT_BUDGET
approvalArtifacts.closedRetentionDays30days a rejected request keeps its file; 0 keeps the file with the record. A withdrawn request's file goes at once
approvalArtifacts.approvedRetentionDays0days an approved request keeps its file; 0 keeps the file with the record
approvalArtifacts.recordInCredentialstruewhether a request may ask for its approval to be recorded in the approved file's Content Credentials. It also needs a signing identity. false leaves every approved file as reviewed

Both blocks take whole numbers above zero, and the caps nest: maxFileBytes no larger than projectBudgetBytes (or ownerBudgetBytes), and that no larger than instanceBudgetBytes. Anything else is refused at startup. Budgets count finished files and unfinished uploads that have not expired, each at its size plus 4096 bytes for its database rows, so many tiny files fill a budget too; a file reference also counts the size of its derivedFrom and report as JSON. One person's unfinished project-file uploads may declare twice maxFileBytes in all, one owner may hold 16 unfinished uploads at once, and one person may download twice the project files' instanceBudgetBytes a day (counted per server process).

The defaults are sized for a small hosted Postgres that also holds the file bytes (the pg blob driver); a small hosted plan can stop accepting writes once its storage allowance is used. Raise them only with the storage to match.

Scoped uploads live in the same blob store as project files, under a separate instance budget, so the two instance budgets add up: with both defaults the blob store may hold 512 MiB of uploads instead of 256 MiB. A begin needs tool.use or catalog.submit, and members hold tool.use by default, so most members and service tokens can use that room. Size both budgets against the storage before turning uploads on.

Three budget examples

Tighter project files for a small database:

"policy": {
  "projectFiles": { "maxFileBytes": 10485760, "projectBudgetBytes": 67108864, "instanceBudgetBytes": 268435456 }
}

Uploads on, with the blob store still capped at 256 MiB in all:

"policy": {
  "projectFiles": { "instanceBudgetBytes": 134217728 },
  "uploads": { "enabled": true, "ownerBudgetBytes": 67108864, "instanceBudgetBytes": 134217728 }
}

Room for a 500 MiB recording in a project, lifting the file cap and its budgets together:

"policy": {
  "projectFiles": { "maxFileBytes": 629145600, "projectBudgetBytes": 1073741824, "instanceBudgetBytes": 2147483648 }
}

Catalog and submissions

KeyDefaultWhat it does
submit.maxBytes67108864per-file cap on a catalog submission (64 MiB, matching publish-out). Over it: 413 PAYLOAD_TOO_LARGE
submit.chainunsetapproval chain id gating submissions. Unset means no review: a submitted asset is live the moment it is stored. Set to a chain that does not exist, submissions are refused (503 SUBMIT_CHAIN_MISSING) rather than published unreviewed
submit.quota.bytes0cumulative byte ceiling per group; 0 is unlimited
submit.quota.count0cumulative submission-count ceiling per group; 0 is unlimited
catalog.versionKeep0how many versions of one instance asset to keep, head included. 0 keeps every version; a positive number trims oldest-first and deletes the trimmed bytes. The served version is never trimmed, and a held asset is never trimmed at all
catalog.partnerRightsdecided oncegate or report: whether the licence each file records decides what reaches people in a partner programme. Absent, the instance decides at its first start on the release that added the setting: gate with no accounts yet, report when upgraded with accounts. The setting always wins. See partner programmes

Submit is open to authors by default: anyone holding catalog.submit may submit. Name a submit.chain when the org wants review. Quota scopes are group names, and a submission is charged to every group its submitter belongs to, so extra memberships only tighten a member's budget. See catalog.

Set a catalog.versionKeep ceiling only when you want to bound blob growth - see operations and catalog.

Telemetry, activity and retention

KeyDefaultWhat it does
telemetrystandardoff, aggregate, standard
telemetryAttributionopt-inopt-in strips the user id until the user consents; default attributes at standard
activity.modedelegatedoff disables the activity timeline and agent activity dashboard; owner-only restricts them to owners; delegated also admits principals holding audit.export. Audit reads of those feeds record the reader and filter names, without query values. Security audit endpoints retain their own permissions
activity.auditSessionUpdatestruerecord routine API document saves as session.update. Set false to omit those new events; other security events and shared document history remain
retention.telemetryDays0delete telemetry events older than this; 0 keeps everything
retention.deletedDocumentsDays0permanently delete documents deleted more than this many days ago, with their revisions, comments, notices and collaboration state; 0 keeps them. See data lifecycle
retention.renderOutputDays0remove durable render output bytes older than this; 0 keeps everything. The record, receipt and identity stay, and an output a delivery points at is kept (output retention). Runs daily on the long-lived server
retention.auditDays0trim audit rows older than this. The chain stays verifiable (the boundary's seq + hash are anchored before anything is deleted, and the head row is never trimmed), and a trim never passes the SIEM delivery cursor - an unreachable receiver pauses audit retention rather than losing events. See operations
fleet.minEngineunsetadvisory engine version floor (dotted, e.g. "1.140.0"): below-floor engines are highlighted in the Fleet view with an upgrade nudge; nothing is blocked or force-upgraded

What each telemetry level stores, and what is never recorded, is in telemetry.

render

KeyDefaultWhat it does
allowHooksInFastPathfalsewhether the in-process jsdom path may run a tool's hooks.js. Default refuses hooked tools with 501 HOOKED_TOOL_NEEDS_CHROMIUM. When on, a tool whose manifest requires identifies a host.* API the in-process host lacks is refused with 501 TOOL_REQUIRES_UNMET before any hook runs. Hooks run in a node:vm context with the DOM and host bridge but no process, require or fetch - contained, not isolated. Turn on only for a pack you curate end to end; the server warns at boot when it is on for any pack other than the bundled packs/demo
worker.url""the Chromium render worker. Set (with LW_RENDER_WORKER_SECRET) ⇒ hooked/HTML-heavy tools dispatch there instead of 501. This pair is the render-topology switch - the deployment's capability set is advertised to shells via org_config's render block either way (deployment)
worker.timeoutMs20000per-job timeout
worker.dispatchpushhow jobs reach the worker. push posts each job to worker.url. pull holds each job in Lolly Work until a worker leases it and reports the answer back; start the workers with LW_RENDER_PULL_URL set to this instance. worker.url is still required and still serves file previews
worker.pull.leaseMs15000pull dispatch: how long a lease lasts without renewal, from 1000 to 120000 milliseconds
worker.pull.queueTimeoutMs30000pull dispatch: how long a job waits for a worker before it fails as 503 RENDER_BUSY, from 1000 to 600000 milliseconds
worker.connectRetryMs30000how long a job keeps trying a worker that refuses the connection, from 0 to 120000 milliseconds. A worker that is restarting, or out of its Service while its slots are full, counts as busy: the job tries again with a short backoff and, when the time is up, fails as 503 RENDER_BUSY with Retry-After. Any other worker failure is returned at once. Push dispatch only
c2pa.certFile""signing-cert chain PEM (leaf first), public
c2pa.claimGenerator""producer label in the signed manifest

Worker and SIEM addresses. Production worker and SIEM service URLs require HTTPS with verified server certificates. Requests cannot follow redirects or include URL credentials, query strings or fragments. HTTP is accepted only for explicit loopback evaluation fixtures. For an internal CA, mount its public PEM read-only and set NODE_EXTRA_CA_CERTS before starting Node. Keep hostname verification enabled; NODE_TLS_REJECT_UNAUTHORIZED=0 is refused in production. The worker request HMAC continues to authenticate the control plane. TLS certificates and trust mounts need their own deployment qualification.

Hooks in the demo pack. Every tool in the committed packs/demo ships hooks, so instance.example.json and values-eval.yaml both set allowHooksInFastPath: true: that pack is curated in the Lolly Work repository end to end. If you point instance.pack at a pack you do not fully control, set it back to false and add a Chromium worker for the hooked tools.

The browser sandbox. The Chromium worker always runs its browser sandbox. A bounded launch begins at startup, and the worker's /readyz stays unavailable until the browser connects; failed startup or recovery stops the worker, with no unsandboxed fallback. Qualify the exact Linux image and target runtime with the existing non-root, seccomp and container permissions before rollout, and keep a host that refuses the sandbox out of service until its runtime is qualified.

At capacity. The worker answers 503 RENDER_BUSY with Retry-After at once, with no internal queue, so saturation stays visible to the autoscaler. Readiness follows the browser, not capacity: a full worker stays ready, its /readyz reports atCapacity: true, and a job already under way can still make its next call, such as the raster of the SVG it has just rendered. Its concurrency, timeouts and startup budget are set in its own environment (see Render worker); on Helm, renderWorker.maxConcurrent and renderWorker.browserStartupTimeoutMs set the first and the last. The worker HMAC key and the C2PA private key are secrets; see Secrets and c2pa.

audit

KeyDefaultWhat it does
headLog.onBoottrueprint the audit-chain head hash at boot
headLog.intervalMinutes60print it periodically (0 = off). The timer is unref'd, so it never holds the process open

The defaults print the head; operators must forward and retain it outside this deployment's control to establish an external anchor. Verify collection, retention and restricted deletion access in the receiving system - see audit.

dev

KeyDefaultWhat it does
enabledfalseenables /api/auth/dev?email=…, a passwordless local provider
users[]{ email, name?, groups? } entries the dev provider will admit
Warning: Keep dev off in production

It bypasses OIDC entirely, and setting idp.issuer does not turn it off: the two run side by side and the passwordless route stays live. The server warns at boot when it finds both.

proxyAuth

Reverse-proxy sign-in: an authenticating proxy in front of the instance (YunoHost's SSOwat, Authelia, oauth2-proxy) states who the person is in request headers. See reverse-proxy sign-in for the contract and the security posture.

KeyDefaultWhat it does
enabledfalseenables GET /api/auth/proxy?returnTo=…. Satisfies the gated-access requirement on its own (no idp.issuer needed)
displayName""the sign-in button copy ("YunoHost"). Required when enabled
secretRefLW_PROXY_AUTH_SECRETenv var NAME holding the shared secret; the header x-lw-proxy-auth must equal its value or the sign-in is 403
headers.userynh_userheader carrying the stable login (required). Names are matched case-insensitively
headers.emailynh_user_emailheader carrying the mail address
headers.nameynh_user_fullnameheader carrying the display name; split into first and last name when the directory gives neither
headers.groups""header carrying a comma-separated group list; empty = the proxy sends none
groups{}static grants unioned in at sign-in: { "<login>": ["owner"] }
directorynulloptional LDAP read of the person's own entry, once per sign-in. Fail-closed: configured but unreachable means 502 and no session
directory.urlldap://127.0.0.1:389plain ldap:// over TCP; ldaps is refused
directory.bindDn""simple-bind DN; empty = anonymous
directory.bindPasswordRef""env var NAME holding the bind password
directory.userDnuid={user},ou=users,dc=yunohost,dc=orgDN template; {user} is the RFC 4514-escaped login
directory.attributesmail / givenName / sn / cnwhich attributes fill email, firstname, lastname, name when the headers left them blank (empty string skips one)
directory.groupMap[]{ attribute, pattern } rules: every value of attribute matching pattern contributes its first capture group as a group name
directory.timeoutMs5000the whole bind + search must finish inside this

rateLimit

KeyDefaultWhat it does
enabledtrueper-IP token buckets on the auth, telemetry, link, automation and brand page surfaces; other routes are not throttled here
trustedProxyHops0how many reverse proxies to trust in X-Forwarded-For. 0 reads only the socket peer. Behind one ingress, set 1
maxBuckets50000bucket table cap
authcapacity 10, refillPerSec 0.2sign-in attempts (/api/auth/login, the callback, linking a sign-in, passkeys, proxy sign-in, device sign-in and provider logout), including each email and password guess and each use of a password link, the invite page's and refusal page's forms (/api/auth/invite, /api/auth/request), and the instance card (GET /api/v1/instance)
telemetrycapacity 120, refillPerSec 4event ingest
linkcapacity 30, refillPerSec 1signed-link resolution, including invite and join pages (/l/invite/, /l/join/), and the instance pack download (/connect/pack.lolly)
automationcapacity 120, refillPerSec 2the automation API (discovery, schemas, the document verbs, /api/v1/render, durable renders, render batches, /api/v1/batch and jobs), GET /render/…, agent connections (/api/workspace/mcp) and the outbound delivery POSTs
brandPagecapacity 240, refillPerSec 8a published brand page's files and the list of pages. One view asks for many files. The read-only MCP endpoint at /brand/<id>/mcp uses automation

blobs

Where instance-owned catalog bytes live (materialized copies, published assets).

KeyDefaultWhat it does
driverpgpg (bytes in Postgres, zero extra moving parts) or s3 (any S3-compatible store: AWS, MinIO, Ceph RGW). Any other value is a startup error
s3.bucket-required when driver is s3
s3.regionunsetAWS region, when the endpoint needs one
s3.endpointunsetfor a non-AWS S3-compatible store
s3.prefixunsetkey prefix inside the bucket

With no database at all, pg falls back to a memory blob store (evaluation only). The S3 credential is a secret, LW_BLOBS_S3_CREDENTIAL, formatted <accessKeyId>:<secretAccessKey>. This is the exit route for media-sized estates and the air-gap story: see off-boarding.

With pg, the server compares the bytes stored and read each month against the offload thresholds and alerts administrators when one is reached: see blob offload trigger.

Blob limits and integrity

DriverHow a blob is written and readLimits
pgOne bytea value per blob. Every write and read holds the whole blob in Lolly Work's memory, and a read briefly needs several times the blob's size because PostgreSQL returns bytea as hex text.At most 500 MiB per blob, because PostgreSQL could store a larger value but not return a blob of that size. Blobs share the database's storage, backups and a pool of four connections, so large files slow the database for everyone.
s3Streams in 8 MiB parts. A blob that fits in one part is a single PUT; a larger one is a multipart upload. A failed or refused upload is aborted, and the object already under that key stays until an upload completes. Reads stream from the store.10,000 parts per upload. When the caller gives the length in advance, parts grow past 8 MiB so the blob still fits. A part that fails with a server error or a dropped connection is retried twice.
How S3 uploads are checked, and the permissions to grant

Each S3 request signs the SHA-256 of its own body, so the store refuses a part that changed in transit. Lolly Work also computes the SHA-256 of the whole blob as the parts go out, and records it on the object as x-amz-meta-sha256 when it is known before the object is created: always for a single PUT or a blob already in memory, and for a streamed multipart upload whose caller declared the digest, which Lolly Work checks before completing the upload. Objects written by earlier versions have no recorded digest. For those, Lolly Work reports the S3 ETag, which is not a content digest, and reads the bytes back wherever it needs the SHA-256.

Every caller in this release hands the driver a file it already holds in memory, within that path's own byte cap: catalog submission, materialization, render and automation outputs, design-system pack downloads, staged deliveries and project file parts. The S3 driver sends such a file in parts without copying it again, but an upload streams from the client to the bucket only once those paths stream too.

For s3, give the blob credential s3:GetObject, s3:PutObject, s3:DeleteObject and s3:AbortMultipartUpload on the prefix, and s3:ListBucket on the bucket so that a missing blob reads as missing rather than refused. Where the store supports it, add a lifecycle rule (AbortIncompleteMultipartUpload) that removes incomplete multipart uploads after a day: a server that stops during an upload leaves its parts behind, and the store keeps them, and bills for them, until they are removed.

Stores that drop object metadata

Some S3-compatible stores keep neither an object's content type nor its x-amz-meta-* headers, and serve every object as application/octet-stream; Predastore releases before v1.21 are one example. Browsers then refuse to display uploaded images. When it starts, Lolly Work writes a small object under the prefix (<prefix>/.lolly-probe-<uuid>), reads the object back, deletes the probe and logs the result; if that probe cannot run, the first write tries again. On such a store each blob gets a small JSON record beside the blob, at <prefix>/.lolly-meta/<blobId>, holding its size, SHA-256, content type and ETag. Reads use the record whenever the object's own headers carry no digest, and ignore a record whose ETag no longer matches the object, so a record left from earlier bytes is never applied to newer ones. Deleting a blob deletes its record. The records sit under the same prefix, so the permissions above cover them.

delivery

Fixed organization-owned destinations for intentional outbound delivery. This is separate from catalogProviders (assets coming in) and from a person's device-owned send targets. No destination exists by default, so an unconfigured instance sends nothing anywhere.

KeyDefaultWhat it does
maxBytes67108864instance-wide per-delivery cap (64 MiB)
destinations[]fixed, config-managed outbound targets
destinations[].id-stable lowercase/dash id; also the destination:<id> RBAC resource
destinations[].kind-s3, webdav, or https
destinations[].label-member-visible name
destinations[].credentialRef-environment variable containing the write credential; never sent to a shell
destinations[].enabledfalsekill switch; only explicitly enabled targets are visible or writable
destinations[].groups**/absent for all members, or an array of groups
destinations[].formats-required non-empty format allowlist
destinations[].maxBytesglobal capnarrower target-specific byte ceiling
destinations[].approvalChainunsetoptional existing approval-chain id; stages bytes and withholds provider egress until approved
destinations[].options-provider-specific fixed-target options below; never sent to a shell

Provider options and credential forms:

KindOptionsCredential in credentialRef
s3bucket (required), region, endpoint, prefix, publicBaseUrl<accessKeyId>:<secretAccessKey>
webdavurl (required existing writable collection), prefix (existing subdirectory), publicBaseUrl<username>:<password> or bearer:<token>
httpsurl (required exact HTTPS receiver; query allowed, redirects refused)non-empty HMAC secret

For S3, endpoint selects MinIO, Ceph, Garage, UpCloud or another compatible store; omitting it uses AWS. For S3 and WebDAV, publicBaseUrl means the resulting object has a public URL; omit it for private storage. WebDAV permits HTTP for an explicitly private/air-gap deployment, but credentials then depend entirely on that network boundary - use HTTPS anywhere else. The signed-HTTPS adapter always requires TLS.

Give every destination its own write-limited credential even when the same service is already configured as a read-only catalog provider or as blobs.driver. Restrict it to the configured bucket, collection or receiver. A destination credential is not a person's connected-service credential and must not be reused as one.

See outbound delivery for the lifecycle, API and freedom boundaries.

edge

CDN providers in front of this instance's hostnames. No provider exists by default, and an instance without one sends no purge tags and makes no provider calls.

KeyDefaultWhat it does
jurisdiction"eu-only"decided per hostname. Under eu-only a provider whose company, edge locations or logs are not EU may front only a hostname marked publicOnly; "any" lifts that
providers[]the providers, one per set of hostnames
providers[].id-stable lowercase/dash id, used in purges and the audit log
providers[].kind-bunny or cloudflare
providers[].hostnames-lower-case hostnames whose DNS points at the provider; one hostname has one provider
providers[].publicOnlyfalsethe hostname answers public reads only; the instance's own hostnames cannot be publicOnly
providers[].credentialRefunsetenvironment variable holding the API key or token; unset means a sealed credential stored with lw edge credential
providers[].options-Bunny: pullZoneId, regions (["europe"] or absent). Cloudflare: zoneId, plan (free default, pro, business, enterprise)
providers[].jurisdiction-facts you state about the provider; they fill what Lolly Work cannot know and never contradict what it does know

A configuration that breaks the jurisdiction rule, carries an unknown key or marks the instance's own hostname publicOnly stops the server at boot. See Put a CDN in front of Lolly Work for the rule, the settings that must stay off on each provider, purges and the probe.

renderApi

The migration API for people moving off a hosted render API. Off by default, and every /compat/ route then answers 404. Move from a hosted render API is the guide.

KeyDefaultWhat it does
enabledfalseturn on the /compat/ routes
mappingsFileunseta JSON file of template mappings, read at boot. A bad file stops the server starting
templates[]the same mappings inline
resultUrls.signedDays30how long a result URL works after its render finished, 0 to 3650. 0 means result URLs need the bearer token. Above 0 needs LW_RENDER_API_URL_SECRET
urlApi.actAsunsetthe service token Placid URL API renders act as

brandPages

Brand pages. Off by default. A published page is public, even on a sign-in gated instance.

KeyDefaultWhat it does
enabledfalseturn on the routes. While off, /brand/<id>/ goes to the web shell if one is mounted, and every other route answers 404
maxBundleBytes67108864 (64 MiB)the largest bundle, and the most that its files may add up to
maxFileBytes33554432 (32 MiB)the largest single file, at most maxBundleBytes
instanceBudgetBytes1073741824 (1 GiB)what all revisions of all pages may hold, at least maxBundleBytes
keepRevisions10how many revisions of each page keep their files, from 1 to 1000. Older ones stay in the history with their digests
approvalChainunseta chain id. Set, each revision waits for that chain, and a publish is refused if the chain does not exist

An unknown key or an impossible limit stops the server at boot.

submit

The instance-side half of catalog submit: a single optional pre-store scan hook. Everything an org tunes about submit lives under policy.submit above; this block is operator-only and never reaches the policy-as-code document or any shell.

KeyDefaultWhat it does
scanHookunsetno hook, and no bundled antivirus - an unconfigured deploy stores what it is sent
scanHook.kind-exec (bytes on stdin, exit code is the verdict) or http (bytes POSTed, status is the verdict)
scanHook.target-executable path for exec; an http(s) URL for http
scanHook.args[]extra argv for exec
scanHook.timeoutMs10000wall-clock budget for one scan
scanHook.onErrorrejectwhat an unanswered scan means; allow opts out of failing closed

Wiring ClamAV or an ICAP gateway is written up in operations.

automation

Where automation may call back to. Absent (the default) leaves callbacks with the one endpoint in notify.webhook.url.

KeyDefaultWhat it does
callbacks.allowedOrigins[]exact HTTPS origins a job, durable render or render batch may name as its callback URL, such as https://hooks.example.com. A path or a plain http origin is refused at boot, and so is a list without LW_WEBHOOK_SECRET, because a callback is always signed
tokenLimits{ "callsPerMinute": 120, "rendersPerDay": 2000, "rendersPerMonth": null }the instance default for service tokens placed in a partner programme: calls a minute, renders a UTC day and renders a UTC month, null for no cap. A programme's limits and a token's own limits come first. See partner programmes

A durable render or batch that asks for any other URL is refused at submission. Every send checks the list again, so removing an origin stops callbacks still waiting. See be told when a render finishes.

notify

Notification egress. Absent (the default) means dormant: zero egress. Sends only to endpoints you configure, never phone-home; delivery is fire-and-forget, so an unreachable relay never fails or slows a request. What gets sent, and to whom, is written up in operations.

KeyDefaultWhat it does
smtp.host-the org's SMTP relay
smtp.port587submission port; 465-style implicit TLS wants secure: true
smtp.securefalseimplicit TLS from the first byte. Off, STARTTLS is taken whenever the relay offers it
smtp.from-the From address on every notification
smtp.userunsetAUTH PLAIN user; the password rides LW_SMTP_PASSWORD, never this file
webhook.urlunsetone JSON POST per event, signed with LW_WEBHOOK_SECRET (required - an unsigned webhook is refused at boot)
people.emailfalsealso email people notices: access requests and their answers and accepted invitations, which always reach the inbox of anyone with an account, and invitations and approved requests to join, for addresses with no account yet. Needs smtp. See below
people.fromNameinstance.namethe sender's display name on those emails, 1 to 60 characters on one line

Emailing people notices

People notices, listed under people.email above, go through one function (server/src/notify/people.ts), which writes the inbox message and, once email is on, also mails each recipient's verified address, or the address of an invitee or a person asking to join who has no account yet.

Note: People notices stay in the inbox in this release

Every page and answer says so: the request page says the instance does not send email yet, and the console never shows "Emailed" for a mail that did not go.

Email turns on only when all three hold: people.email is true, smtp is set, and the server's mail sender can confirm that the relay accepted each message. This release's sender sends and forgets, so it cannot confirm.

Still to be built: that confirming sender; plain-text mails sent as "Ana via Example Studio" from the smtp.from address, which never carry text a person wrote (such as a request note) and end with "Not expecting this? You can ignore this email." and a link to stop emails from the instance; and caps of 50 invitation emails a day per inviter, one email per address a day, and one per request to each approver.

Keep using Copy invite message after email is on: a message sent from your own account is the one a new person is most likely to trust.

Switching email on, once a release sends people notices
  1. Pick a provider that gives you an SMTP relay on port 587 with STARTTLS and its own DNS records, such as Postmark, or Amazon SES. The sender address needs no mailbox.
  2. Configure the relay in instance.json, deploy the file the way you deploy any other configuration change, and restart the server, which reads the file only at start:
    "notify": {
      "smtp": { "host": "<relay host>", "port": 587, "secure": false, "from": "no-reply@example.com", "user": "<relay user or API token name>" },
      "people": { "email": true, "fromName": "Example Studio" }
    }

Put the relay password or token in LW_SMTP_PASSWORD in the server's environment through your deployment's secret store, never in the configuration file. secure: false with port 587 takes STARTTLS when the relay offers it; use secure: true only for port 465.

  1. Publish the DNS records the provider shows, in the DNS zone of the sending domain (example.com here):
RecordHostValue
SPF (TXT)@v=spf1 include:<provider SPF host> ~all. A domain has one SPF record: if a v=spf1 record exists already, for example from a mail-forwarding service, add the provider's include: to that record, never publish a second
DKIM (TXT or CNAME)<selector>._domainkeyexactly what the provider shows
Bounce domainthe provider's return-path host, for example pm-bounces (Postmark, a CNAME) or mail (SES custom MAIL FROM, an MX and a TXT)what the provider shows; it lets SPF align with the From domain
DMARC (TXT)_dmarcv=DMARC1; p=none; rua=mailto:dmarc-reports@example.com; adkim=s; aspf=r, with rua set to a mailbox you read. Move to p=quarantine after a clean week of reports

No MX record is needed to send from no-reply@.

  1. Check. Wait until the provider shows the domain as verified. Then approve a request to join from a spare address, or invite one, and read the delivered mail's headers: they should show spf=pass, dkim=pass and dmarc=pass.

siem

Audit events pushed to the org's own receiver in signed batches. url absent (the default) means off. Nothing is lost: the audit log is the outbox, a durable cursor records the highest seq the receiver confirmed, and a refused batch replays whole. Long-lived server only - on a serverless deploy, poll GET /api/v1/audit with a service token instead. Delivery lag is the lw_siem_lag gauge on /metrics.

Batches use lolly.audit-projection.v1 with privacy-filtered bodies, original source hash references and separate projection proofs. Qualify the receiver's adapter before rollout. Original rows and their retention policy remain unchanged; see account lifecycle operations.

KeyDefaultWhat it does
urlunsetthe receiver; batches POST as JSON signed with LW_SIEM_SECRET (same header scheme as notify webhooks)
batchSize200events per POST (1-1000)
intervalSeconds30forwarding cadence (>= 5)

featureFlags

Unset by default. Lolly Work's own governance then decides every feature flag (feature flags), and nothing about flags leaves the instance. ofrep connects your organisation's flag service through the OpenFeature Remote Evaluation Protocol (OFREP). That service then decides the default of the flags it lists, person by person, and Lolly Work's own settings become the fallback. The web app still reads one resolved value per flag from Lolly Work and never contacts the flag service, so the app needs no vendor software.

"featureFlags": {
  "ofrep": {
    "url": "https://flags.example.org",
    "flags": ["export-preflight", "private-collab"],
    "keyPrefix": "lolly.",
    "timeoutMs": 500,
    "cacheSeconds": 30
  }
}
KeyDefaultWhat it does
urlrequiredthe service's base URL; Lolly Work posts to <url>/ofrep/v1/evaluate/flags/<key>. HTTPS in production; plain HTTP only to a loopback address on an evaluation instance
flagsevery flag but aithe governed flag ids the service decides. Managed AI is never offered to a flag service
keyPrefixnonetext put before the flag id to form the service's flag key: with lolly., Lolly Work asks for lolly.export-preflight
timeoutMs500time allowed for one request, from 50 to 5000 milliseconds
cacheSeconds30how long one answer is reused for the same flag, groups and role, from 1 to 3600
contextGroupsevery groupwhen set, only these group names are sent; a person's other groups stay in Lolly Work
targetingKey"none""cohort" adds a targetingKey for a service that requires one; What Lolly Work sends explains the key
auth"bearer"how LW_OFREP_TOKEN travels: Authorization: Bearer, or X-API-Key with "api-key"

An unknown key, a flag id Lolly Work does not govern or a value out of range stops the server at start, so a typo cannot leave a flag quietly ungoverned.

What Lolly Work sends. One POST per flag, with this body and nothing else about the person:

{ "context": { "groups": ["design", "pilot"], "role": "author" } }

groups are the person's groups, sorted and narrowed by contextGroups; role is their Lolly Work role. No email address, name, account id or session travels. Some services refuse an evaluation without a targetingKey. With targetingKey: "cohort", Lolly Work sends a key made from a hash of the same groups and role. Everyone with that combination shares the key, so the key identifies no person, and a percentage rollout splits people by combination rather than one by one.

When the service fails. Each of these leaves the flag on Lolly Work's own setting: a timeout, a refused connection, an error status, an unknown flag, a refused credential, an answer that is not true or false, and an answer that cannot be read. Lolly Work's setting means the person's group rules, then the setting for everyone, then the app's built-in default. An answer with no value, or with reason DISABLED, also keeps Lolly Work's setting without counting as an error. After a timeout, a connection failure or a server error Lolly Work asks again in 5 seconds, or after the service's Retry-After up to one minute; every other answer is reused for cacheSeconds. lw_ofrep_evaluation_errors_total{flag,reason} counts each fallback and lw_ofrep_requests_total{flag} counts requests (monitoring). The console's Feature flags page shows the service, the flags it decides and its last answer.

Which services. flagd and GO Feature Flag support OFREP. For another service, check that the service, or a relay in front of the service, answers POST /ofrep/v1/evaluate/flags/{key}. The Lolly Work test suite includes a check against flagd 0.18.1.

updates

The release notice. Owners and admins see one in the console when a newer Lolly Work release is published, with the upgrade steps for how this instance was installed (upgrade). For it, the server reads the published chart repository index once a day, at a random time, and when an admin presses Check now on Settings. It is the same plain request any helm repo update makes, and it carries nothing about this instance or its people. The index is not signed, so the notice is information only; the upgrade steps check the chart's own signature. Lolly Work never upgrades itself.

KeyDefaultWhat it does
checktrueread the index daily and when asked. false sends no request and shows no notice
channelstablestable offers releases only; preview includes pre-releases
feedUrlhttps://github.com/lolly-tools/lolly-work/releases/download/helm-index/index.yamlthe chart repository index. Point it at an internal mirror for an air-gapped or sovereign installation. HTTPS, or HTTP on a loopback address for testing, without credentials

The request goes through the same guard as catalog providers: public addresses only, each hop checked and its DNS answer pinned, at most 4 MiB. The configured feed's own address may be private, for an internal mirror. A redirect may leave it only for GitHub's release download hosts (with the default feed) or an origin in network.providers.redirectOrigins. A failed check is logged once, keeps the last answer and changes nothing else: readiness never depends on the check. With a NetworkPolicy that restricts egress, allow the feed's host on port 443.

Owners and admins read the result with GET /api/v1/admin/updates and ask for a check with POST /api/v1/admin/updates/check, both under fleet.view (API).

install

KeyDefaultWhat it does
routeotherhow this instance was installed, so the release notice shows that route's upgrade steps: helm, rancher, fleet, argocd or other. The Helm chart sets helm, and Rancher's install form sets rancher; set fleet or argocd in the chart's install.route when Git manages the release

catalogProviders

Server-side catalog connectors use network.providers for outbound requests.

KeyDefaultWhat it does
network.providers.allowedPrivateOrigins[]exact origins (scheme, host and port) a connector may reach although they resolve to private addresses
network.providers.redirectOrigins[]exact origins a GET or HEAD read may be redirected to from another origin
network.providers.maxBytes67108864largest request and decoded response (64 MiB), from 1 byte to 1 GiB

Private addresses. Initial destinations must resolve entirely to public addresses unless their exact origin appears in allowedPrivateOrigins. Private deployments list only reviewed origins, including the intended scheme and port; paths and wildcards are refused. Native connections use a checked DNS answer while retaining the original Host and TLS hostname. For internal HTTPS services, use the same read-only CA trust setup described for other service connections.

Redirects and limits. Cross-origin redirects require redirectOrigins, and only GET/HEAD reads may follow them. Credential and custom headers are removed on a cross-origin hop. Every hop is checked again, with at most three redirects. Explicit error/manual redirect modes retain their stricter caller behavior. Review the required media sizes before changing maxBytes. Requests have a 30-second budget. These controls apply to catalog federation, setup/consent checks, preview, hosted catalog bytes and publish requests. They do not define the identity provider or delivery destination policy.

Config-managed entries. Deploy-time (GitOps / air-gap) provider entries, upserted at boot as managedBy: 'config' and read-only in the API. Each entry: id (lowercase, dash-separated), kind, label, optional credentialRef (the name of the env var holding the secret), enabled, options, mapping, exposure, sync. Duplicate ids, unknown kinds and missing labels are startup errors. A provider's sync.maxAssets (a whole number) caps how many assets one sync federates from that provider. See catalog.

catalogServing

Sizing for catalogs with tens of thousands of assets. Every key has a working default.

KeyDefaultWhat
maxProviderAssets100000most assets one provider sync federates, unless the provider sets sync.maxAssets. A walk that stops here is marked truncated
pagedProviderThreshold2000providers larger than this leave assets/index.json?paged=1 and are listed under pagedProviders
extCache.maxBytes67108864 (64 MiB)memory for cached federated bytes; 0 turns the cache off
extCache.maxItemBytes2097152 (2 MiB)larger files stream through uncached

See large catalogs.

mapping.hiddenTags lists labels this provider's assets never show: exact tags or prefixes ending in *, matched without regard to case. It is applied when the index is served, so a change takes effect at the next restart with no re-sync; the console's Tags panel shows these as set in instance.json. A database-managed provider takes the same list from the console instead (hiding tags).

Environment variables

Secrets

VarWhenWhat
LW_SESSION_SECRETrequired in prodmember/guest/state token HMAC key; the audit log's MAC key is derived from it
LW_SESSION_SECRET_PREVIOUSduring a rotationverification accepts it beside the current key; minting never uses the previous key. Drop after the longest session TTL. The audit MAC does not use it: run lw audit retire-key after a rotation, with or without the old value (audit)
LW_LINK_SECRETrequired in prodlink signature key
LW_LINK_SECRET_PREVIOUSduring a rotationsame window contract for outstanding signed links
LW_IDP_CLIENT_SECRETif your IdP issues oneOIDC confidential client secret
LW_PROXY_AUTH_SECRETwith proxyAuth.enabledthe shared secret the reverse proxy injects as x-lw-proxy-auth. The name is proxyAuth.secretRef; proxyAuth.directory.bindPasswordRef identifies the LDAP bind password the same way
LW_CREDENTIAL_SECRETonce a provider credential is storedmaster key sealing credentials at rest (AES-256-GCM)
LW_METRICS_TOKENto scrape remotelybearer token for /metrics. Required in production and proxied deployments; unset permits loopback only in an unproxied evaluation instance
LW_SMTP_PASSWORDwith notify.smtp.userthe relay password (AUTH PLAIN)
LW_WEBHOOK_SECRETwith notify.webhook or automation.callbacks.allowedOriginsHMAC key signing every outbound webhook event and callback
LW_RENDER_API_URL_SECRETwith renderApi.resultUrls.signedDays above 0HMAC key signing migration API result URLs. Rotating it ends every URL already handed out
LW_SIEM_SECRETwith siem.urlHMAC key signing every forwarded audit batch
LW_OFREP_TOKENwith featureFlags.ofrep, when the flag service asks for a credentialsent to the flag service as a bearer token, or as X-API-Key with featureFlags.ofrep.auth: "api-key". The Helm chart reads it from secrets.ofrepToken or from the same key in existingSecret
LW_RENDER_WORKER_SECRETwith a render workershared HMAC key; must match the worker
LW_C2PA_SIGNING_KEYto sign exportsPKCS#8 private-key PEM
LW_CATALOG_SIGNING_KEYwhen the shell pins a catalog keyECDSA P-256 private key (PKCS#8 PEM or private JWK JSON) that signs each caller's tool index, tool file digests and verified optional media resources at /catalog/tools/index.sig.json. Its public half is served at GET /api/v1/catalog/public-key, so a web app from Lolly 1.1.3 served at / accepts the catalogue without a rebuild (the catalogue key). Unset: the catalog is served unsigned, both paths answer 404, and the signature path does so even when the pack carries a build-time signature, because that envelope can never match the index served per caller
LW_BLOBS_S3_CREDENTIALwith blobs.driver: s3<accessKeyId>:<secretAccessKey> for the blob bucket
<credentialRef>per config-managed provider, delivery destination or edge providerresolved at boot, never persisted

In development, LW_SESSION_SECRET and LW_LINK_SECRET fall back to ephemeral randoms, so sessions die on restart. In production (NODE_ENV=production) their absence throws.

Optional media proofs

Optional media proofs come from the mounted publisher's verified catalog envelope. Original bytes must match its full SHA-256 digest before Lolly Work signs a caller-scoped resource map. Visible tool and asset entries and the verified, deterministically filtered preview bundle select that map. Hidden entries never enter its bundle or tool file map; guest tool metadata is limited to the shared tool while the public asset feed retains its normal visibility. /info/shots/ and fallback share cards can use exact verified bytes from the mounted instance.shellDir. Absent proofs, missing files or changed original bytes omit the optional resource and require the shell's safe preview fallback. Resource work is bounded to 4,096 referenced paths, 64 MiB per file and 256 MiB of checked bytes per view. A source pack without signed media proofs still supports tool rendering; qualify preview behavior with the paired shell release.

Server

VarDefaultWhat
LW_CONFIG./instance.jsonconfig file path. The one Helm, Compose and the standalone server read
DATABASE_URL-Postgres. Unset ⇒ in-memory store (evaluation only)
DATABASE_URL_UNPOOLED-a direct (unpooled) Postgres URL that migrations run over when set; otherwise they use DATABASE_URL
LW_AUTO_MIGRATEtrue when unsetboot-time DDL. false/0/off/no/empty ⇒ no DDL and refuse to start on a pending schema (the HA invariant)
LW_SEED_CONFIG-path to a governance document applied at boot; trusted and idempotent (governance)
LW_ALLOW_STALE_SHELL-1 downgrades the stale-shell boot refusal to a warning
LW_BACKGROUND_POLL_MS1000how often the durable render and automation runners look for queued work. 0 sets no timer: work still runs at boot and on submission, so a database that scales to zero can sleep. See deployment
LW_LIVE_RELAY_ORIGIN-the bare HTTPS origin of a live-session relay on another origin; added, with its wss:// form, to the served shell's connect-src
LW_RENDER_LEGACY_RESVG-1 forces the in-process resvg raster path even when a Chromium worker is configured, as a fallback if the worker's raster path misbehaves
PORT8787listen port
NODE_ENV-production makes secret checks fail-closed
LW_LOG_FORMATtextjson writes one JSON object per log line (and turns the http access line on) for a log pipeline
LW_LOG_HTTPoff1 writes an access line per request in text mode: request id, method, route label, status, ms
LW_UPDATES_CHECKtrueupdates.check. false here or in instance.json turns the check off
LW_UPDATES_CHANNELstableupdates.channel, over instance.json
LW_UPDATES_FEED_URLthe published chart indexupdates.feedUrl, over instance.json
LW_INSTALL_ROUTEotherinstall.route, over instance.json
LW_RELEASE_NAME, LW_RELEASE_NAMESPACE, LW_RELEASE_FULLNAME, LW_CHART_VERSION-set by the Helm chart: the release, its namespace, its Deployment and the chart version, which the release notice's upgrade commands fill in

OpenTelemetry

The standard OpenTelemetry variables turn on OTLP export of traces, metrics and logs. Nothing is exported until OTEL_EXPORTER_OTLP_ENDPOINT (or a per-signal endpoint) is set. The full list, what is sent and what never is are in OpenTelemetry export.

VarDefaultWhat
OTEL_EXPORTER_OTLP_ENDPOINT-the collector's OTLP/HTTP base URL, usually port 4318
OTEL_EXPORTER_OTLP_PROTOCOLhttp/protobufor http/json; gRPC is not supported
OTEL_EXPORTER_OTLP_HEADERS-key=value pairs sent with each export, often an API key
OTEL_SERVICE_NAMElolly-workthe service.name resource attribute
OTEL_SDK_DISABLEDfalsetrue turns every signal off

Serverless entrypoint

VarDefaultWhat
LW_CONFIG_JSON-the whole config as a string. Read only by the serverless function entrypoint (api/_lib/bootstrap.ts); the standalone server ignores it
LW_BASE_URL-serverless entrypoint only, with no LW_CONFIG_JSON: the instance.baseUrl of the inert fallback configuration
LW_BOOT_TIMEOUT_MS30000serverless entrypoint only: how long requests wait for a boot before they fail and the next request starts a fresh one

Tests and the demo

VarDefaultWhat
LW_TEST_DATABASE_URL-enables the Postgres conformance leg in pnpm test
LW_TEST_S3_ENDPOINT, LW_TEST_S3_CREDENTIAL-with LW_TEST_DATABASE_URL, run the process-level automation lease acceptance (tests/automation-leases-process.test.ts) against a disposable S3-compatible store. The credential is <accessKeyId>:<secretAccessKey>; the bucket is LW_TEST_S3_BUCKET (default lolly-work-test) and is created when missing
LOLLY_OSS_DIR../lollywhere pnpm run demo finds the built OSS web shell
LW_DEMO_MOCK_ASSETS-pnpm run demo only: also seeds a mock provider, demo-dam-large, with this many synthetic assets (half SVG, half PNG, up to 200000) for checking the shell against a large catalog

Render worker

The Chromium render worker is a separate process with its own environment.

VarDefaultWhat
LW_RENDER_WORKER_SECRET-required: the shared HMAC key, the same value as on the server
LOLLY_WEB_BASE-required: the HTTPS address of the Lolly shell the worker drives (HTTP only for localhost development)
LW_RENDER_TLS_CERT_FILE, LW_RENDER_TLS_KEY_FILE-the worker's certificate chain and matching key, read-only files. Required in production
LW_RENDER_TLS_SERVER_NAME, LW_RENDER_TLS_CA_FILE-the service name and private CA bundle the worker's own TLS health check uses
LW_RENDER_DEPLOYMENT_MODE-production requires TLS; evaluation listens over HTTP on loopback only. Unset follows NODE_ENV
LW_RENDER_ALLOWED_ORIGINS-comma-separated origins a rendered page may reach even on a private address, such as an internal asset host; plain origins, no paths
LW_RENDER_REQUIRE_USER_NAMESPACE-1 stops the worker before Chromium starts unless it runs in its own user namespace; Helm sets it when it grants the sandbox capabilities
LW_RENDER_MAX_CONCURRENT4renders at once per worker
LW_RENDER_NAV_TIMEOUT_MS, LW_RENDER_EXPORT_TIMEOUT_MS30000, 20000per-render timeouts
LW_RENDER_TS_SKEW_MS300000the clock skew the request HMAC tolerates between server and worker
LW_RENDER_BROWSER_STARTUP_TIMEOUT_MS30000browser startup and recovery budget, from 1000 to 120000
LW_RENDER_PULL_URL-turns on pull dispatch on the worker side: this instance's HTTPS address (HTTP only for explicit loopback evaluation), with no credentials, query or fragment. The server needs render.worker.dispatch: "pull" too
PORT8791listen port