Add settings.platform.disableRegularOrgCreation - #1337
Merged
Merged
Conversation
Seeds [admin] DISABLE_REGULAR_ORG_CREATION into the ace-user-config secret so a siteadmin can toggle regular org creation at runtime. Left null by default, which lets the platform pick: disabled on selfhosted, enabled on the hosted platform. Signed-off-by: Arnob kumar saha <arnob@appscode.com>
ArnobKumarSaha
force-pushed
the
arnob-org-creation
branch
from
September 17, 2026 11:53
f0b81b1 to
9ff71d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to appscode-cloud/b3#1656.
b3 reads
[admin] DISABLE_REGULAR_ORG_CREATIONfrom the merged platform config and lets a siteadmin flip it at runtime, writing back to theace-user-configsecret. This adds the chart value that seeds it.Why
user.iniand notapp.iniace-configis re-rendered by helm on every upgrade, so a runtime write there is reverted.ace-user-configis created only when absent (lookupguard +helm.sh/resource-policy: keep) and is the secret b3 patches and republishes over NATS — the same place branding andDISABLE_REGISTRATIONlive.Default is
null, not adeploymentTypecheckb3 derives
AppsCodeHostedfrom the domain (info.HostedDomain(Domain)), not fromdeploymentType, so a chart-side guess could contradict it. Left unset, b3 defaults the flag to!AppsCodeHosted— disabled on selfhosted, enabled on appscode.com.The template emits the
[admin]section only when the value is an actual bool (kindIs "bool"), so an explicitfalseis not silently dropped the waywithwould drop it.Existing installs are untouched: the secret already exists, so the template does not render, and the b3-side default covers them.
Verified
helm templatefor unset /=true/=false, andgo build ./....