You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ff421d8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/authentication.mdx
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,31 @@ Google and Microsoft share their client credentials with integrations. Register
61
61
62
62
## Control registration and sign-in [#controlling-who-can-sign-up]
63
63
64
+
`REGISTRATION_MODE` decides who can create an account and whether email/password and email OTP work at all:
65
+
66
+
|`REGISTRATION_MODE`| New accounts | Email/password and email OTP sign-in |
67
+
| --- | --- | --- |
68
+
|`open` (default) | Any enabled method | On |
69
+
|`no-email-signup`| Social login only | On |
70
+
|`closed`| None | On |
71
+
|`no-email`| Social login only |**Off, including for existing accounts**|
72
+
|`closed-no-email`| None |**Off, including for existing accounts**|
73
+
74
+
In the `closed` modes, existing accounts can still sign in, including to accept workspace invitations. No mode affects accounts created by SSO on first sign-in or by SCIM provisioning. An unrecognized value closes self-serve registration (sign-in keeps working) and logs an error until you correct it.
75
+
76
+
`REGISTRATION_MODE` replaces three variables. They still work and log a deprecation warning; set alongside `REGISTRATION_MODE`, the more restrictive setting wins:
|`DISABLE_REGISTRATION=true` with `EMAIL_PASSWORD_SIGNUP_ENABLED=false`|`closed-no-email`|
84
+
85
+
The other sign-in controls:
86
+
64
87
| Variable | Effect |
65
88
| --- | --- |
66
-
|`DISABLE_REGISTRATION=true`| Blocks new email/password, email OTP, and social accounts. Existing accounts can sign in, including to accept workspace invitations. SSO registration is unaffected. |
67
-
|`DISABLE_EMAIL_SIGNUP=true`| Blocks new email/password and email OTP registrations. Existing accounts can still sign in through those methods. |
68
-
|`EMAIL_PASSWORD_SIGNUP_ENABLED=false`| Disables email/password and email OTP sign-in and signup, including for existing accounts. |
69
89
|`ALLOWED_LOGIN_DOMAINS`| Comma-separated email domain allowlist, such as `acme.com,acme.co.uk`. Applies to email/password and email OTP sign-in as well as email signup. |
70
90
|`ALLOWED_LOGIN_EMAILS`| Comma-separated address allowlist. An address or its domain may satisfy the allowlists. |
71
91
|`BLOCKED_SIGNUP_DOMAINS`| Comma-separated blocked domains. Blocks signup, sign-in, and executions for addresses in those domains, including subdomains. |
@@ -74,14 +94,14 @@ Google and Microsoft share their client credentials with integrations. Register
74
94
|`BLOCKED_EMAIL_MX_HOSTS`| MX-host substrings to reject when MX validation is enabled. |
75
95
76
96
<Callouttype="warn">
77
-
Email allowlists do not filter first-time Google, GitHub, or Microsoft sign-in. To restrict social access, disable login providers you have not vetted or restrict membership through your identity provider and use SSO. MX validation applies only to email/password signup, not sign-in or email OTP. Registration-disabled and blocked-domain/address controls also cover social accounts.
97
+
Email allowlists do not filter first-time Google, GitHub, or Microsoft sign-in. To restrict social access, disable login providers you have not vetted or restrict membership through your identity provider and use SSO. MX validation applies only to email/password signup, not sign-in or email OTP. The `closed` registration modes and the blocked-domain/address controls also cover social accounts.
78
98
</Callout>
79
99
80
100
For example, an installation using SSO while allowing existing company email accounts to sign in can set:
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ See [AWS credentials](/integrations/aws-credentials#self-hosted-deployments) for
174
174
175
175
## Access control
176
176
177
-
Who may sign up and sign in — the allowlists, blocklists, `DISABLE_REGISTRATION`, `DISABLE_INVITATIONS`, `DISABLE_PUBLIC_API`, and `DISABLE_AUTH` — is documented in [Authentication](/platform/self-hosting/authentication).
177
+
Who may sign up and sign in — the allowlists, blocklists, `REGISTRATION_MODE`, `DISABLE_INVITATIONS`, `DISABLE_PUBLIC_API`, and `DISABLE_AUTH` — is documented in [Authentication](/platform/self-hosting/authentication).
# DISABLE_AUTH=true # Uncomment to bypass authentication entirely. Creates an anonymous session for all requests.
14
14
15
+
# Registration (Optional)
16
+
# REGISTRATION_MODE=open # open (default) | no-email-signup | closed | no-email | closed-no-email. `closed*` stops self-serve signup by any method; `no-email*` also turns off email/password and OTP sign-in for existing accounts. Replaces DISABLE_REGISTRATION, DISABLE_EMAIL_SIGNUP, and EMAIL_PASSWORD_SIGNUP_ENABLED.
# EGRESS_ALLOWED_HOSTS=host.docker.internal,*.svc.cluster.local # Uncomment to let outbound requests reach these hosts on a private network. Widens the SSRF boundary; only use on a trusted private network.
17
20
# EGRESS_ALLOWED_IP_RANGES=10.0.0.0/8 # Same, by CIDR. Cloud metadata endpoints stay blocked regardless, and neither setting is honored for URLs harvested from content or for a proxy.
0 commit comments