@camunda/ccma-saas-frontend 0.0.41 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +1 -1
  2. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +1 -0
  3. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
  4. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +14 -6
  5. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +3 -1
  6. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
  7. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +21 -6
  8. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.types.d.ts +17 -0
  9. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +3 -0
  10. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +51 -0
  11. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +24 -0
  12. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.js +6 -0
  13. package/lib/esm/components/c4-cluster-overview/applications.d.ts +3 -3
  14. package/lib/esm/components/c4-cluster-overview/applications.js +17 -2
  15. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +1 -1
  16. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +1 -1
  17. package/lib/esm/components/c4-cluster-overview/cluster-details.js +1 -1
  18. package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.d.ts +3 -3
  19. package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.js +5 -13
  20. package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +1 -0
  21. package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +42 -0
  22. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  23. package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +4 -0
  24. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +4 -0
  25. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
  26. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +3 -5
  27. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +1 -2
  28. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -3
  29. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +2 -2
  30. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +2 -3
  31. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +2 -2
  32. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +2 -3
  33. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +2 -2
  34. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -3
  35. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +2 -2
  36. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
  37. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -2
  38. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +1 -2
  39. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
  40. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +4 -5
  41. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +1 -2
  42. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +2 -3
  43. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -3
  44. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-shared.types.d.ts +0 -4
  45. package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +3 -0
  46. package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.js +21 -0
  47. package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.types.d.ts +6 -0
  48. package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.types.js +6 -0
  49. package/lib/esm/externalUrls.const.d.ts +3 -4
  50. package/lib/esm/externalUrls.const.js +4 -14
  51. package/lib/esm/externalUrls.const.spec.js +1 -9
  52. package/lib/esm/i18n/en/modals/apiclients.json +1 -0
  53. package/lib/esm/i18n/en/modals/clusterclients.json +8 -0
  54. package/lib/esm/i18n/en/modals/clusters.json +4 -1
  55. package/lib/esm/i18n/en/pages/clusterdetails.json +55 -4
  56. package/lib/esm/i18n/en/pages/orgmanagement.json +1 -0
  57. package/lib/esm/index.css +257 -0
  58. package/lib/esm/index.d.ts +5 -1
  59. package/lib/esm/index.js +3 -1
  60. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +27 -1
  61. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +45 -33
  62. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +52 -12
  63. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -6
  64. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +7 -0
  65. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +2 -0
  66. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +1 -1
  67. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +19 -20
  68. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +53 -35
  69. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +1 -1
  70. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +11 -26
  71. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +2 -1
  72. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +15 -30
  73. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +104 -3
  74. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +16 -15
  75. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +1 -2
  76. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +140 -35
  77. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +192 -5
  78. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  79. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +65 -12
  80. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +120 -1
  81. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +3 -2
  82. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  83. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  84. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +20 -1
  85. package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
  86. package/lib/esm/widgets/job-worker/c4-job-worker-details-page.js +2 -2
  87. package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
  88. package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.js +2 -2
  89. package/lib/esm/widgets/job-worker/c4-job-worker.types.d.ts +0 -3
  90. package/lib/esm/widgets/management/c4-management-app.js +7 -1
  91. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +7 -0
  92. package/package.json +31 -26
  93. package/lib/esm/index.scss +0 -267
  94. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.spec.d.ts +0 -1
  95. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.spec.js +0 -55
@@ -11,8 +11,8 @@ import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-p
11
11
  function safeTranslate(translateFn, key, fallback, options) {
12
12
  try {
13
13
  const result = translateFn(key, options);
14
- // If i18next returns the key unchanged, use fallback
15
- if (result === key) {
14
+ const keyWithoutNamespace = key.includes(':') ? key.split(':').slice(1).join(':') : key;
15
+ if (result === key || result === keyWithoutNamespace) {
16
16
  return fallback;
17
17
  }
18
18
  return result;
@@ -50,11 +50,14 @@ export const C4ClusterDetailsSettingsTab = (props) => {
50
50
  const [tasklistV2UpgradeError, setTasklistV2UpgradeError] = useState(undefined);
51
51
  const [isUpdatingRba, setIsUpdatingRba] = useState(false);
52
52
  const [isUpdatingIdentityAuthorizations, setIsUpdatingIdentityAuthorizations,] = useState(false);
53
+ const [isUpdatingMultiTenancy, setIsUpdatingMultiTenancy] = useState(false);
53
54
  const [rbaError, setRbaError] = useState(false);
54
55
  const [authorizationsConfirm, setAuthorizationsConfirm] = useState(undefined);
55
56
  const [authorizationsConfirmError, setAuthorizationsConfirmError] = useState(undefined);
57
+ const [operationError, setOperationError] = useState(undefined);
58
+ const settingUpdateFailedFallback = safeTranslate(props.t, 'clusterdetails:settings.operationError.fallback', 'Could not update setting. Please try again.');
56
59
  const isReconciliationPaused = isClusterReconciliationPaused(props.cluster);
57
- const effectiveCanEdit = props.canEditCluster && !isReconciliationPaused;
60
+ const effectiveCanEdit = props.canEditCluster && !isReconciliationPaused && !props.restoreInProgress;
58
61
  const checkClusterVersion = useCallback((minVersion) => {
59
62
  if (!props.cluster?.generation?.versions?.zeebe) {
60
63
  return false;
@@ -93,7 +96,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
93
96
  possiblyVersionOrDockerPath: props.cluster.generation.versions.zeebe,
94
97
  trueForSnapshot: 'compare',
95
98
  operator: VersionCheckOperator.LessThan,
96
- versionToCompareTo: '8.10.0',
99
+ versionToCompareTo: '8.10.0-0',
97
100
  }));
98
101
  }, [props.cluster?.generation?.versions?.zeebe, checkClusterVersion]);
99
102
  const toggleAutoUpdate = useCallback(async () => {
@@ -123,7 +126,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
123
126
  clusterId: props.clusterId,
124
127
  state: nextState,
125
128
  });
126
- throw error;
129
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
127
130
  }
128
131
  finally {
129
132
  setIsUpdatingAutoUpdate(false);
@@ -156,7 +159,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
156
159
  clusterId: props.clusterId,
157
160
  state: nextState,
158
161
  });
159
- throw error;
162
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
160
163
  }
161
164
  finally {
162
165
  setIsUpdatingEnforceGroups(false);
@@ -183,7 +186,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
183
186
  clusterId: props.clusterId,
184
187
  state: nextState,
185
188
  });
186
- throw error;
189
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
187
190
  }
188
191
  finally {
189
192
  setIsUpdatingLowLatency(false);
@@ -210,7 +213,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
210
213
  clusterId: props.clusterId,
211
214
  state: nextState,
212
215
  });
213
- throw error;
216
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
214
217
  }
215
218
  finally {
216
219
  setIsUpdatingSwagger(false);
@@ -237,7 +240,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
237
240
  clusterId: props.clusterId,
238
241
  state: nextState,
239
242
  });
240
- throw error;
243
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
241
244
  }
242
245
  finally {
243
246
  setIsUpdatingMcp(false);
@@ -266,7 +269,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
266
269
  clusterId: props.clusterId,
267
270
  state: nextState,
268
271
  });
269
- throw error;
272
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
270
273
  }
271
274
  finally {
272
275
  setIsUpdatingBusinessIdUniqueness(false);
@@ -389,6 +392,36 @@ export const C4ClusterDetailsSettingsTab = (props) => {
389
392
  setIsUpdatingIdentityAuthorizations(false);
390
393
  }
391
394
  }, [props, runtime.telemetry]);
395
+ const updateMultiTenancy = useCallback(async (nextState) => {
396
+ runtime.telemetry?.track?.(`multiTenancy:${nextState}:confirm`, {
397
+ message: `Confirm ${nextState} multi-tenancy`,
398
+ orgId: props.orgId,
399
+ clusterId: props.clusterId,
400
+ state: nextState,
401
+ });
402
+ setIsUpdatingMultiTenancy(true);
403
+ try {
404
+ await ConsoleClusterService.updateCluster({
405
+ config: props.apiConfig,
406
+ params: { orgId: props.orgId, clusterId: props.clusterId },
407
+ body: { multiTenancyEnabled: nextState },
408
+ });
409
+ await props.onReloadCluster();
410
+ }
411
+ catch (error) {
412
+ runtime.telemetry?.captureException?.(error, {
413
+ eventName: `multiTenancy:${nextState}:confirm`,
414
+ message: 'Error while toggling multi-tenancy',
415
+ orgId: props.orgId,
416
+ clusterId: props.clusterId,
417
+ state: nextState,
418
+ });
419
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
420
+ }
421
+ finally {
422
+ setIsUpdatingMultiTenancy(false);
423
+ }
424
+ }, [props, runtime.telemetry]);
392
425
  const openIdentityBasedAuthorizationsConfirmation = useCallback(() => {
393
426
  if (!props.cluster)
394
427
  return;
@@ -401,6 +434,10 @@ export const C4ClusterDetailsSettingsTab = (props) => {
401
434
  const shouldShowResourceBasedAuthorizations = useMemo(() => {
402
435
  return checkClusterVersion('8.6.0') && !checkClusterVersion('8.8.0-alpha5');
403
436
  }, [checkClusterVersion]);
437
+ const isMultiTenancyFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.multiTenancy') ?? false;
438
+ const shouldShowMultiTenancy = useMemo(() => {
439
+ return checkClusterVersion('8.8.0-alpha7') && isMultiTenancyFeatureEnabled;
440
+ }, [checkClusterVersion, isMultiTenancyFeatureEnabled]);
404
441
  if (!props.cluster)
405
442
  return _jsx(_Fragment, {});
406
443
  const isSubjectToIdentityAuthorization = checkClusterVersion('8.8.0-alpha5');
@@ -469,7 +506,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
469
506
  updateIdentityBasedAuthorizations,
470
507
  updateResourceBasedAuthorizations,
471
508
  ]);
472
- return (_jsxs(_Fragment, { children: [_jsx(C4ClusterSettings, { settings: {
509
+ return (_jsxs(_Fragment, { children: [operationError && (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(props.t, 'clusterdetails:settings.operationError.title', 'Setting update failed'), subtitle: operationError, onCloseButtonClick: () => setOperationError(undefined) })), _jsx(C4ClusterSettings, { settings: {
473
510
  title: safeTranslate(props.t, 'clusterdetails:settings.clusterSettings.title', 'Cluster settings'),
474
511
  ...(shouldShowResourceBasedAuthorizations && {
475
512
  resourceBasedAuthorizations: {
@@ -525,7 +562,21 @@ export const C4ClusterDetailsSettingsTab = (props) => {
525
562
  permissions: {
526
563
  mayToggleIdentityBasedAuthorizations: effectiveCanEdit && !isUpdatingIdentityAuthorizations,
527
564
  },
528
- description: (_jsxs(_Fragment, { children: [_jsx("p", { children: "When enabled, users and clients will no longer have access to cluster resources and applications, requiring you to define authorizations in the cluster's Admin component." }), _jsx("p", { children: "Organization admins will keep all permissions and access to all resources." }), _jsx("br", {}), _jsx("p", { children: "When disabled, authorizations can be configured for users and clients, but they will remain inactive until the feature is enabled." }), _jsx("br", {}), _jsxs("p", { children: ["Learn more about", ' ', _jsx(Link, { href: props.docsUrls.identityAuthorization, target: '_blank', rel: 'noopener noreferrer', children: "managing authorizations" })] })] })),
565
+ description: (_jsxs(_Fragment, { children: [_jsx("p", { children: "When enabled, users and clients will no longer have access to cluster resources and applications, requiring you to define authorizations in the cluster's Admin component." }), _jsx("p", { children: "Organization admins will keep all permissions and access to all resources." }), _jsx("br", {}), _jsx("p", { children: "When disabled, authorizations can be configured for users and clients, but they will remain inactive until the feature is enabled." }), _jsx("br", {}), _jsxs("p", { children: ["Learn more about", ' ', _jsx(Link, { href: props.docsUrls.identityAuthorization, target: '_blank', rel: 'noopener noreferrer', children: "resource-based authorizations" })] })] })),
566
+ },
567
+ }),
568
+ ...(shouldShowMultiTenancy && {
569
+ multiTenancy: {
570
+ enabled: props.cluster.multiTenancyEnabled ?? false,
571
+ action: {
572
+ label: safeTranslate(props.t, 'clusterdetails:settings.multiTenancy.title', 'Multi-tenancy'),
573
+ onClick: () => updateMultiTenancy(!(props.cluster?.multiTenancyEnabled ?? false)),
574
+ },
575
+ permissions: {
576
+ mayToggle: effectiveCanEdit && !isUpdatingMultiTenancy,
577
+ },
578
+ description: (_jsxs(_Fragment, { children: [_jsx("p", { children: safeTranslate(props.t, 'clusterdetails:settings.multiTenancy.description.enabled', 'When enabled, tenant-level authorization checks will be enforced for all resource-based authorizations. Users, groups, and roles not assigned to a tenant will lose access to any resources scoped to that tenant.') }), _jsx("br", {}), _jsx("p", { children: safeTranslate(props.t, 'clusterdetails:settings.multiTenancy.description.disabled', 'When disabled, tenants can still be created and principals assigned, but tenant-level checks will not be enforced until the feature is enabled. All data is associated with the <default> tenant.') }), _jsx("br", {}), _jsxs("p", { children: [safeTranslate(props.t, 'clusterdetails:settings.multiTenancy.docsLink.prefix', 'Learn more about'), ' ', _jsx(Link, { href: props.docsUrls.multiTenancy, target: '_blank', rel: 'noopener noreferrer', children: safeTranslate(props.t, 'clusterdetails:settings.multiTenancy.docsLink.label', 'managing tenants') })] })] })),
579
+ docsUrl: props.docsUrls.multiTenancy,
529
580
  },
530
581
  }),
531
582
  autoUpdate: {
@@ -646,6 +697,8 @@ export const C4ClusterDetailsSettingsTab = (props) => {
646
697
  },
647
698
  },
648
699
  permissions: {
700
+ // Cluster deletion is allowed even during a restore — see
701
+ // packages/c4/project-instructions/2135-same-cluster-restore.md.
649
702
  mayDeleteCluster: props.canDeleteCluster,
650
703
  },
651
704
  } }), showTasklistV2ConfirmModal && (_jsxs(Modal, { open: true, modalHeading: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.heading', 'Upgrade to Tasklist v2'), primaryButtonText: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.confirm', 'Upgrade to Tasklist v2'), secondaryButtonText: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.cancel', 'Cancel'), primaryButtonDisabled: isUpdatingTasklistV2, onRequestClose: () => {
@@ -17,6 +17,7 @@ const stubDocsUrls = {
17
17
  swagger: 'https://docs.example/swagger',
18
18
  mcpOverview: 'https://docs.example/mcp-overview',
19
19
  tasklistApiVersions: 'https://docs.example/tasklist-api-versions',
20
+ multiTenancy: 'https://docs.example/multi-tenancy',
20
21
  };
21
22
  const resizeObserverStub = class ResizeObserver {
22
23
  observe() { }
@@ -39,7 +40,9 @@ vi.mock('../../../components/c4-cluster-settings/c4-cluster-settings', () => {
39
40
  return {
40
41
  C4ClusterSettings: (props) => {
41
42
  lastClusterSettingsProps = props;
42
- return (_jsxs("div", { "data-testid": 'C4ClusterSettings', children: [props.tasklistSettings?.action ? (_jsx("button", { type: 'button', onClick: props.tasklistSettings.action.onClick, disabled: props.tasklistSettings.action.disabled, children: props.tasklistSettings.action.label })) : null, props.settings?.resourceBasedAuthorizations?.action ? (_jsx("button", { type: 'button', onClick: props.settings.resourceBasedAuthorizations.action.onClick, children: props.settings.resourceBasedAuthorizations.action.label })) : null, props.settings?.identityBasedAuthorizations?.action ? (_jsx("button", { type: 'button', onClick: props.settings.identityBasedAuthorizations.action.onClick, children: props.settings.identityBasedAuthorizations.action.label })) : null, props.settings?.swaggerToggle?.description] }));
43
+ return (_jsxs("div", { "data-testid": 'C4ClusterSettings', children: [props.tasklistSettings?.action ? (_jsx("button", { type: 'button', onClick: props.tasklistSettings.action.onClick, disabled: props.tasklistSettings.action.disabled, children: props.tasklistSettings.action.label })) : null, props.settings?.resourceBasedAuthorizations?.action ? (_jsx("button", { type: 'button', onClick: props.settings.resourceBasedAuthorizations.action.onClick, children: props.settings.resourceBasedAuthorizations.action.label })) : null, props.settings?.identityBasedAuthorizations?.action ? (_jsx("button", { type: 'button', onClick: props.settings.identityBasedAuthorizations.action.onClick, children: props.settings.identityBasedAuthorizations.action.label })) : null, props.settings?.multiTenancy?.action ? (_jsx("button", { type: 'button', onClick: () => {
44
+ Promise.resolve(props.settings.multiTenancy?.action.onClick()).catch(() => undefined);
45
+ }, disabled: !props.settings.multiTenancy.permissions?.mayToggle, children: props.settings.multiTenancy.action.label })) : null, props.settings?.swaggerToggle?.description] }));
43
46
  },
44
47
  };
45
48
  });
@@ -92,6 +95,9 @@ function renderTab(options) {
92
95
  getAccessToken: async () => 'token',
93
96
  },
94
97
  backendUrls: {},
98
+ featureFlags: {
99
+ isEnabled: () => true,
100
+ },
95
101
  }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
96
102
  if (!lastClusterSettingsProps) {
97
103
  throw new Error('Expected C4ClusterSettings to be rendered');
@@ -116,6 +122,7 @@ function renderTasklistTab(options) {
116
122
  swagger: '',
117
123
  mcpOverview: '',
118
124
  tasklistApiVersions: '',
125
+ multiTenancy: '',
119
126
  } }) }));
120
127
  }
121
128
  describe('C4ClusterDetailsSettingsTab version gating', () => {
@@ -140,6 +147,10 @@ describe('C4ClusterDetailsSettingsTab version gating', () => {
140
147
  }),
141
148
  }));
142
149
  });
150
+ it('hides the Tasklist v2 upgrade section for 8.10.0-alpha1 clusters', () => {
151
+ renderTab({ zeebeVersion: 'zeebe:8.10.0-alpha1' });
152
+ expect(lastClusterSettingsProps?.tasklistSettings).toBeUndefined();
153
+ });
143
154
  it('upgrades an eligible v1 cluster to Tasklist v2 from settings', async () => {
144
155
  vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
145
156
  const onReloadCluster = vi.fn(async () => undefined);
@@ -240,6 +251,114 @@ describe('C4ClusterDetailsSettingsTab version gating', () => {
240
251
  });
241
252
  expect(onReloadCluster).toHaveBeenCalled();
242
253
  });
254
+ it('does not show Multi-tenancy toggle below 8.8.0-alpha7', () => {
255
+ const settings = renderTab({ zeebeVersion: 'zeebe:8.8.0-alpha6' });
256
+ expect(settings.multiTenancy).toBeUndefined();
257
+ });
258
+ it('shows Multi-tenancy toggle at 8.8.0-alpha7+', () => {
259
+ const settings = renderTab({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
260
+ expect(settings.multiTenancy).toBeDefined();
261
+ expect(settings.multiTenancy?.action.label).toBe('Multi-tenancy');
262
+ });
263
+ it('flips Multi-tenancy via PATCH and reloads the cluster', async () => {
264
+ vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
265
+ const onReloadCluster = vi.fn(async () => undefined);
266
+ lastClusterSettingsProps = undefined;
267
+ const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
268
+ render(_jsx(C4ConsoleRuntimeProvider, { config: {
269
+ stage: 'dev',
270
+ auth: { getAccessToken: async () => 'token' },
271
+ backendUrls: {},
272
+ featureFlags: { isEnabled: () => true },
273
+ }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
274
+ await userEvent.click(screen.getByRole('button', { name: 'Multi-tenancy' }));
275
+ await waitFor(() => {
276
+ expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
277
+ body: { multiTenancyEnabled: true },
278
+ }));
279
+ });
280
+ expect(onReloadCluster).toHaveBeenCalled();
281
+ });
282
+ it('disables the Multi-tenancy toggle when canEditCluster=false', () => {
283
+ lastClusterSettingsProps = undefined;
284
+ const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
285
+ render(_jsx(C4ConsoleRuntimeProvider, { config: {
286
+ stage: 'dev',
287
+ auth: { getAccessToken: async () => 'token' },
288
+ backendUrls: {},
289
+ featureFlags: { isEnabled: () => true },
290
+ }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: false, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
291
+ expect(screen.getByRole('button', { name: 'Multi-tenancy' })).toBeDisabled();
292
+ });
293
+ it('captures exception when the Multi-tenancy PATCH throws', async () => {
294
+ const apiError = new Error('boom');
295
+ vi.mocked(ConsoleClusterService.updateCluster).mockRejectedValue(apiError);
296
+ const captureException = vi.fn();
297
+ const onReloadCluster = vi.fn(async () => undefined);
298
+ const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
299
+ render(_jsx(C4ConsoleRuntimeProvider, { config: {
300
+ stage: 'dev',
301
+ auth: { getAccessToken: async () => 'token' },
302
+ backendUrls: {},
303
+ featureFlags: { isEnabled: () => true },
304
+ telemetry: {
305
+ track: () => undefined,
306
+ captureException,
307
+ },
308
+ }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
309
+ await userEvent.click(screen.getByRole('button', { name: 'Multi-tenancy' }));
310
+ await waitFor(() => {
311
+ expect(captureException).toHaveBeenCalledWith(apiError, expect.objectContaining({
312
+ eventName: 'multiTenancy:true:confirm',
313
+ }));
314
+ });
315
+ });
316
+ it('hides the Multi-tenancy toggle when the feature flag is off, even at 8.8.0-alpha7', () => {
317
+ lastClusterSettingsProps = undefined;
318
+ const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
319
+ render(_jsx(C4ConsoleRuntimeProvider, { config: {
320
+ stage: 'dev',
321
+ auth: { getAccessToken: async () => 'token' },
322
+ backendUrls: {},
323
+ featureFlags: {
324
+ isEnabled: (key) => key !== 'console.multiTenancy',
325
+ },
326
+ }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
327
+ const captured = lastClusterSettingsProps;
328
+ if (!captured) {
329
+ throw new Error('Expected C4ClusterSettings to be rendered');
330
+ }
331
+ expect(captured.settings.multiTenancy).toBeUndefined();
332
+ });
333
+ });
334
+ describe('C4ClusterDetailsSettingsTab safeTranslate fallback', () => {
335
+ beforeAll(() => {
336
+ globalThis.ResizeObserver = resizeObserverStub;
337
+ });
338
+ afterEach(() => {
339
+ cleanup();
340
+ });
341
+ afterAll(() => {
342
+ globalThis.ResizeObserver = originalResizeObserver;
343
+ });
344
+ it('uses fallback text when i18next returns a namespace-stripped key on a miss', () => {
345
+ // i18next strips the namespace prefix on a cache miss, returning e.g.
346
+ // "settings.multiTenancy.title" instead of "clusterdetails:settings.multiTenancy.title".
347
+ const t = (key) => key.includes(':') ? key.split(':').slice(1).join(':') : key;
348
+ lastClusterSettingsProps = undefined;
349
+ const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
350
+ render(_jsx(C4ConsoleRuntimeProvider, { config: {
351
+ stage: 'dev',
352
+ auth: { getAccessToken: async () => 'token' },
353
+ backendUrls: {},
354
+ featureFlags: { isEnabled: () => true },
355
+ }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: t, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
356
+ const captured = lastClusterSettingsProps;
357
+ if (!captured) {
358
+ throw new Error('Expected C4ClusterSettings to be rendered');
359
+ }
360
+ expect(captured.settings.multiTenancy?.action.label).toBe('Multi-tenancy');
361
+ });
243
362
  });
244
363
  describe('C4ClusterDetailsSettingsTab swagger URL', () => {
245
364
  beforeAll(() => {
@@ -14,7 +14,7 @@ function sendNavigate(onNavigate, event) {
14
14
  onNavigate?.(event);
15
15
  }
16
16
  export const C4ConnectorManagementExecutableDetailsPage = observer(({ orgId, clusterId, connectorId, connectorInstanceId, onNavigate, }) => {
17
- const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider } = useConnectorManagementRuntime({ orgId, clusterId });
17
+ const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider, checkClusterVersion, } = useConnectorManagementRuntime({ orgId, clusterId });
18
18
  const content = useMemo(() => {
19
19
  if (isLoading) {
20
20
  return _jsx("p", { children: "Loading..." });
@@ -25,9 +25,10 @@ export const C4ConnectorManagementExecutableDetailsPage = observer(({ orgId, clu
25
25
  if (!isProviderReady) {
26
26
  return _jsx("p", { children: "Loading..." });
27
27
  }
28
- return (_jsx(Provider, { children: _jsx(C4ExecutableDetails, { connectorId: connectorId, executableId: connectorInstanceId }) }));
28
+ return (_jsx(Provider, { children: _jsx(C4ExecutableDetails, { connectorId: connectorId, executableId: connectorInstanceId, showRestartButton: checkClusterVersion('8.10.0-alpha3') }) }));
29
29
  }, [
30
30
  Provider,
31
+ checkClusterVersion,
31
32
  connectorId,
32
33
  connectorInstanceId,
33
34
  connectorsUrl,
@@ -14,7 +14,7 @@ function sendNavigate(onNavigate, event) {
14
14
  onNavigate?.(event);
15
15
  }
16
16
  export const C4ConnectorManagementExecutablesTablePage = observer(({ orgId, clusterId, connectorId, onNavigate, }) => {
17
- const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider } = useConnectorManagementRuntime({ orgId, clusterId });
17
+ const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider, checkClusterVersion, } = useConnectorManagementRuntime({ orgId, clusterId });
18
18
  const content = useMemo(() => {
19
19
  if (isLoading) {
20
20
  return _jsx("p", { children: "Loading..." });
@@ -25,7 +25,7 @@ export const C4ConnectorManagementExecutablesTablePage = observer(({ orgId, clus
25
25
  if (!isProviderReady) {
26
26
  return _jsx("p", { children: "Loading..." });
27
27
  }
28
- return (_jsx(Provider, { children: _jsx(C4ExecutablesTable, { connectorId: connectorId, onClick: (connectorInstanceId) => {
28
+ return (_jsx(Provider, { children: _jsx(C4ExecutablesTable, { connectorId: connectorId, showRestartButton: checkClusterVersion('8.10.0-alpha3'), onClick: (connectorInstanceId) => {
29
29
  sendNavigate(onNavigate, {
30
30
  kind: 'connectorExecutableDetails',
31
31
  orgId,
@@ -36,6 +36,7 @@ export const C4ConnectorManagementExecutablesTablePage = observer(({ orgId, clus
36
36
  } }) }));
37
37
  }, [
38
38
  Provider,
39
+ checkClusterVersion,
39
40
  clusterId,
40
41
  connectorId,
41
42
  connectorsUrl,
@@ -10,5 +10,6 @@ export declare function useConnectorManagementRuntime(options: {
10
10
  Provider: React.FC<{
11
11
  children: React.ReactNode;
12
12
  }>;
13
+ checkClusterVersion: (minVersion: string) => boolean;
13
14
  };
14
15
  export declare const C4ConnectorManagementErrorBoundaryFallback: () => React.ReactElement;
@@ -6,7 +6,8 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
6
6
  */
7
7
  import { C4ConnectorsContextProvider } from '@camunda/c4-connectors';
8
8
  import { C3EmptyState } from '@camunda/camunda-composite-components';
9
- import { useEffect, useMemo, useState } from 'react';
9
+ import { checkVersion, VersionCheckOperator } from '@camunda/ccma-shared-types';
10
+ import { useCallback, useEffect, useMemo, useState } from 'react';
10
11
  import { C4_ASSET_URLS } from '../../assetUrls.js';
11
12
  import { C4_EXTERNAL_URLS } from '../../externalUrls.const.js';
12
13
  import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
@@ -74,12 +75,30 @@ export function useConnectorManagementRuntime(options) {
74
75
  return ProviderComponent;
75
76
  }, [accessToken, connectorsUrl, orgId, runtime.auth]);
76
77
  const isProviderReady = Boolean(connectorsUrl) && Boolean(accessToken);
78
+ const checkClusterVersion = useCallback((minVersion) => {
79
+ const connectorBridgeVersion = isRecord(cluster) &&
80
+ isRecord(cluster.generation) &&
81
+ isRecord(cluster.generation.versions)
82
+ ? cluster.generation.versions
83
+ .connectorBridge
84
+ : undefined;
85
+ if (typeof connectorBridgeVersion !== 'string') {
86
+ return false;
87
+ }
88
+ return checkVersion({
89
+ possiblyVersionOrDockerPath: connectorBridgeVersion,
90
+ trueForSnapshot: true,
91
+ operator: VersionCheckOperator.GreaterThanOrEqual,
92
+ versionToCompareTo: minVersion,
93
+ });
94
+ }, [cluster]);
77
95
  return {
78
96
  isLoading,
79
97
  clusterName,
80
98
  connectorsUrl,
81
99
  isProviderReady,
82
100
  Provider,
101
+ checkClusterVersion,
83
102
  };
84
103
  }
85
104
  export const C4ConnectorManagementErrorBoundaryFallback = () => {
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4JobWorkerDetailsPageProps } from './c4-job-worker.types';
3
- export declare const C4JobWorkerDetailsPage: (({ orgId, clusterId, jobType: jobTypeProp, onNavigate, docsUrls, }: C4JobWorkerDetailsPageProps) => JSX.Element) & {
3
+ export declare const C4JobWorkerDetailsPage: (({ orgId, clusterId, jobType: jobTypeProp, onNavigate, }: C4JobWorkerDetailsPageProps) => JSX.Element) & {
4
4
  displayName: string;
5
5
  };
@@ -101,7 +101,7 @@ const INITIAL_JOB_DATA = {
101
101
  const INITIAL_WORKER_DATA = { items: [], isLoading: false };
102
102
  const INITIAL_TIME_SERIES = { items: [], isLoading: false };
103
103
  const INITIAL_ERROR_DATA = { items: [], isLoading: false };
104
- export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: jobTypeProp, onNavigate, docsUrls, }) => {
104
+ export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: jobTypeProp, onNavigate, }) => {
105
105
  const runtime = useC4ConsoleRuntime();
106
106
  const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
107
107
  const t = runtime.i18n?.t;
@@ -305,5 +305,5 @@ export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: job
305
305
  ],
306
306
  }), [cluster?.name, clusterId, onNavigate, orgId, t]);
307
307
  const operateBaseUrl = cluster?.status?.operateUrl ?? null;
308
- return (_jsx(C4JobDashboardDetailsPage, { jobType: safeDecodeURIComponent(jobTypeProp), config: config, isLoadingConfig: configLoading || clusterLoading, lastUpdatedAt: lastUpdatedAt, breadcrumb: breadcrumb, jobData: jobData, workerData: workerData, timeSeries: timeSeries, errorData: { ...errorData, operateBaseUrl }, onTimeRangeChange: setRange, translations: translations, docsUrls: docsUrls }));
308
+ return (_jsx(C4JobDashboardDetailsPage, { jobType: safeDecodeURIComponent(jobTypeProp), config: config, isLoadingConfig: configLoading || clusterLoading, lastUpdatedAt: lastUpdatedAt, breadcrumb: breadcrumb, jobData: jobData, workerData: workerData, timeSeries: timeSeries, errorData: { ...errorData, operateBaseUrl }, onTimeRangeChange: setRange, translations: translations }));
309
309
  });
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4JobWorkerOverviewPageProps } from './c4-job-worker.types';
3
- export declare const C4JobWorkerOverviewPage: (({ orgId, clusterId, onNavigate, docsUrls, }: C4JobWorkerOverviewPageProps) => JSX.Element) & {
3
+ export declare const C4JobWorkerOverviewPage: (({ orgId, clusterId, onNavigate, }: C4JobWorkerOverviewPageProps) => JSX.Element) & {
4
4
  displayName: string;
5
5
  };
@@ -61,7 +61,7 @@ function buildOverviewTranslations(tr) {
61
61
  },
62
62
  };
63
63
  }
64
- export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate, docsUrls, }) => {
64
+ export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate, }) => {
65
65
  const runtime = useC4ConsoleRuntime();
66
66
  const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
67
67
  const t = runtime.i18n?.t;
@@ -193,5 +193,5 @@ export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate,
193
193
  },
194
194
  ],
195
195
  }), [cluster?.name, clusterId, onNavigate, orgId, t]);
196
- return (_jsx(C4JobDashboardOverviewPage, { breadcrumb: breadcrumb, lastUpdatedAt: lastUpdatedAt, items: items, onTimeRangeChange: setRange, error: tableError, config: config, isIncomplete: isIncomplete, isLoadingConfig: configLoading || clusterLoading, isLoadingTable: tableLoading, docsUrls: docsUrls, translations: translations }));
196
+ return (_jsx(C4JobDashboardOverviewPage, { breadcrumb: breadcrumb, lastUpdatedAt: lastUpdatedAt, items: items, onTimeRangeChange: setRange, error: tableError, config: config, isIncomplete: isIncomplete, isLoadingConfig: configLoading || clusterLoading, isLoadingTable: tableLoading, translations: translations }));
197
197
  });
@@ -1,4 +1,3 @@
1
- import type { DocsUrls } from '../../components/c4-job-dashboard-shared/c4-job-dashboard-shared.types';
2
1
  export type C4JobWorkerNavigateEvent = {
3
2
  kind: 'clusters';
4
3
  orgId: string;
@@ -20,12 +19,10 @@ export interface C4JobWorkerOverviewPageProps {
20
19
  orgId: string;
21
20
  clusterId: string;
22
21
  onNavigate?: (event: C4JobWorkerNavigateEvent) => void;
23
- docsUrls?: DocsUrls;
24
22
  }
25
23
  export interface C4JobWorkerDetailsPageProps {
26
24
  orgId: string;
27
25
  clusterId: string;
28
26
  jobType: string;
29
27
  onNavigate?: (event: C4JobWorkerNavigateEvent) => void;
30
- docsUrls?: DocsUrls;
31
28
  }
@@ -274,6 +274,12 @@ function mapPermissionsToScopeStrings(permissions, t) {
274
274
  case 'DeleteCluster':
275
275
  clusterScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.delete', 'Delete'));
276
276
  break;
277
+ case 'UpdateCluster':
278
+ clusterScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.update', 'Update'));
279
+ break;
280
+ case 'UpdateClusterEncryption':
281
+ clusterScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.updateEncryption', 'Update encryption'));
282
+ break;
277
283
  case 'CreateZeebeClient':
278
284
  zeebeScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.create', 'Create'));
279
285
  break;
@@ -2308,7 +2314,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
2308
2314
  const isUsageSalesPlan = orgHasSalesPlanType(org, 'trial', 'in-negotiation', 'enterprise', 'internal');
2309
2315
  const billingVisible = canReadBilling && isEnterprise;
2310
2316
  const usageVisible = canReadUsage && isUsageSalesPlan;
2311
- const liteLlmEnabled = runtime.stage === 'dev' || runtime.stage === 'local';
2317
+ const liteLlmEnabled = true;
2312
2318
  const tenantKeyRaw = getNestedValue(org, ['metadata', 'llm', 'tenantKey']);
2313
2319
  const aiUsageVisible = liteLlmEnabled &&
2314
2320
  typeof tenantKeyRaw === 'string' &&
@@ -84,6 +84,9 @@ function mapPermissionsToScopeStrings(permissions, t) {
84
84
  case 'UpdateCluster':
85
85
  clusterScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.update', 'Update'));
86
86
  break;
87
+ case 'UpdateClusterEncryption':
88
+ clusterScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.updateEncryption', 'Update encryption'));
89
+ break;
87
90
  case 'CreateZeebeClient':
88
91
  zeebeScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.create', 'Create'));
89
92
  break;
@@ -251,6 +254,10 @@ export const C4ManagementApiTab = (props) => {
251
254
  label: safeTranslate(t, 'apiclients:create.fields.scopes.cluster.update', 'Update'),
252
255
  value: 'UpdateCluster',
253
256
  },
257
+ {
258
+ label: safeTranslate(t, 'apiclients:create.fields.scopes.cluster.updateEncryption', 'Update encryption'),
259
+ value: 'UpdateClusterEncryption',
260
+ },
254
261
  ],
255
262
  },
256
263
  {