🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(ee): `LANGFUSE_ALLOWED_ORGANIZATION_CREATORS` is an ee feature (#2912)
Marc Klingend213aa54a6cf
diff --git a/.env.prod.example b/.env.prod.exampleindex 30411a0a1c..c70c842576 100644--- a/.env.prod.example+++ b/.env.prod.example@@ -98,9 +98,16 @@ ENCRYPTION_KEY="0000000000000000000000000000000000000000000000000000000000000000# Disable logging to `events` table in db# ENABLE_EVENT_LOG=false+++### START Enterprise Edition Configuration+# Allowlisted users that can create new organizations, by default all users can create organizations+### END Enterprise Edition Configuration++### START Envs to be deprecated in Langfuse v3.0diff --git a/web/src/features/entitlements/constants/entitlements.ts b/web/src/features/entitlements/constants/entitlements.tsindex a10758eca9..a38e6e7e73 100644--- a/web/src/features/entitlements/constants/entitlements.ts+++ b/web/src/features/entitlements/constants/entitlements.ts@@ -29,5 +29,6 @@ export const entitlementAccess: Record<Plan, Entitlement[]> = {"playground","model-based-evaluations","rbac-project-roles",+ // `LANGFUSE_ALLOWED_ORGANIZATION_CREATORS` -> directly checked on instance level in auth.ts],};diff --git a/web/src/server/auth.ts b/web/src/server/auth.tsindex 756b7ce70b..aa9d70dabd 100644--- a/web/src/server/auth.ts+++ b/web/src/server/auth.ts@@ -39,8 +39,13 @@ import { getOrganizationPlan } from "@/src/features/entitlements/server/getOrganimport { projectRoleAccessRights } from "@/src/features/rbac/constants/projectAccessRights";function canCreateOrganizations(userEmail: string | null): boolean {- // if no allowlist is set, allow all users to create organizations- if (!env.LANGFUSE_ALLOWED_ORGANIZATION_CREATORS) return true;+ // if no allowlist is set or no active EE key, allow all users to create organizations+ if (+ !env.LANGFUSE_ALLOWED_ORGANIZATION_CREATORS ||+ !env.LANGFUSE_EE_LICENSE_KEY+ )+ return true;+if (!userEmail) return false;const allowedOrgCreators =