Skip to content

Commit 9c85851

Browse files
authored
feat: configs for self hosted backfill usage export gating (#609)
* feat: configs for self hosted backfill usage export gating * updates
1 parent 8291f8b commit 9c85851

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

charts/langsmith/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ For information on how to use this chart, up-to-date release notes, and other gu
345345
| config.observability.tracing.env | string | `"ls_self_hosted"` | |
346346
| config.observability.tracing.exporter | string | `"http"` | |
347347
| config.observability.tracing.useTls | bool | `true` | |
348+
| config.orgAdminsInstallationUsageExportEnabled | bool | `false` | When true, any org admin can use the usage backfill export. |
348349
| config.personalOrgsDisabled | bool | `true` | Disable personal orgs. |
349350
| config.security | object | `{"cors":{"allowedOrigins":"*","allowedOriginsRegex":"","alwaysAllowPathsRegex":""}}` | Security configuration for CORS, headers, and other security-related settings. These settings control cross-origin access and help protect against common web vulnerabilities. |
350351
| config.security.cors | object | `{"allowedOrigins":"*","allowedOriginsRegex":"","alwaysAllowPathsRegex":""}` | CORS (Cross-Origin Resource Sharing) configuration. Controls which origins can make requests to the LangSmith API. By default, CORS is permissive. For production deployments, you should restrict this. |
@@ -354,6 +355,7 @@ For information on how to use this chart, up-to-date release notes, and other gu
354355
| config.settings | object | `{"redisRunsExpirySeconds":"21600"}` | Application Settings. These are used to tune the application |
355356
| config.settings.redisRunsExpirySeconds | string | `"21600"` | Optional. Be very careful when lowering this value as it can result in runs being lost if your queue is down/not processing items fast enough. |
356357
| config.skipValidation | bool | `false` | Skip validation checks in validate.yaml. Used by AWS Marketplace for helm template verification. |
358+
| config.superAdmins | list | `[]` | Email addresses of super admins who can export usage data. These are the only users allowed to use the usage backfill export unless orgAdminsInstallationUsageExportEnabled is set. |
357359
| config.telemetry.logs | bool | `true` | Optional. These values are used to send telemetry to the LangChain team to assist with troubleshooting. |
358360
| config.telemetry.metrics | bool | `true` | |
359361
| config.telemetry.traces | bool | `true` | |

charts/langsmith/templates/config-map.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ data:
6262
FF_USE_PG_FOR_FEEDBACK_CONFIGS_FETCH_ENABLED_ALL: "true"
6363
FF_USE_PG_FOR_FEEDBACK_FETCH_ENABLED_ALL: "true"
6464
IS_SELF_HOSTED: "true"
65+
# Usage backfill export gating
66+
{{- if .Values.config.superAdmins }}
67+
USAGE_EXPORT_ADMIN_EMAILS: {{ .Values.config.superAdmins | toJson | quote }}
68+
{{- end }}
69+
ORG_ADMINS_INSTALLATION_USAGE_EXPORT_ENABLED: {{ .Values.config.orgAdminsInstallationUsageExportEnabled | quote }}
6570
# Security - CORS configuration
6671
{{- if .Values.config.security.cors.allowedOriginsRegex }}
6772
CORS_ALLOWED_ORIGINS_REGEX: {{ .Values.config.security.cors.allowedOriginsRegex | quote }}

charts/langsmith/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ config:
199199
# Either set the password and JWT secret in plaintext, or set in the secret specified by existingSecretName above.
200200
initialOrgAdminPassword: ""
201201
jwtSecret: ""
202+
# -- Email addresses of super admins who can export usage data.
203+
# These are the only users allowed to use the usage backfill export
204+
# unless orgAdminsInstallationUsageExportEnabled is set.
205+
superAdmins: []
206+
# -- When true, any org admin can use the usage backfill export.
207+
orgAdminsInstallationUsageExportEnabled: false
208+
202209
# -- Prevent organization creation by users. This includes admins.
203210
userOrgCreationDisabled: true
204211
# -- Disable personal orgs.

0 commit comments

Comments
 (0)