Repository navigation
feat(org): make the default organization name configurable (#1749) #2222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
0118746
b155ce9
22611ee
357c689
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,6 +172,10 @@ def get_required_setting(setting_key: str, default: str | None = None) -> str | | |
|
|
||
| DEFAULT_AUTH_USERNAME = os.environ.get("DEFAULT_AUTH_USERNAME", "unstract") | ||
| DEFAULT_AUTH_PASSWORD = os.environ.get("DEFAULT_AUTH_PASSWORD", "unstract") | ||
| # Name/id of the default organization created for the open-source (single-tenant) | ||
|
greptile-apps[bot] marked this conversation as resolved.
Resolved
|
||
| # deployment. Configurable so the org segment of URLs (e.g. /mock_org/tools) can be | ||
| # a meaningful name. Defaults to "mock_org" for backward compatibility. | ||
| DEFAULT_ORGANIZATION_NAME = os.environ.get("DEFAULT_ORGANIZATION_NAME", "mock_org") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift Keep backend and frontend organization-name configuration in lockstep. The backend accepts an explicitly empty value, while the frontend silently falls back to
📍 Affects 2 files
🤖 Prompt for AI Agents |
||
| SYSTEM_ADMIN_USERNAME = get_required_setting("SYSTEM_ADMIN_USERNAME") | ||
| SYSTEM_ADMIN_PASSWORD = get_required_setting("SYSTEM_ADMIN_PASSWORD") | ||
| SYSTEM_ADMIN_EMAIL = get_required_setting("SYSTEM_ADMIN_EMAIL") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.