Choose who can sign up
Before you begin
- You need
- Shell access to the host, as a user who may use Docker
A self-hosted installation decides who may create an account. By default only people a workspace invites can; the operator can also admit your organisation’s email domains, or anyone who can reach the app.
REGISTRATION_MODE |
Who can create an account |
|---|---|
invitation |
Only someone a workspace has invited, with the address the invitation was sent to. The default |
domain |
Anyone with an address on one of REGISTRATION_ALLOWED_DOMAINS, and anyone invited |
open |
Anyone who can reach the app, as on the hosted service |
-
In the installation’s
.env, setREGISTRATION_MODE, and fordomainthe domains, comma-separated:Terminal window REGISTRATION_MODE=domainREGISTRATION_ALLOWED_DOMAINS=example.com,example.co.uk -
Apply it by running
./mockhub installagain. It closes ingress behind the maintenance page while it restarts what changed, then reopens.
Result
Section titled “Result”The sign-up page and a first sign-in with GitHub or Google follow the new mode at once. Someone the mode does not admit is refused with Registration closed, and nothing tells them whether their address already has an account. Accounts that exist keep working whatever the mode.
How each way in is admitted
Section titled “How each way in is admitted”- Signing up with a password: in
domainmode, an address on a listed domain is admitted and verifies its address by email as usual. Anyone else needs a pending invitation and signs up from its link: the invitation proves the address, so no verification email is sent. - A first sign-in with GitHub or Google: admitted when the provider’s verified address is on a listed domain, or when a pending invitation names that address.
- An instance administrator creating an account is never asked: the mode limits sign-ups only.
Domains are matched exactly. A subdomain, such as eu.example.com, is admitted only when it is listed itself.
Verified addresses come first
Section titled “Verified addresses come first”Where the mode is not open, an account whose address is not verified can only manage itself until it is: read and change its own profile, end its sessions, delete itself, and answer an invitation, which verifies the address. Everything else answers Email unverified. A change of address stays pending until the new mailbox answers, so a new address never inherits what the old one was admitted for.
Limits
Section titled “Limits”- No single sign-on. Accounts sign in with a password, GitHub or Google, and there is no SAML, OIDC or directory sync. When someone leaves, deactivate their account.
- Every new account takes a licence seat on an installation under a licence, whichever mode admits it, and is refused when none is free.
domainmode needs at least one domain../mockhub installrefuses it withREGISTRATION_MODE=domain needs REGISTRATION_ALLOWED_DOMAINSbefore anything changes.- The mode admits accounts, not workspaces. Someone admitted by their domain has only their personal workspace until a workspace invites them.