Installation administrators can open Administration → System settings → User registration and choose public signup from any IP, invitation-only signup, or an IP/CIDR allowlist. Valid email-bound invitations work from any IP even when uninvited signup is restricted. Workspace administrators cannot edit this installation-wide policy.
Saving requires the current local-account password and a recent second factor when enabled; corporate accounts use recent provider confirmation. Changes are effective immediately, audited and persisted across restarts/deployments. Failed loading disables saving; concurrent edits return 409 and require a reload. In selfhost, new accounts join the default workspace. In legacy saas mode they verify email and accept invitations. Creating workspaces requires installation administration in every mode.
Initial environment defaults#
Before an administrator saves the policy, the database inherits deployment values:
REGISTRATION_MODE=public
REGISTRATION_ENABLED=true
REGISTRATION_ALLOWED_CIDRS="0.0.0.0/0 ::/0"Use mode invite with registration disabled for an initially closed deployment; use ip_restricted with registration enabled and explicit CIDRs for controlled bootstrap. legacy supports older configuration files. After saving in the portal, the stored policy overrides environment defaults. Editing the environment alone cannot reopen a database-controlled policy.
The examples use public signup and the future origins sintonia.one and api.sintonia.one. The existing deployment retains the domains in its private .env.deploy file, which was preserved. Local Mailpit captures email rather than delivering it to external inboxes.
Trusted proxy and CORS#
The backend enforces the policy. Caddy no longer blocks registration/preflight by IP; ordinary CORS handling exposes readable 403 errors. Keep backend port 8080 private, behind the trusted proxy. The example uses framework forwarded-header handling and Caddy overwrites client-supplied forwarding headers. Additional CDNs/proxies require an explicit trust configuration or the observed IP may identify the intermediary.
The installer upgrades recognized older shipped Caddyfiles and retains a backup under .incoming/Caddyfile.previous. Custom Caddyfiles are preserved; remove obsolete registration/IP rules after reviewing the incoming reference so portal settings are not overridden by the proxy.
API#
GET /api/admin/registration-policy returns mode, allowedCidrs, version, source, clientIp and deploymentMode only for installation administrators. PUT accepts mode (public, invite, ip_restricted), up to 32 allowed IPs/CIDRs, the version from GET and the password confirmation. Recent 2FA can be verified first through /api/security/mfa/verify. Invalid values return 400; permissions/password errors return 403; concurrent edits return 409. Never log credentials, tokens or environment files. This policy does not change public-channel encryption rules.
Signup form#
New accounts require a matching password confirmation before any registration request is sent. Confirmation is not stored or sent as another credential.
Optional registration approval#
Require approval of new registrations defaults to false and is independent of the registration mode. When enabled, new local accounts, including password signup, invited signup and email OTP, remain pending. They receive no session and are excluded from people search until approved. Existing accounts remain approved. Corporate IDP provisioning follows the provider's rules rather than this local-signup queue.
Installation administrators review up to 50 pending accounts per page in the same system settings panel, approve/reject them and confirm with their password and recent MFA when enabled; corporate administrators follow provider confirmation. Decisions are audited and emailed. Disabling approval does not approve existing pending requests. Rejecting does not delete the account or free its email for new signup.
Admin API: GET /api/admin/registration-requests?after=ID; PUT /api/admin/registration-requests/{user} with approved and password. Registration policy GET/PUT adds approvalRequired under the existing optimistic version check. Omitting it in PUT preserves the saved value.
Passwordless email OTP#
Select Enter with code by email, enter your email and optionally a name for a new account. An eight-digit, single-use code expires after ten minutes. Confirming creates a local account without a password form if registration policy permits the requesting IP; approval still applies. In invite-only mode, new users use the invited signup form; existing local users may use OTP.
Sending is limited to once per minute per email and twenty requests per hour per IP. Five wrong attempts exhaust a code. Responses do not disclose whether an email exists or signup is allowed. Disabled, federated and IDP-only accounts cannot use this route to bypass access rules. Enabled MFA remains required. OTP accounts can set a password later through email password recovery.
Email proves account access, not ownership of encryption keys. A new device still needs linking, encrypted backup restoration or explicit recovery without history. OTP alone cannot restore encrypted messages.
Public API: POST /api/auth/email/request accepts email and optional name and returns 202. POST /api/auth/email/verify accepts email and code, returning a session, MFA challenge or approvalPending and a message. Codes are stored hashed; their email body remains temporarily in the SMTP outbox for delivery.
Mailpit captures mail without external delivery. Configure a real outbound SMTP service for end users to receive codes and approval decisions. No external mail provider is enabled automatically.
OTP login and account blocking#
Email OTP login defaults to disabled, including existing installations. Installation administrators can enable it in Administration → System → Login methods with password and required 2FA confirmation. This does not disable 2FA, recovery or confirmation email. Disabling OTP invalidates pending codes.
Administration → Installation accounts provides confirmed Block/Unblock actions. Blocking revokes sessions and prevents access while preserving data; unblocking requires a fresh login. Remove in People only removes workspace membership. Installation administrators are protected from this operation. Existing media is removed through the control queue; the protected proxy rejects new connections using revoked credentials.