Choose a profile
One install serves one person or a whole organisation. A profile sets the defaults for who may reach it and how they sign in; every default can still be changed on its own, and a combination that contradicts itself refuses to start and says which setting to change.
| You are | Profile | Who can reach it | How people sign in |
|---|---|---|---|
| One developer, on your own machine | solo | This machine only | Nobody signs in: you are the operator |
| A small team on one network, or remote | startup | Your network, or Cloudflare Tunnel | Access tokens, paired devices, Cloudflare Access |
| Several teams sharing one install | team | Cloudflare Tunnel or a proxy | Single sign-on with OIDC, a role per person per workspace |
| An organisation with an identity provider, auditors | enterprise | Cloudflare Tunnel or private | Single sign-on only; break-glass for the installation key |
Set it with the start script, in the folder you unpacked the release into. Your data and secrets are kept when you change it.
sh
./start.sh --profile teampowershell
.\start.cmd --profile teamThe Deployment page in the app (Settings → Deployment) shows the profile the install is running and what to do next.
Solo
Nothing to configure. ./start.sh binds to 127.0.0.1, and anything that tries to make the install reachable from another machine — LUPIN_BIND=0.0.0.0, LAN mode, a tunnel — is refused with the profile to use instead.
Startup
Turns sign-in on. Then pick how people reach it:
- Same network: LAN mode —
LUPIN_BIND=0.0.0.0, a LAN certificate, and device pairing from the Access page. - Anywhere: Cloudflare Tunnel and Access —
./start.sh --profile startup --remote cloudflare. No router port is opened.
Issue access tokens with a role (viewer, operator, admin) from the Access page, and an uploader token for CI.
Team
Adds people. Register Lupin with your identity provider (Google, Microsoft Entra, Okta, GitHub through an OIDC bridge, or any OpenID Connect provider) as a confidential web application with the redirect URI https://<your host>/api/v1/auth/oidc/callback, then:
sh
OIDC_ISSUER=https://login.example.com
OIDC_CLIENT_ID=lupin
OIDC_CLIENT_SECRET=...
OIDC_ALLOWED_DOMAINS=example.com
OIDC_ROLE_MAP=admin:ana@example.com,operator:group:qa
OIDC_DEFAULT_ROLE=viewer # or none, to admit only the people the map names
LUPIN_PUBLIC_URL=https://lupin.example.comThe sign-in screen then shows Sign in with single sign-on. A person's role is per workspace, and the map decides the default workspace: it is the same grammar as Cloudflare Access's CF_ACCESS_ROLE_MAP, and it is applied at every sign-in, so a change in your identity provider takes effect the next time someone signs in. OIDC_DEFAULT_ROLE is for a person's first sign-in only, when their account is made. After that they keep what an admin gives them, and someone an admin removes from the default workspace stays removed: they can still sign in to the other workspaces they are a member of.
Lupin trusts the email your identity provider asserts: it is what OIDC_ALLOWED_DOMAINS and the email rules in the role map are checked against, and what links a person SCIM provisioned to their first sign-in. So register Lupin in a single-organisation configuration of your provider (in Entra, accounts in this organizational directory only), never one that lets any organisation's accounts sign in. An email the provider marks unverified is refused; one it says nothing about is taken as asserted, because Entra sends no email_verified at all.
Enterprise
Everything in team, plus:
Single sign-on is enforced. The installation key, pasted tokens and paired devices no longer sign a browser in, and a browser that signed in with one before no longer counts as signed in; tokens sent by CI keep working. The install refuses to start without OIDC or Cloudflare Access configured, because otherwise nobody could sign in.
SAML goes through Cloudflare Access: add your SAML identity provider to Zero Trust, and map its groups with
CF_ACCESS_ROLE_MAP=admin:group:lupin-admins. Lupin verifies the token Cloudflare signs, so there is no XML signature handling in the app. The people Access lets in are accounts, so SCIM, Members and per-workspace roles apply to them as they do to OIDC sign-ins (how).Break-glass. If single sign-on is down, set
LUPIN_BREAK_GLASS=1and restart: the installation key works again, behind Cloudflare Access too, every use is logged and written to the audit trail, and the start-up log says it is on. Turn it off once you are back in, and the sessions it signed in stop counting.An audit trail an auditor accepts. Every decision is a row chained to the one before it, and the database refuses to edit, delete or truncate it. The chain covers the event itself (who, what, when, the resource and the details), not the request it came in on (IP address, user agent, request id). Admins read it, check it and export it on Settings → Audit (or at
GET /api/v1/audit,/audit/verifyand/audit/export), and one command checks every workspace's chain against the database. Keep the head hash somewhere else, from the NDJSON export or from/audit/verify(the CSV export has none): it is what proves later that the trail was not rewritten up to that point.Provisioning with SCIM. Issue a SCIM token (
POST /api/v1/scim-tokens, as an admin) and give your identity provider the base URLhttps://<your host>/scim/v2and that token. Assign people to thelupin-viewer,lupin-operatororlupin-admingroups to set their role. Deactivating someone in the identity provider ends every session they hold at once, and they cannot sign in again. Every access token they made is revoked with them, in every workspace, so a token one person made for CI stops when they leave: make CI tokens as the installation's admin if they should outlive any one person. Behind Cloudflare Access, add a Bypass policy for the path/scim/v2: the SCIM token is the credential there.A SCIM token belongs to the workspace it was issued in, and the default workspace's is the installation's: it provisions and deactivates anyone. Another workspace's connection adds people there, sets their group there and removes them from there, and changes a person's account (deactivating them, their email, their name) only for people who are in no other workspace; for anyone else it is answered with a 403. Removing someone ends their membership of that workspace and the access tokens they made there, and nothing else, unless it was their last: a person left in no workspace is deactivated.
People who signed in appear on Settings → Members, where an admin changes a role, disables someone or removes them. Removing someone takes away their membership of that workspace and the access tokens they made there: their sessions go on serving the other workspaces they are in. Disabling someone is their whole account, signed out everywhere and every token they made revoked, so it is for the installation's admin and the default workspace's admins; a workspace's own admins can disable only people who are in no other workspace. A token the installation's admin made belongs to no person and outlives everyone, which is the kind to give CI. The last admin of a workspace cannot be removed or demoted, and nobody can be disabled while they are the last admin of any workspace.
Several workspaces
On team and enterprise, one install holds several workspaces — one per team, product or client — each with its own projects, runs, tokens, members and audit trail. A person's role is set per workspace, so the same person can be an admin in one and a viewer in another.
- Creating one. On Settings → Deployment, the installation's admin or an admin of the default workspace fills in New workspace (or calls
POST /api/v1/workspaceswith{id, name}). A person who creates one becomes its first admin. Onsoloandstartupthe install keeps the one workspace, and creating another is refused with the profile to move to. - Switching. The same page lists the workspaces you may enter; choosing one is remembered in your browser and every screen then reads that workspace. You only see the workspaces you are a member of. The installation's own admin sees them all.
- CI. An access token belongs to the workspace it was issued in, and everything it sends lands there: issue an
uploadertoken inside each workspace for that team's pipelines. Uploads signed with the installation'sREPORTER_SECRETland in the default workspace. A browser signed in with a pasted token, or a device paired with a code, is in the workspace that issued it. - Runners are one pool the whole install shares; a job reports back to the workspace it came from.
- GitHub webhooks serve every workspace. One receiver and one
GITHUB_WEBHOOK_SECRETper install: a delivery is matched by its repository, after its signature checks, and queues a sync in each workspace that registered that repository.
Workspaces need DATABASE_URL: an install without a database has the one workspace.
Running it for an organisation — scheduled backups, restore drills, request traces to your collector, the audit export and upgrades — is on its own page.
Moving up a profile
./start.sh backup— a copy of the database, the stored artifacts and.env.- Add the settings the next profile needs (sign-in for
startup, OIDC forteam). ./start.sh --profile <next>.
Nothing is migrated by hand: the data stays where it is, and the people who sign in with single sign-on get their roles on first sign-in.
What is not built yet
Nothing here has been run against a real Entra, Okta or Cloudflare account yet. The capability register is the list of what is, with the test behind each row.