Skip to content

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
  1. In the installation’s .env, set REGISTRATION_MODE, and for domain the domains, comma-separated:

    Terminal window
    REGISTRATION_MODE=domain
    REGISTRATION_ALLOWED_DOMAINS=example.com,example.co.uk
  2. Apply it by running ./mockhub install again. It closes ingress behind the maintenance page while it restarts what changed, then reopens.

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.

  • Signing up with a password: in domain mode, 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.

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.

  • 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.
  • domain mode needs at least one domain. ./mockhub install refuses it with REGISTRATION_MODE=domain needs REGISTRATION_ALLOWED_DOMAINS before anything changes.
  • The mode admits accounts, not workspaces. Someone admitted by their domain has only their personal workspace until a workspace invites them.

Report a problem with this page