Sign-up modes
Choose who can create an account on a self-hosted install, how invitations, personal organizations and requests to join work, and what changed for installs that upgrade.
Signing up creates an account. Wardn decides who may do that with one setting, WARDN_SIGNUP, and checks it on the server for every way of signing up: the sign-up page, the API, GitHub, Google, single sign-on and SCIM. Hiding a button is never the only control. This page covers the three modes and what happens to a person after they sign up. Single sign-on and SCIM provisioning cover signing up through an organization's own identity provider.
Read Members and teams first for how people join an organization once they have an account.
The three modes
| Mode | Who can sign up | Typical use |
|---|---|---|
invite (default) | Only people who hold a valid invitation. | A company install. Owners decide who comes in. |
open | Anyone whose email domain is in WARDN_SIGNUP_DOMAINS, or anyone when that list is empty. Each person gets a personal organization. | A trial, a homelab, or a team on one email domain. |
sso | Only people who arrive through an organization's single sign-on, or hold an invitation. Password and social sign-up are off. | An install where every person belongs to a company identity provider. |
A new install starts in invite, so on a new install nobody can sign up until you create the first owner or turn on open.
auth:
signup: open
signupDomains: [acme.example]
platformAdmins: [[email protected]]See Helm chart values.
The server and the web app must hold the same BETTER_AUTH_SECRET. The web app signs each question it asks the server with a key made from it, and the server refuses a question that is unsigned or more than five minutes old. If the two secrets differ, every sign-up and sign-in is refused. See Configuration.
The rules, in order
The server applies the same rules whichever way a person arrives.
- Require SSO wins. An address on a domain that an organization verified with Require SSO for verified domains on cannot sign up or sign in with a password or a social account. Only an Owner with a recovery code can still use a password. See Require SSO.
- An invitation must be exact. A presented invitation has to be pending, not expired, and addressed to the email being used (upper and lower case do not matter). If it is not, sign-up is refused. It never falls back to another path, so a link cannot be reused for a different address.
- A valid invitation admits the person in every mode, whatever the allowlist says.
- Without an invitation,
inviterefuses.ssorefuses a password or social sign-up.openadmits an address in the allowlist, or any address when the allowlist is empty. - Single sign-on admits only an address on a domain the provider's organization verified. Without an invitation it also needs that organization's Create accounts on first sign-in to be on, and the address must pass the allowlist.
- SCIM admits only an address on a domain the connection's organization verified, and the address must pass the allowlist.
- A platform admin signing up with a social address that the provider has verified is admitted in every mode.
The refusal tells the person what happened, for example that sign-up is by invitation, so a refused person knows to ask an Owner.
Verified email
An account's email counts as verified only when something proved it:
- GitHub or Google, which report the address as verified;
- a verified domain, for single sign-on and SCIM.
An invitation link lets an account into the organization that sent it, but does not verify the email: the person who invited saw the link too.
When single sign-on or SCIM meets an existing account whose email was never verified, Wardn removes that account's password, linked GitHub or Google, sessions and API tokens before linking it. Whoever registered the address before its owner cannot keep using it.
An account without a verified email cannot accept an invitation by matching its address, cannot ask to join an organization and cannot create one. This stops a person from claiming an address they do not own.
The domain allowlist
WARDN_SIGNUP_DOMAINS lists the email domains that may sign up without an invitation, such as acme.example. Empty or unset allows every domain.
- It limits
opensign-up, and SSO and SCIM sign-up without an invitation. - It never limits invitations. Inviting
[email protected]works even when onlyacme.exampleis allowed. - List every domain you want to allow. Give the part after the
@, with no@and no wildcard.
Platform admins
WARDN_PLATFORM_ADMINS lists the emails of the people who run the install. A platform admin whose address is verified:
- can sign up in any mode, with GitHub or Google;
- can create organizations from the web app.
Everyone else cannot create an organization. They get one by being invited, through single sign-on, or by having an Owner approve a request. With the list empty, organizations are made only by wardn admin create.
A platform admin is not an organization role. It gives no access to any organization's apps, clusters or settings.
Invitations
An Owner or Admin invites people from Access › Members (see Invite people). A person who opens the link:
- has no account: signs up with the invited address, even in
invitemode, and joins the organization with the role and teams on the invitation. The link does not mark their email verified: whoever invited saw it too. - has an account on that address: signs in, and joining happens when they open their own link.
- has an account on another address: cannot use the link. Invitations are for one address.
Joining by invitation is recorded in Activity. A cancelled or expired invitation is refused, and an Owner can send a new one.
Personal organizations
In open mode, a person who signs up without an invitation gets an organization of their own, with the slug personal-<id>. They are its only Owner. They can start using Wardn at once, and add people to it from Members, or ask to join the organization their team already uses.
The slug marks it as a personal organization. It is a normal organization in every other way, and nothing stops its owner from inviting others later.
Ask to join
A person who signed up with a work address sees a Welcome page after sign-up. Under Your team may already be here it lists organizations that verified the domain of the person's email, with a button to ask to join. Under Or carry on by yourself it offers their personal organization.
- The person must have a verified email. Otherwise the page asks them to verify it first.
- Only organizations that verified the domain appear, so an address on
acme.examplecannot ask a company that has not proven it owns that domain. - A person has at most one pending request per organization.
- The person carries on in their personal organization until an Owner answers, and gets an email when they decide.
Approve a request
Owners open Access › Members and choose the Asked to join filter, which shows the count. Each request shows who asked, their email and when. The Owner picks the role the person would get, then approves or declines.
| Action | Result |
|---|---|
| Approve | The person becomes a member with the chosen role (only an Owner can give the Owner role), and the approval is recorded. |
| Decline | The request closes. The person can ask again later. |
Reading and answering requests needs the member:approve permission, which Owners hold and Admins do not. People without the permission do not see the filter.
api() { curl -fsS -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' "$@"; }
api "$WARDN_API_URL/api/v1/join-requests"
api -X POST "$WARDN_API_URL/api/v1/join-requests/$REQUEST_ID/approve" -d '{"role": "contributor"}'
api -X POST "$WARDN_API_URL/api/v1/join-requests/$REQUEST_ID/decline"Permissions
| Action | Permission | Held by |
|---|---|---|
| Read and answer requests to join | member:approve | Owners |
| Invite people, change roles | org:manage | Owners and Admins |
| Set up single sign-on and SCIM | sso:manage | Owners, and not agents |
Upgrade note
Installs from before sign-up modes created an organization called Personal, with the slug personal-<id>, for anyone who signed in and had none. After the upgrade:
- Those organizations stay exactly as they are. The slug marks them as personal organizations, which is what they now are.
- Nobody loses access to anything.
- Sign-up now defaults to
invite. If people on your install sign up for themselves, setWARDN_SIGNUP=open(Helm:auth.signup: open) before you upgrade, or after, to keep that behavior. Without it, only people with an invitation can create new accounts. Existing accounts keep signing in. - The web app needs the new sign-in tables for single sign-on and SCIM. The chart's init container creates them on start, as it does for every upgrade.
open mode with an empty allowlist lets anyone who can reach the page create an account. Set WARDN_SIGNUP_DOMAINS, or use invite, for an install on a network you do not control.