Skip to content

Commit d640c0b

Browse files
feat(openhands): add userProvisioning.enabled feature switch (#728)
* feat(openhands): add userProvisioning.enabled feature switch Wires the admin POST /api/organizations/provision-user endpoint behind a per-environment Helm switch: - charts/openhands/values.yaml: new userProvisioning.enabled value, defaulting to false so staging and production inherit the off state unless an env-specific override flips it on. - charts/openhands/templates/_env.yaml: when userProvisioning.enabled is true, project USER_PROVISIONING_ENABLED=true into the deployment env, which the enterprise app server reads to decide whether to register the user-provisioning router. Sits next to the existing ADD_DEBUGGING_ROUTES gate for symmetry. Backend change that consumes the switch lands in OpenHands/OpenHands#14864. The deploy repo override that sets it true for per-branch feature deployments lands in a companion deploy PR. Co-authored-by: openhands <openhands@all-hands.dev> * Update chart version * Update comments --------- Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 97b9103 commit d640c0b

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

charts/openhands/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
description: OpenHands is an AI-driven autonomous software engineer
33
name: openhands
44
appVersion: cloud-1.38.0
5-
version: 0.7.59
5+
version: 0.7.60
66
maintainers:
77
- name: rbren
88
- name: xingyao

charts/openhands/templates/_env.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@
341341
value: "1"
342342
{{- end }}
343343

344+
{{- if .Values.userProvisioning.enabled }}
345+
- name: USER_PROVISIONING_ENABLED
346+
value: "true"
347+
{{- end }}
348+
344349
{{- $dbSslMode := "prefer" }}
345350
{{- if not .Values.postgresql.enabled }}
346351
{{- $dbSslMode = .Values.externalDatabase.sslMode | default "prefer" }}

charts/openhands/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ datadog:
3636
debuggingRoutes:
3737
enabled: false
3838

39+
# Admin POST /api/organizations/provision-user endpoint. When enabled,
40+
# the enterprise app server registers the user-provisioning router and
41+
# sets USER_PROVISIONING_ENABLED=true. This endpoint should only be
42+
# enabled for OHE deployments when the customer needs to create users
43+
# without any user input.
44+
userProvisioning:
45+
enabled: false
46+
3947
databaseMigrations:
4048
waitForDatabase: true
4149
createDatabases: false

0 commit comments

Comments
 (0)