Skip to content

Commit 0f13b56

Browse files
thquadrichard-cox
authored andcommitted
Add USER_ENDPOINTS_ENABLED to helm chart values and documentation (#4876)
Signed-off-by: Thomas Quandt <[email protected]>
1 parent 9f0ed4d commit 0f13b56

File tree

6 files changed

+14
-2
lines changed

6 files changed

+14
-2
lines changed

deploy/kubernetes/console/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The following table lists the configurable parameters of the Stratos Helm chart
7878
|console.userInviteSubject|Email subject of the user invitation message||
7979
|console.techPreview|Enable/disable Tech Preview features|false|
8080
|console.apiKeysEnabled|Enable/disable API key-based access to Stratos API (disabled, admin_only, all_users)|admin_only|
81+
|console.userEndpointsEnabled|Enable/disable user endpoints or let only admins view and manage user endpoints (disabled, admin_only, enabled)|disabled|
8182
|console.ui.listMaxSize|Override the default maximum number of entities that a configured list can fetch. When a list meets this amount additional pages are not fetched||
8283
|console.ui.listAllowLoadMaxed|If the maximum list size is met give the user the option to fetch all results|false|
8384
|console.localAdminPassword|Use local admin user instead of UAA - set to a password to enable||

deploy/kubernetes/console/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ spec:
288288
value: {{ default "false" .Values.console.techPreview | quote }}
289289
- name: API_KEYS_ENABLED
290290
value: {{ default "admin_only" .Values.console.apiKeysEnabled | quote }}
291+
- name: USER_ENDPOINTS_ENABLED
292+
value: {{ default "disabled" .Values.console.userEndpointsEnabled | quote }}
291293
- name: HELM_CACHE_FOLDER
292294
value: /helm-cache
293295
{{- if .Values.console.ui }}

deploy/kubernetes/console/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"enum": ["disabled", "admin_only", "all_users"],
1515
"description": "Enable API keys for admins, all users or nobody"
1616
},
17+
"userEndpointsEnabled": {
18+
"type": "string",
19+
"enum": ["disabled", "admin_only", "enabled"],
20+
"description": "Enable, disable or let only admins view user endpoints"
21+
},
1722
"autoRegisterCF": {
1823
"type": ["string", "null"]
1924
},

deploy/kubernetes/console/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ console:
7070
# Enable/disable API key-based access to Stratos API
7171
apiKeysEnabled: admin_only
7272

73+
# Enable/disable user endpoints
74+
userEndpointsEnabled: disabled
75+
7376
ui:
7477
# Override the default maximum number of entities that a configured list can fetch. When a list meets this amount additional pages are not fetched
7578
listMaxSize:

website/docs/deploy/kubernetes/install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ The following table lists the configurable parameters of the Stratos Helm chart
7979
|console.templatesConfigMapName|Name of config map that provides the template files for user invitation emails||
8080
|console.userInviteSubject|Email subject of the user invitation message||
8181
|console.techPreview|Enable/disable Tech Preview features|false|
82+
|console.userEndpointsEnabled|Enable/disable user endpoints or let only admins view and manage user endpoints (disabled, admin_only, enabled)|disabled|
8283
|console.ui.listMaxSize|Override the default maximum number of entities that a configured list can fetch. When a list meets this amount additional pages are not fetched||
8384
|console.ui.listAllowLoadMaxed|If the maximum list size is met give the user the option to fetch all results|false|
8485
|console.localAdminPassword|Use local admin user instead of UAA - set to a password to enable||

website/docs/endpoints/cf/user-endpoints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Stratos provides a way for users to create endpoints without the need to be an a
1111

1212
In order to enable User Endpoints support in Stratos:
1313

14-
1. The environment variable `USER_ENDPOINTS_ENABLED` must be set
14+
1. The environment variable `USER_ENDPOINTS_ENABLED` or helm chart value `console.userEndpointsEnabled` must be set
1515
2. The UAA client used by Stratos needs an additional scope `stratos.endpointadmin`
1616
3. Users need to have the `stratos.endpointadmin` group attached to them
1717

1818
Once all steps have been completed, user within the `stratos.endpointadmin` group are allowed to create endpoints. Endpoints created by users are only visible to their respective user and all admins.
1919

2020
## Environment variable
2121

22-
`USER_ENDPOINTS_ENABLED` can be set to three different states:
22+
`USER_ENDPOINTS_ENABLED` or helm chart value `console.userEndpointsEnabled` can be set to three different states:
2323

2424
1. `disabled` (default) will disable this feature. Neither admins nor users will see user endpoints.
2525
2. `admin_only` will hide user endpoints from users. Admins can still see all endpoints created by users.

0 commit comments

Comments
 (0)