Skip to content

Commit e6f6a0f

Browse files
authored
improvement(config): derive enterprise flags from one registry, add REGISTRATION_MODE, merge vLLM and LiteLLM (#10271)
* improvement(config): derive enterprise flags from one registry and merge the vLLM and LiteLLM providers * improvement(auth): replace the three signup toggles with REGISTRATION_MODE * fix(config): address review findings * fix(setup): advise the registration mode in effect; refresh docs fence sizes * improvement(config): simplify the registry and registration seams; retire the sandbox readiness marker * fix(config): expose the registration mode through getRegistrationMode * chore(docs): refresh the compatibility baseline after rebasing * fix(providers): use static log messages in the self-hosted core; document registration helpers
1 parent 287a110 commit e6f6a0f

101 files changed

Lines changed: 3084 additions & 2640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/scripts/http-e2e.sh‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ case "$group" in
187187
scim)
188188
export NEXT_PUBLIC_FORCE_HOSTED=true
189189
export BILLING_ENABLED=true NEXT_PUBLIC_BILLING_ENABLED=true
190-
export ENTERPRISE_ENABLED=true NEXT_PUBLIC_ENTERPRISE_ENABLED=true
191-
export SCIM_ENABLED=true NEXT_PUBLIC_SCIM_ENABLED=true
192-
export SSO_ENABLED=true NEXT_PUBLIC_SSO_ENABLED=true
193-
export ORGANIZATIONS_ENABLED=true NEXT_PUBLIC_ORGANIZATIONS_ENABLED=true
190+
export ENTERPRISE_ENABLED=true
191+
export SCIM_ENABLED=true
192+
export SSO_ENABLED=true
193+
export ORGANIZATIONS_ENABLED=true
194194
export INTERNAL_API_SECRET=scim-http-ci-local-secret-at-least-32-characters
195195
export DB_TX_TRIPWIRE=throw
196196
export NEXT_PUBLIC_CHAT_DISABLED=true
@@ -282,7 +282,6 @@ case "$group" in
282282
export NEXT_PUBLIC_FORCE_HOSTED=false
283283
export COPILOT_TOOL_PERMISSIONS_ENABLED=true
284284
export KNOWLEDGE_MEMBER_ACCESS=true CREDENTIAL_GROUPS=true ACCESS_CONTROL_ENABLED=true
285-
export NEXT_PUBLIC_ACCESS_CONTROL_ENABLED=true NEXT_PUBLIC_ORGANIZATIONS_ENABLED=true
286285
case "$group" in assistant-actions|organization-search) needs_browser=true ;; *) needs_browser=false ;; esac
287286
if [ "$needs_browser" = true ]; then start_browser_install "$group" --only-shell chromium; fi
288287
export INTERNAL_API_SECRET=desktop-inbox-http-ci-local-secret-at-least-32-characters
@@ -335,7 +334,6 @@ case "$group" in
335334
export NEXT_PUBLIC_FORCE_HOSTED=false
336335
export KNOWLEDGE_MEMBER_ACCESS=true CREDENTIAL_GROUPS=true ACCESS_CONTROL_ENABLED=true
337336
export SIM_LINKS=true
338-
export NEXT_PUBLIC_ACCESS_CONTROL_ENABLED=true
339337
export API_ENCRYPTION_KEY="$ENCRYPTION_KEY"
340338
start_browser_install "$group" --no-shell chromium
341339
extension_identity=$(bun - <<'JS'

‎apps/docs/content/docs/chat/mailer.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Sim Mailer gives an enabled workspace an email address. Send or forward a messag
1111

1212
A workspace **Admin** configures the inbox. On Sim Cloud, availability follows the workspace's Max or Enterprise plan and active billing, rather than the sender's individual plan.
1313

14-
On self-hosted deployments, availability depends on configured Chat and email services. `INBOX_ENABLED` or billing-disabled configuration can allow access, but the required Chat service key must still be configured. See [self-hosted environment variables](/platform/self-hosting/environment-variables).
14+
On self-hosted deployments without billing, the inbox is on by default. Set `INBOX_ENABLED=false` to turn it off; that closes it on the server and removes it from the interface. It still needs the Chat service key and email services configured to work. See [self-hosted environment variables](/platform/self-hosting/environment-variables).
1515

1616
Members keep their own workspace permissions when submitting email tasks. An allowed external email sender can submit read-only tasks; allowlisting does not grant workspace membership, workflow execution, mutation access, or raw-secret access.
1717

‎apps/docs/content/docs/platform/enterprise/access-control.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ On billing-disabled deployments, enable permission groups through the enterprise
147147

148148
```bash
149149
ACCESS_CONTROL_ENABLED=true
150-
NEXT_PUBLIC_ACCESS_CONTROL_ENABLED=true
151150
```
152151

153152
The enterprise master configuration can enable the feature; an explicit feature value takes precedence. Billing-enabled self-hosted deployments still require Enterprise. See [self-hosted enterprise setup](/platform/enterprise/self-hosted).

‎apps/docs/content/docs/platform/enterprise/audit-logs.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ On billing-disabled deployments, enable audit logs through enterprise configurat
118118

119119
```bash
120120
AUDIT_LOGS_ENABLED=true
121-
NEXT_PUBLIC_AUDIT_LOGS_ENABLED=true
122121
```
123122

124123
Explicit feature values take precedence over the enterprise master setting. Billing-enabled self-hosted deployments retain the Enterprise gate. See [self-hosted enterprise setup](/platform/enterprise/self-hosted).

‎apps/docs/content/docs/platform/enterprise/custom-blocks.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Callout } from '@/components/ui/callout'
77

88
Publish a workflow as a custom block so teammates can provide its inputs and use selected outputs without access to its source workflow. The block always runs the source's latest deployment. Use it for a shared knowledge lookup, an authenticated internal API, an enrichment step, or a prompt and guardrail maintained in one place.
99

10-
Publishing and managing a block requires admin access to its source workspace. Billing-enabled deployments require an Enterprise organization. On billing-disabled deployments, enable the custom-block feature through enterprise configuration or `CUSTOM_BLOCKS_ENABLED=true` and `NEXT_PUBLIC_CUSTOM_BLOCKS_ENABLED=true`. An organization is still required; see [self-hosted enterprise setup](/platform/enterprise/self-hosted).
10+
Publishing and managing a block requires admin access to its source workspace. Billing-enabled deployments require an Enterprise organization. On billing-disabled deployments, enable the custom-block feature through enterprise configuration or `CUSTOM_BLOCKS_ENABLED=true`. An organization is still required; see [self-hosted enterprise setup](/platform/enterprise/self-hosted).
1111

1212
## Publish a block
1313

‎apps/docs/content/docs/platform/enterprise/data-drains.mdx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,9 @@ Enable the feature through enterprise configuration or explicitly set:
248248

249249
```bash
250250
DATA_DRAINS_ENABLED=true
251-
NEXT_PUBLIC_DATA_DRAINS_ENABLED=true
252251
```
253252

254-
An explicit feature value takes precedence over `ENTERPRISE_ENABLED`. When disabled, the page is hidden, mutating drain requests return `404`, and the dispatcher does no work. Billing-enabled deployments retain the Enterprise gate. Keep server and public feature configuration aligned; `bunx sim-setup doctor` checks the pair. See [self-hosted enterprise setup](/platform/enterprise/self-hosted).
253+
An explicit feature value takes precedence over `ENTERPRISE_ENABLED`. When disabled, the page is hidden, mutating drain requests return `404`, and the dispatcher does no work. Billing-enabled deployments retain the Enterprise gate. See [self-hosted enterprise setup](/platform/enterprise/self-hosted).
255254

256255
The dispatcher requires scheduled calls to `GET /api/cron/run-data-drains`. Set the same `CRON_SECRET` on the app and its caller; the endpoint returns `401` when it is unset. Generate a secret if needed, then install it in both configurations:
257256

‎apps/docs/content/docs/platform/enterprise/data-retention.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ On billing-disabled deployments, enable retention through enterprise configurati
128128

129129
```bash
130130
DATA_RETENTION_ENABLED=true
131-
NEXT_PUBLIC_DATA_RETENTION_ENABLED=true
132131
```
133132

134133
An explicit feature value takes precedence over the enterprise master configuration. No plan-based default window is introduced: configure the windows you intend to apply.

‎apps/docs/content/docs/platform/enterprise/forks.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ On billing-disabled deployments, enable forking through enterprise configuration
188188

189189
```bash
190190
FORKING_ENABLED=true
191-
NEXT_PUBLIC_FORKING_ENABLED=true
192191
```
193192

194193
Explicit feature values take precedence over the master configuration. Billing-enabled self-hosted deployments still require Enterprise. See [self-hosted enterprise setup](/platform/enterprise/self-hosted).

‎apps/docs/content/docs/platform/enterprise/index.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ On a self-hosted deployment with billing disabled, enable enterprise features th
2626

2727
```bash
2828
ENTERPRISE_ENABLED=true
29-
NEXT_PUBLIC_ENTERPRISE_ENABLED=true
3029
```
3130

3231
Individual feature flags override the master switch. Most enterprise settings also need an organization that owns the workspace. Choose one instance-wide organization or provision separate organizations through the Admin API.

‎apps/docs/content/docs/platform/enterprise/scim/index.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Configure [SSO](/platform/enterprise/sso) separately for authentication. SCIM ca
1616

1717
- On Sim Cloud, use an Enterprise organization and an organization owner or admin account.
1818
- [Verify every email domain](/platform/enterprise/verified-domains) you will provision. Sim refuses account creation or an email change to an unverified domain.
19-
- On self-hosted deployments, enable SSO to reach **Single sign-on → Provisioning**, and enable SCIM. The enterprise master pair enables both; individual setup uses `SSO_ENABLED`, `NEXT_PUBLIC_SSO_ENABLED`, `SCIM_ENABLED`, and `NEXT_PUBLIC_SCIM_ENABLED`. See [Self-hosted SSO setup](/platform/enterprise/sso#self-hosted-setup) and [Deployment and upgrades](#deployment-and-upgrades).
19+
- On self-hosted deployments, enable SSO to reach **Single sign-on → Provisioning**, and enable SCIM. `ENTERPRISE_ENABLED` enables both; individual setup uses `SSO_ENABLED` and `SCIM_ENABLED`. See [Self-hosted SSO setup](/platform/enterprise/sso#self-hosted-setup) and [Deployment and upgrades](#deployment-and-upgrades).
2020

2121
## Plan membership and access
2222

@@ -205,7 +205,7 @@ While the connection is disabled, **Lock managed membership** and **Disable just
205205
Apply database migrations before the new application code. The SCIM tables and suspension fields are additive, allowing older code to run against the expanded schema during rollout.
206206

207207
<Callout type="warn">
208-
Keep `SCIM_ENABLED=false` and `NEXT_PUBLIC_SCIM_ENABLED=false` until all older application instances and workers are drained. Older code does not enforce SCIM suspension or explicit permission-group membership. These explicit flags also override the hosted default.
208+
Keep `SCIM_ENABLED=false` until all older application instances and workers are drained. Older code does not enforce SCIM suspension or explicit permission-group membership. This explicit flag also overrides the hosted default.
209209
</Callout>
210210

211211
After SCIM has suspended accounts or established managed access, rolling back to code that predates SCIM is unsafe: it cannot enforce those restrictions. Disabling synchronization does not undo suspension or restore earlier membership semantics.

0 commit comments

Comments
 (0)