@camunda/ccma-saas-frontend 0.7.2 → 0.8.0

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-breadcrumb/c4-breadcrumb.js +5 -1
  2. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +9 -0
  3. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +6 -3
  4. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +3 -0
  5. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +9 -0
  6. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +2 -0
  7. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +2 -0
  8. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
  9. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +11 -18
  10. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +19 -2
  11. package/lib/esm/components/c4-cluster-overview/applications.d.ts +12 -0
  12. package/lib/esm/components/c4-cluster-overview/applications.js +10 -2
  13. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +6 -1
  14. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +15 -2
  15. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +1 -0
  16. package/lib/esm/components/c4-cluster-overview/cluster-load.js +14 -6
  17. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  18. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
  19. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  20. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +3 -1
  21. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +7 -3
  22. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +9 -1
  23. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +69 -12
  24. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +10 -1
  25. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +16 -2
  26. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.d.ts +14 -0
  27. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.js +12 -0
  28. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.d.ts +15 -0
  29. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +10 -0
  30. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +4 -2
  31. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +24 -3
  32. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  33. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +1 -0
  34. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +2 -0
  35. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +10 -5
  36. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +10 -5
  37. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  38. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +5 -0
  39. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +2 -1
  40. package/lib/esm/externalUrls.const.d.ts +1 -1
  41. package/lib/esm/externalUrls.const.js +1 -1
  42. package/lib/esm/i18n/c4-console-i18n.js +6 -0
  43. package/lib/esm/i18n/en/pages/clusterdetails.json +25 -3
  44. package/lib/esm/index.d.ts +1 -3
  45. package/lib/esm/index.js +1 -3
  46. package/lib/esm/runtime/build-cluster-sso-callback-url.d.ts +34 -0
  47. package/lib/esm/runtime/build-cluster-sso-callback-url.js +49 -0
  48. package/lib/esm/runtime/build-cluster-swagger-url.d.ts +7 -2
  49. package/lib/esm/runtime/build-cluster-swagger-url.js +20 -5
  50. package/lib/esm/runtime/index.d.ts +1 -0
  51. package/lib/esm/runtime/index.js +1 -0
  52. package/lib/esm/ui/families.d.ts +4 -0
  53. package/lib/esm/ui/families.js +22 -2
  54. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +16 -1
  55. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +70 -21
  56. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
  57. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +54 -13
  58. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +10 -0
  59. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +1 -0
  60. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +3 -0
  61. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +11 -0
  62. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -3
  63. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +7 -0
  64. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +26 -5
  65. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +43 -16
  66. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +174 -3
  67. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.d.ts +13 -0
  68. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.js +29 -0
  69. package/lib/esm/widgets/cluster-health-override.d.ts +16 -0
  70. package/lib/esm/widgets/cluster-health-override.js +33 -0
  71. package/lib/esm/widgets/clusters/c4-clusters-page.js +8 -8
  72. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  73. package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.js +6 -1
  74. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.js +2 -1
  75. package/lib/esm/widgets/environment/use-cluster-swagger-url.d.ts +7 -4
  76. package/lib/esm/widgets/environment/use-cluster-swagger-url.js +7 -4
  77. package/package.json +24 -24
  78. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +0 -16
  79. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +0 -40
  80. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +0 -16
  81. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +0 -142
  82. package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +0 -14
  83. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +0 -136
  84. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +0 -13
  85. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +0 -58
  86. package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +0 -16
  87. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +0 -118
  88. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +0 -3
  89. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +0 -408
  90. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +0 -32
  91. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.js +0 -6
  92. package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +0 -14
  93. package/lib/esm/components/c4-advanced-search-filters/state.types.js +0 -6
  94. package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +0 -5
  95. package/lib/esm/components/c4-advanced-search-filters/utils.js +0 -58
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { PasswordInput } from '@carbon/react';
3
3
  import { useEffect, useState } from 'react';
4
- import { Checkbox, Form, Modal, Stack, TextInput } from '../../../ui/index.js';
4
+ import { Checkbox, CodeSnippet, Form, Modal, Stack, TextInput, } from '../../../ui/index.js';
5
5
  import { C4InlineNotification } from '../../c4-inline-notification/c4-inline-notification.js';
6
6
  // ponytail: English placeholder copy — final UX copy + lockout wording are a Product
7
7
  // Design action item (design §1). Kept inline until it lands.
@@ -14,6 +14,10 @@ import { C4InlineNotification } from '../../c4-inline-notification/c4-inline-not
14
14
  // the default registration slot.
15
15
  const NAME_PATTERN = /^[a-z][a-z0-9]*$/;
16
16
  const RESERVED_NAME = 'oidc';
17
+ // OIDC_PROVIDER_NAME_SCHEMA in console-backend's ClusterRouter.ts rejects a
18
+ // longer id. Both paths that write the field read this constant, so a typed id
19
+ // and a derived id keep the same limit.
20
+ const MAX_NAME_LENGTH = 63;
17
21
  function isValidUrl(value) {
18
22
  try {
19
23
  return Boolean(new URL(value));
@@ -22,7 +26,37 @@ function isValidUrl(value) {
22
26
  return false;
23
27
  }
24
28
  }
25
- export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, error, onClose, onSubmit, }) => {
29
+ /**
30
+ * A JWKS endpoint carries the keys that verify every token from the provider,
31
+ * so the cluster must not read it over plaintext: a reader on the path could
32
+ * substitute its own keys. `new URL()` alone accepts any scheme, `ftp:` and
33
+ * `javascript:` included, so the protocol is checked here.
34
+ */
35
+ function isHttpsUrl(value) {
36
+ try {
37
+ return new URL(value).protocol === 'https:';
38
+ }
39
+ catch {
40
+ return false;
41
+ }
42
+ }
43
+ // The modal collects the two list fields (scopes, additional JWKS URLs) as one
44
+ // space-separated line each, and stores them as arrays.
45
+ function splitOnWhitespace(value) {
46
+ return value
47
+ .split(/\s+/)
48
+ .map((entry) => entry.trim())
49
+ .filter(Boolean);
50
+ }
51
+ // #9863: derive a default id from the display name, so the admin does not
52
+ // have to invent one that matches NAME_PATTERN by hand. The function removes
53
+ // characters outside that pattern, then leading digits, because the pattern
54
+ // requires a letter first.
55
+ function slugifyName(value) {
56
+ const alphanumeric = value.toLowerCase().replace(/[^a-z0-9]/g, '');
57
+ return alphanumeric.replace(/^[0-9]+/, '').slice(0, MAX_NAME_LENGTH);
58
+ }
59
+ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, error, callbackUrl, onClose, onSubmit, }) => {
26
60
  const isEdit = Boolean(initialConfig);
27
61
  const [name, setName] = useState('');
28
62
  const [clientName, setClientName] = useState('');
@@ -31,10 +65,17 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
31
65
  const [clientSecret, setClientSecret] = useState('');
32
66
  const [scopes, setScopes] = useState('openid profile');
33
67
  const [usernameClaim, setUsernameClaim] = useState('sub');
34
- const [groupsClaim, setGroupsClaim] = useState('');
35
68
  const [clientIdClaim, setClientIdClaim] = useState('');
69
+ // Both are space-separated in the field and arrays in the config, the same
70
+ // idiom as scopes. Space is a safe delimiter here: the CRD forbids whitespace
71
+ // inside an audience and inside a JWKS URL.
72
+ const [audiences, setAudiences] = useState('');
73
+ const [additionalJwkSetUris, setAdditionalJwkSetUris] = useState('');
36
74
  const [lockoutAck, setLockoutAck] = useState(false);
37
75
  const [showErrors, setShowErrors] = useState(false);
76
+ // #9863: true once the admin edits the id field directly, so a later edit
77
+ // to the display name stops overwriting it.
78
+ const [nameEdited, setNameEdited] = useState(false);
38
79
  // Reset the form each time the modal opens so stale values never leak between edits.
39
80
  useEffect(() => {
40
81
  if (!open)
@@ -46,10 +87,12 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
46
87
  setClientSecret('');
47
88
  setScopes((initialConfig?.scopes ?? ['openid', 'profile']).join(' '));
48
89
  setUsernameClaim(initialConfig?.usernameClaim ?? 'sub');
49
- setGroupsClaim(initialConfig?.groupsClaim ?? '');
50
90
  setClientIdClaim(initialConfig?.clientIdClaim ?? '');
91
+ setAudiences((initialConfig?.audiences ?? []).join(' '));
92
+ setAdditionalJwkSetUris((initialConfig?.additionalJwkSetUris ?? []).join(' '));
51
93
  setLockoutAck(false);
52
94
  setShowErrors(false);
95
+ setNameEdited(false);
53
96
  }, [open, initialConfig]);
54
97
  const nameInvalid = !NAME_PATTERN.test(name) || name === RESERVED_NAME;
55
98
  const clientNameInvalid = clientName.trim().length === 0;
@@ -57,6 +100,11 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
57
100
  const clientIdInvalid = clientId.trim().length === 0;
58
101
  // Secret required on first configuration; on edit, blank means "keep current".
59
102
  const secretInvalid = !isEdit && clientSecret.length === 0;
103
+ // The backend takes this list as an array of https URLs, so one bad entry
104
+ // fails the whole save. Catch it here, while the admin can still see which field.
105
+ const parsedJwkSetUris = splitOnWhitespace(additionalJwkSetUris);
106
+ const jwkSetUrisInvalid = parsedJwkSetUris.some((uri) => !isHttpsUrl(uri));
107
+ const parsedAudiences = splitOnWhitespace(audiences);
60
108
  const handleSubmit = () => {
61
109
  setShowErrors(true);
62
110
  if (nameInvalid ||
@@ -64,13 +112,11 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
64
112
  issuerInvalid ||
65
113
  clientIdInvalid ||
66
114
  secretInvalid ||
115
+ jwkSetUrisInvalid ||
67
116
  !lockoutAck) {
68
117
  return;
69
118
  }
70
- const parsedScopes = scopes
71
- .split(/\s+/)
72
- .map((s) => s.trim())
73
- .filter(Boolean);
119
+ const parsedScopes = splitOnWhitespace(scopes);
74
120
  onSubmit({
75
121
  config: {
76
122
  name,
@@ -79,17 +125,28 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
79
125
  clientId: clientId.trim(),
80
126
  scopes: parsedScopes.length > 0 ? parsedScopes : undefined,
81
127
  usernameClaim: usernameClaim.trim() || undefined,
82
- groupsClaim: groupsClaim.trim() || undefined,
83
128
  clientIdClaim: clientIdClaim.trim() || undefined,
129
+ audiences: parsedAudiences.length > 0 ? parsedAudiences : undefined,
130
+ additionalJwkSetUris: parsedJwkSetUris.length > 0 ? parsedJwkSetUris : undefined,
84
131
  },
85
132
  clientSecret: clientSecret.length > 0 ? clientSecret : undefined,
86
133
  });
87
134
  };
88
135
  return (_jsx(Modal, { open: open, modalHeading: isEdit
89
136
  ? 'Edit external identity provider'
90
- : 'Configure external identity provider', primaryButtonText: 'Save', secondaryButtonText: 'Cancel', primaryButtonDisabled: saving, onRequestClose: onClose, onRequestSubmit: handleSubmit, id: 'c4-external-identity-provider-modal', size: 'sm', children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error, hideCloseButton: true, lowContrast: true })), _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-idp-name', labelText: 'Name (identifier)', helperText: 'Lowercase letters and digits, starting with a letter (e.g. acmesso).', value: name, disabled: saving || isEdit, invalid: showErrors && nameInvalid, invalidText: name === RESERVED_NAME
137
+ : 'Configure external identity provider', primaryButtonText: 'Save', secondaryButtonText: 'Cancel', primaryButtonDisabled: saving, onRequestClose: onClose, onRequestSubmit: handleSubmit, id: 'c4-external-identity-provider-modal', size: 'sm', children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error, hideCloseButton: true, lowContrast: true })), _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 5, children: [callbackUrl && (_jsxs("div", { children: [_jsx("p", { className: 'cds--label', children: "Redirect URI" }), _jsx("p", { className: 'cds--form__helper-text', children: "Add this to your provider's allowed redirect URIs before you save." }), _jsx(CodeSnippet, { type: 'single', "aria-label": 'Redirect URI', feedback: 'Copied', children: callbackUrl })] })), _jsx(TextInput, { id: 'c4-idp-name', labelText: 'Name (identifier)', helperText: 'Lowercase letters and digits, starting with a letter (e.g. acmesso).', value: name, maxLength: MAX_NAME_LENGTH, disabled: saving || isEdit, invalid: showErrors && nameInvalid, invalidText: name === RESERVED_NAME
91
138
  ? "'oidc' is reserved for the default identity provider"
92
- : 'Must match ^[a-z][a-z0-9]*$', onChange: (e) => setName(e.target.value.toLowerCase()) }), _jsx(TextInput, { id: 'c4-idp-client-name', labelText: 'Display name', helperText: 'Shown on the login screen.', value: clientName, disabled: saving, invalid: showErrors && clientNameInvalid, invalidText: 'Display name is required', onChange: (e) => setClientName(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-issuer', labelText: 'Issuer URL', value: issuerUri, disabled: saving, invalid: showErrors && issuerInvalid, invalidText: 'Enter a valid URL', onChange: (e) => setIssuerUri(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id', labelText: 'Client ID', value: clientId, disabled: saving, invalid: showErrors && clientIdInvalid, invalidText: 'Client ID is required', onChange: (e) => setClientId(e.target.value) }), _jsx(PasswordInput, { id: 'c4-idp-client-secret', labelText: 'Client secret', helperText: isEdit
139
+ : 'Must match ^[a-z][a-z0-9]*$', onChange: (e) => {
140
+ setNameEdited(true);
141
+ setName(e.target.value.toLowerCase());
142
+ } }), _jsx(TextInput, { id: 'c4-idp-client-name', labelText: 'Display name', helperText: 'Shown on the login screen.', value: clientName, disabled: saving, invalid: showErrors && clientNameInvalid, invalidText: 'Display name is required', onChange: (e) => {
143
+ setClientName(e.target.value);
144
+ // #9863: keep deriving the id from the display name until the
145
+ // admin edits the id field directly, or the config already exists.
146
+ if (!isEdit && !nameEdited) {
147
+ setName(slugifyName(e.target.value));
148
+ }
149
+ } }), _jsx(TextInput, { id: 'c4-idp-issuer', labelText: 'Issuer URL', value: issuerUri, disabled: saving, invalid: showErrors && issuerInvalid, invalidText: 'Enter a valid URL', onChange: (e) => setIssuerUri(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id', labelText: 'Client ID', value: clientId, disabled: saving, invalid: showErrors && clientIdInvalid, invalidText: 'Client ID is required', onChange: (e) => setClientId(e.target.value) }), _jsx(PasswordInput, { id: 'c4-idp-client-secret', labelText: 'Client secret', helperText: isEdit
93
150
  ? 'Leave blank to keep the current secret. Changes can take up to a minute to sync to the cluster.'
94
- : 'Stored securely; never displayed after saving. Can take up to a minute to sync to the cluster.', value: clientSecret, disabled: saving, invalid: showErrors && secretInvalid, invalidText: 'Client secret is required', onChange: (e) => setClientSecret(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-scopes', labelText: 'Scopes', helperText: 'Space-separated. Defaults to "openid profile".', value: scopes, disabled: saving, onChange: (e) => setScopes(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-username-claim', labelText: 'Username claim', helperText: 'Defaults to "sub".', value: usernameClaim, disabled: saving, onChange: (e) => setUsernameClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-groups-claim', labelText: 'Groups claim (optional)', value: groupsClaim, disabled: saving, onChange: (e) => setGroupsClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id-claim', labelText: 'Client ID claim (optional)', value: clientIdClaim, disabled: saving, onChange: (e) => setClientIdClaim(e.target.value) }), _jsx(Checkbox, { id: 'c4-idp-lockout-ack', labelText: 'I understand that a misconfigured identity provider can lock users out of this cluster.', checked: lockoutAck, disabled: saving, invalid: showErrors && !lockoutAck, invalidText: 'Please confirm you understand the lockout risk', onChange: (_e, { checked }) => setLockoutAck(checked) })] }) })] }) }));
151
+ : 'Stored securely; never displayed after saving. Can take up to a minute to sync to the cluster.', value: clientSecret, disabled: saving, invalid: showErrors && secretInvalid, invalidText: 'Client secret is required', onChange: (e) => setClientSecret(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-scopes', labelText: 'Scopes', helperText: 'Space-separated. Defaults to "openid profile".', value: scopes, disabled: saving, onChange: (e) => setScopes(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-username-claim', labelText: 'Username claim', helperText: 'Defaults to "sub".', value: usernameClaim, disabled: saving, onChange: (e) => setUsernameClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id-claim', labelText: 'Client ID claim (optional)', value: clientIdClaim, disabled: saving, onChange: (e) => setClientIdClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-audiences', labelText: 'Audiences (optional)', helperText: 'Space-separated. Copy the audience (aud) value from a token your provider issues.', value: audiences, disabled: saving, onChange: (e) => setAudiences(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-additional-jwks-uris', labelText: 'Additional JWKS URLs (optional)', helperText: 'Space-separated. Add these only if your provider publishes more than one JWKS endpoint.', value: additionalJwkSetUris, disabled: saving, invalid: showErrors && jwkSetUrisInvalid, invalidText: 'Enter https URLs, separated by spaces', onChange: (e) => setAdditionalJwkSetUris(e.target.value) }), _jsx(Checkbox, { id: 'c4-idp-lockout-ack', labelText: 'I understand that a misconfigured identity provider can lock users out of this cluster.', checked: lockoutAck, disabled: saving, invalid: showErrors && !lockoutAck, invalidText: 'Please confirm you understand the lockout risk', onChange: (_e, { checked }) => setLockoutAck(checked) })] }) })] }) }));
95
152
  };
@@ -8,6 +8,15 @@ export interface ExternalIdentityProviderProps {
8
8
  label: string;
9
9
  onClick: () => void;
10
10
  };
11
+ /**
12
+ * Removes the whole setup: config, CR entry, and secret (#9864). Distinct from
13
+ * the toggle, which keeps the config so re-enabling needs no re-entry. Absent
14
+ * while nothing is configured, and while the caller has no edit permission.
15
+ */
16
+ deleteAction?: {
17
+ label: string;
18
+ onClick: () => void;
19
+ };
11
20
  onToggle: () => void;
12
21
  permissions: {
13
22
  mayToggle: boolean;
@@ -28,4 +37,4 @@ export interface ExternalIdentityProviderProps {
28
37
  subtitle: string;
29
38
  };
30
39
  }
31
- export declare const ExternalIdentityProvider: ({ enabled, action, onToggle, permissions, description, statusText, supported, unsupportedNotification, }: ExternalIdentityProviderProps) => JSX.Element;
40
+ export declare const ExternalIdentityProvider: ({ enabled, action, deleteAction, onToggle, permissions, description, statusText, supported, unsupportedNotification, }: ExternalIdentityProviderProps) => JSX.Element;
@@ -1,7 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
3
- export const ExternalIdentityProvider = ({ enabled, action, onToggle, permissions, description, statusText, supported = true, unsupportedNotification, }) => {
4
- return (_jsx(C4Toggle, { id: 'external-identity-provider-toggle', enabled: enabled, supported: supported, title: 'External identity provider', notices: [
3
+ export const ExternalIdentityProvider = ({ enabled, action, deleteAction, onToggle, permissions, description, statusText, supported = true, unsupportedNotification, }) => {
4
+ return (_jsx(C4Toggle, { id: 'external-identity-provider-toggle', enabled: enabled, supported: supported, title: 'External identity provider',
5
+ // A C4Toggle notice carries at most one action, so the delete gets a
6
+ // notice of its own rather than sharing the status line with Edit.
7
+ notices: [
5
8
  { notice: description },
6
9
  {
7
10
  notice: statusText,
@@ -9,6 +12,17 @@ export const ExternalIdentityProvider = ({ enabled, action, onToggle, permission
9
12
  ? { label: action.label, onClick: action.onClick }
10
13
  : undefined,
11
14
  },
15
+ ...(deleteAction && permissions.mayEdit
16
+ ? [
17
+ {
18
+ notice: 'Removing the configuration also deletes its client secret.',
19
+ action: {
20
+ label: deleteAction.label,
21
+ onClick: deleteAction.onClick,
22
+ },
23
+ },
24
+ ]
25
+ : []),
12
26
  ], onClick: onToggle, permissions: {
13
27
  mayToggle: permissions.mayToggle,
14
28
  }, unsupportedNotification: unsupportedNotification
@@ -0,0 +1,14 @@
1
+ import type { JSX, ReactNode } from 'react';
2
+ export interface OptionalTelemetryToggleProps {
3
+ enabled: boolean;
4
+ action: {
5
+ label: string;
6
+ onClick: () => void;
7
+ disabled?: boolean;
8
+ };
9
+ description: ReactNode;
10
+ permissions: {
11
+ mayChange: boolean;
12
+ };
13
+ }
14
+ export declare const OptionalTelemetryToggle: (props: OptionalTelemetryToggleProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
3
+ export const OptionalTelemetryToggle = (props) => {
4
+ const component = (_jsx(C4Toggle, { id: 'optional-telemetry-toggle', supported: true, enabled: props.enabled, title: props.action.label, notices: [
5
+ {
6
+ notice: props.description,
7
+ },
8
+ ], onClick: props.action.onClick, permissions: {
9
+ mayToggle: props.permissions.mayChange && !props.action.disabled,
10
+ } }));
11
+ return component;
12
+ };
@@ -0,0 +1,15 @@
1
+ import type { SecretsFilterMode } from '@camunda/ccma-shared-types';
2
+ import type { JSX, ReactNode } from 'react';
3
+ export interface SecretsFilterModeToggleProps {
4
+ mode: SecretsFilterMode;
5
+ action: {
6
+ label: string;
7
+ onChange: (mode: SecretsFilterMode) => void;
8
+ disabled?: boolean;
9
+ };
10
+ description: ReactNode;
11
+ permissions: {
12
+ mayChange: boolean;
13
+ };
14
+ }
15
+ export declare const SecretsFilterModeToggle: (props: SecretsFilterModeToggleProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Stack } from '../../../ui/index.js';
3
+ import { useSelectFamily } from '../../../ui/families.js';
4
+ export const SecretsFilterModeToggle = (props) => {
5
+ const { Select, SelectItem } = useSelectFamily();
6
+ const component = (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h6", { children: props.action.label }), _jsx("div", { style: { maxWidth: '400px' }, children: _jsxs(Select, { id: 'secrets-filter-mode-select', labelText: props.action.label, hideLabel: true, value: props.mode, disabled: !props.permissions.mayChange || props.action.disabled, onChange: (event) => {
7
+ props.action.onChange(event.target.value);
8
+ }, children: [_jsx(SelectItem, { value: 'DISABLED', text: 'Disabled' }), _jsx(SelectItem, { value: 'LAX', text: 'Lax' }), _jsx(SelectItem, { value: 'STRICT', text: 'Strict' })] }) })] }), props.description && (_jsx("div", { style: { maxWidth: '650px' }, children: typeof props.description === 'string' ? (_jsx("p", { children: props.description })) : (props.description) }))] }));
9
+ return component;
10
+ };
@@ -1,9 +1,11 @@
1
- import { type JSX } from 'react';
1
+ import { type JSX, type ReactNode } from 'react';
2
2
  interface C4CreateClusterTileGridProps<T> {
3
3
  items: T[];
4
4
  getKey: (item: T) => string;
5
5
  getLabel: (item: T) => string;
6
6
  getDescription?: (item: T) => string | undefined;
7
+ /** Optional trailing badge/tag rendered next to the label. */
8
+ getBadge?: (item: T) => ReactNode;
7
9
  getDisabled?: (item: T) => boolean;
8
10
  /** Currently selected item key (radio value). */
9
11
  value: string | undefined;
@@ -28,5 +30,5 @@ interface C4CreateClusterTileGridProps<T> {
28
30
  * `getLabel`) and a "Load more" button, so small sections stay uncluttered while
29
31
  * large ones (e.g. many generations/regions) don't blow up the page height.
30
32
  */
31
- export declare function C4CreateClusterTileGrid<T>({ items, getKey, getLabel, getDescription, getDisabled, value, onChange, ariaLabel, initialCount, loadMoreIncrement, columnWidth, searchPlaceholder, emptyStateText, }: C4CreateClusterTileGridProps<T>): JSX.Element;
33
+ export declare function C4CreateClusterTileGrid<T>({ items, getKey, getLabel, getDescription, getBadge, getDisabled, value, onChange, ariaLabel, initialCount, loadMoreIncrement, columnWidth, searchPlaceholder, emptyStateText, }: C4CreateClusterTileGridProps<T>): JSX.Element;
32
34
  export {};
@@ -34,7 +34,7 @@ function normalizeForSearch(value) {
34
34
  * `getLabel`) and a "Load more" button, so small sections stay uncluttered while
35
35
  * large ones (e.g. many generations/regions) don't blow up the page height.
36
36
  */
37
- export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescription, getDisabled, value, onChange, ariaLabel, initialCount = 8, loadMoreIncrement, columnWidth = '280px', searchPlaceholder = 'Search', emptyStateText = 'No matches found', }) {
37
+ export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescription, getBadge, getDisabled, value, onChange, ariaLabel, initialCount = 8, loadMoreIncrement, columnWidth = '280px', searchPlaceholder = 'Search', emptyStateText = 'No matches found', }) {
38
38
  const designSystem = useC4DesignSystem();
39
39
  const [searchValue, setSearchValue] = useState('');
40
40
  const [visibleCount, setVisibleCount] = useState(initialCount);
@@ -65,7 +65,7 @@ export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescriptio
65
65
  gridTemplateColumns: gridColumns,
66
66
  gap: '1rem',
67
67
  overflowWrap: 'anywhere',
68
- }, children: visibleItems.map((item) => (_jsx(ChoiceCard, { value: getKey(item), title: getLabel(item), description: getDescription?.(item), disabled: getDisabled?.(item) }, getKey(item)))) }));
68
+ }, children: visibleItems.map((item) => (_jsx(ChoiceCard, { value: getKey(item), title: getLabel(item), description: getDescription?.(item), badge: getBadge?.(item), disabled: getDisabled?.(item) }, getKey(item)))) }));
69
69
  }
70
70
  return (_jsx("div", { style: {
71
71
  display: 'grid',
@@ -74,7 +74,28 @@ export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescriptio
74
74
  overflowWrap: 'anywhere',
75
75
  }, children: visibleItems.map((item) => {
76
76
  const description = getDescription?.(item);
77
- return (_jsx("div", { style: { height: '100%', display: 'grid' }, children: _jsx(C4SelectableTile, { value: getKey(item), checked: getKey(item) === value, onChange: () => onChange(getKey(item)), disabled: getDisabled?.(item), style: { height: '100%' }, children: description ? (_jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: getLabel(item) }), _jsx("p", { style: { color: 'var(--cds-text-helper)' }, children: description })] })) : (getLabel(item)) }) }, getKey(item)));
77
+ const badge = getBadge?.(item);
78
+ // A description bolds the label to set it off from the helper text
79
+ // below it. Bold only the label text here, before it reaches the
80
+ // badge — a badge is a Tag component, not a bold-appropriate text
81
+ // label, and wrapping it in <strong> too would misrepresent it to
82
+ // assistive technology as emphasized text.
83
+ const labelText = description ? (_jsx("strong", { children: getLabel(item) })) : (getLabel(item));
84
+ // Only wrap the label in the flex column when a badge is present, so
85
+ // a caller that never passes getBadge renders the exact same tree as
86
+ // before this prop existed (Carbon mode must stay byte-identical).
87
+ // The badge sits below the label text (not inline) so the text
88
+ // starts at the same position as a tile with no badge.
89
+ // `align-items: flex-start` is necessary: a column flex container
90
+ // stretches its items by default, which makes the Tag as wide as
91
+ // the tile.
92
+ const labelNode = badge ? (_jsxs("span", { style: {
93
+ display: 'flex',
94
+ flexDirection: 'column',
95
+ alignItems: 'flex-start',
96
+ gap: '8px',
97
+ }, children: [_jsx("span", { children: labelText }), badge] })) : (labelText);
98
+ return (_jsx("div", { style: { height: '100%', display: 'grid' }, children: _jsx(C4SelectableTile, { value: getKey(item), checked: getKey(item) === value, onChange: () => onChange(getKey(item)), disabled: getDisabled?.(item), style: { height: '100%' }, children: description ? (_jsxs(Stack, { gap: 2, children: [labelNode, _jsx("p", { style: { color: 'var(--cds-text-helper)' }, children: description })] })) : (labelNode) }) }, getKey(item)));
78
99
  }) }));
79
100
  };
80
101
  return (_jsxs("div", { style: designSystem === 'ds' ? { marginBottom: '0.75rem' } : undefined, children: [showSearchAndLoadMore && (_jsx("div", { style: { maxWidth: '20rem', marginBottom: '1rem' }, children: _jsx(Search, { labelText: searchPlaceholder, placeholder: searchPlaceholder, size: 'md', value: searchValue, onChange: (event) => {
@@ -493,7 +493,7 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
493
493
  const selectedRegion = formElements.region.options.find((reg) => reg.uuid === region);
494
494
  return (_jsxs(Stack, { gap: 2, children: [_jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx(FormElementTitle, { title: formElements.region.backupRegionTitle }) }) }), _jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx(C4CreateClusterTileGrid, { items: selectedRegion?.backups ?? [], getKey: (option) => option.uuid, getLabel: (option) => `${option.regions.length > 1
495
495
  ? 'Dual region: '
496
- : 'Single region: '}${option.regions.map((reg) => reg.label).join(', ')}`, getDisabled: () => isSubmitting() || noAvailableSlots, value: backupRegion, onChange: updateBackupRegion, ariaLabel: formElements.region.backupRegionTitle, columnWidth: '260px', searchPlaceholder: 'Search backup regions' }, region) }) }), _jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx("p", { children: formElements.region.backupDescription }) }) })] }));
496
+ : 'Single region: '}${option.regions.map((reg) => reg.label).join(', ')}`, getBadge: (option) => option.failover ? (_jsx(Tag, { type: 'green', size: 'sm', children: "Failover supported" })) : undefined, getDisabled: () => isSubmitting() || noAvailableSlots, value: backupRegion, onChange: updateBackupRegion, ariaLabel: formElements.region.backupRegionTitle, columnWidth: '260px', searchPlaceholder: 'Search backup regions' }, region) }) }), _jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx("p", { children: formElements.region.backupDescription }) }) })] }));
497
497
  }
498
498
  else {
499
499
  return _jsx(_Fragment, {});
@@ -94,6 +94,7 @@ export const generateRegions = (additionalCount = 0) => {
94
94
  label: 'OtherCity, OtherCountrey (other-location)',
95
95
  },
96
96
  ],
97
+ failover: true,
97
98
  },
98
99
  ],
99
100
  },
@@ -46,6 +46,8 @@ export interface C4CreateClusterEncryption {
46
46
  export interface C4CreateClusterBackup {
47
47
  uuid: string;
48
48
  regions: C4CreateClusterBackupRegion[];
49
+ /** True when this pairing's operator support is complete enough to fail over. */
50
+ failover?: boolean;
49
51
  }
50
52
  export interface C4CreateClusterBackupRegion {
51
53
  id: string;
@@ -4,13 +4,17 @@
4
4
  * You may not use this file except in compliance with the commercial license.
5
5
  */
6
6
  import { getDropdownTranslations, getErrorHandlerTranslations, } from '../c4-job-dashboard-shared/c4-stories-data-generator.js';
7
- // All dates below are computed relative to real "now" (rather than a fixed
8
- // past date, which reads as obviously stale in a docs screenshot) - matches
9
- // this migration's dynamic-date convention (see stories/shared/billing-dates.ts).
7
+ // A mock must not read the wall clock: a story that pictures this data is
8
+ // captured as a docs screenshot, and a value that moves between two runs
9
+ // turns an unrelated pull request red. The instant matches the pin in
10
+ // packages/screenshot-tooling-storybook/.storybook/preview-head.html, and
11
+ // `isoAt` drops the milliseconds that its aria test rejects.
10
12
  const MINUTE = 60 * 1000;
11
13
  const HOUR = 60 * MINUTE;
12
- const now = Date.now();
13
- const isoAt = (offsetMs) => new Date(now - offsetMs).toISOString();
14
+ const now = new Date('2026-01-15T09:00:00Z').getTime();
15
+ const isoAt = (offsetMs) => `${new Date(now - offsetMs).toISOString().slice(0, 19)}Z`;
16
+ // Without `timeZone`, this reads the zone of the capturing machine, so a Mac
17
+ // and the Linux runner render the same instant as two different times.
14
18
  const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
15
19
  month: 'long',
16
20
  day: 'numeric',
@@ -18,6 +22,7 @@ const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
18
22
  hour: 'numeric',
19
23
  minute: '2-digit',
20
24
  hour12: true,
25
+ timeZone: 'UTC',
21
26
  });
22
27
  export const defaultDetailsProps = {
23
28
  jobType: 'fetch-customer-data',
@@ -4,12 +4,16 @@
4
4
  * You may not use this file except in compliance with the commercial license.
5
5
  */
6
6
  import { getDropdownTranslations, getErrorHandlerTranslations, } from '../c4-job-dashboard-shared/c4-stories-data-generator.js';
7
- // All dates below are computed relative to real "now" (rather than a fixed
8
- // past date, which reads as obviously stale in a docs screenshot) - matches
9
- // this migration's dynamic-date convention (see stories/shared/billing-dates.ts).
7
+ // A mock must not read the wall clock: a story that pictures this data is
8
+ // captured as a docs screenshot, and a value that moves between two runs
9
+ // turns an unrelated pull request red. The instant matches the pin in
10
+ // packages/screenshot-tooling-storybook/.storybook/preview-head.html, and
11
+ // `isoAt` drops the milliseconds that its aria test rejects.
10
12
  const MINUTE = 60 * 1000;
11
- const now = Date.now();
12
- const isoAt = (offsetMs) => new Date(now - offsetMs).toISOString();
13
+ const now = new Date('2026-01-15T09:00:00Z').getTime();
14
+ const isoAt = (offsetMs) => `${new Date(now - offsetMs).toISOString().slice(0, 19)}Z`;
15
+ // Without `timeZone`, this reads the zone of the capturing machine, so a Mac
16
+ // and the Linux runner render the same instant as two different times.
13
17
  const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
14
18
  month: 'long',
15
19
  day: 'numeric',
@@ -17,6 +21,7 @@ const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
17
21
  hour: 'numeric',
18
22
  minute: '2-digit',
19
23
  hour12: true,
24
+ timeZone: 'UTC',
20
25
  });
21
26
  // [jobType, created, completed, failed, workers, minutesAgo]
22
27
  const JOB_ROWS = [
@@ -31,7 +31,7 @@ export const C4TileWithTitleAndAction = ({ title, tooltip, description, descript
31
31
  flexWrap: 'wrap',
32
32
  height: '48px',
33
33
  fontSize: '12px',
34
- }, children: [_jsx("h6", { style: { fontSize }, children: title }), tooltip && (_jsx(Tooltip, { label: tooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Information, {}) }) }))] }), description && (_jsxs("p", { style: { color: 'var(--cds-text-helper)' }, children: [description, descriptionTooltip && (_jsx(C4InfoTooltip, { label: descriptionTooltip }))] }))] }), action && !isLoading && (_jsx(C4LinkButton, { label: action.label, onClick: () => action.onClick(), style: {
34
+ }, children: [_jsx("h6", { style: { fontSize }, children: title }), tooltip && (_jsx(Tooltip, { label: tooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Information, {}) }) }))] }), description && (_jsxs("p", { style: { color: 'var(--cds-text-helper)' }, children: [description, descriptionTooltip && (_jsx(C4InfoTooltip, { label: descriptionTooltip }))] }))] }), action && !isLoading && (_jsx(C4LinkButton, { label: action.label, ariaLabel: action.ariaLabel, onClick: () => action.onClick(), style: {
35
35
  justifySelf: 'end',
36
36
  alignSelf: 'start',
37
37
  }, icon: action.icon }))] }), isLoading && _jsx(SkeletonPlaceholder, { style: { width: '100%' } }), !isLoading && _jsx("div", { children: children })] }) }));
@@ -6,6 +6,11 @@ export interface C4TileWithTitleAndActionProps {
6
6
  descriptionTooltip?: string;
7
7
  action?: {
8
8
  label: string;
9
+ /**
10
+ * Accessible name for an icon-only action (empty `label`). A screen
11
+ * reader has nothing else to announce when `label` is `''`.
12
+ */
13
+ ariaLabel?: string;
9
14
  icon?: any;
10
15
  kind?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost';
11
16
  onClick: () => void;
@@ -5,13 +5,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C3ClusterTag, } from '@camunda/camunda-composite-components';
8
- import { DatePicker, DatePickerInput } from '@carbon/react';
9
8
  import { Download } from '@carbon/react/icons/index.esm.js';
10
9
  import { useMemo } from 'react';
11
10
  import { Button, MultiSelect, Stack } from '../../ui/index.js';
11
+ import { useDatePickerFamily } from '../../ui/families.js';
12
12
  import { C4DataTable } from '../c4-data-table/c4-data-table.js';
13
13
  import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
14
14
  export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, download, }) => {
15
+ const { DatePicker, DatePickerInput } = useDatePickerFamily();
15
16
  const compTimestampSelection = (_jsxs(DatePicker, { datePickerType: 'range', dateFormat: 'Y-m-d', value: [range.start, range.end], onChange: (newValues) => {
16
17
  range.onChange({
17
18
  start: new Date(newValues[0]).getTime(),
@@ -8,7 +8,7 @@ export declare const C4_EXTERNAL_URLS: {
8
8
  readonly docs: {
9
9
  readonly consoleApiClients: "https://docs.camunda.io/docs/next/apis-tools/administration-api/administration-api-reference/";
10
10
  readonly consoleAlerts: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-alerts/";
11
- readonly consoleClusterClients: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-api-clients/";
11
+ readonly consoleClusterClients: "https://docs.camunda.io/docs/next/components/hub/organization/manage-clusters/manage-api-clients";
12
12
  readonly consoleManageConnectors: "https://docs.camunda.io/docs/components/console/manage-clusters/cluster-connectors/";
13
13
  readonly connectorSecrets: "https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets";
14
14
  readonly consoleIpWhitelist: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/";
@@ -7,7 +7,7 @@ export const C4_EXTERNAL_URLS = {
7
7
  docs: {
8
8
  consoleApiClients: 'https://docs.camunda.io/docs/next/apis-tools/administration-api/administration-api-reference/',
9
9
  consoleAlerts: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-alerts/',
10
- consoleClusterClients: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-api-clients/',
10
+ consoleClusterClients: 'https://docs.camunda.io/docs/next/components/hub/organization/manage-clusters/manage-api-clients',
11
11
  consoleManageConnectors: 'https://docs.camunda.io/docs/components/console/manage-clusters/cluster-connectors/',
12
12
  connectorSecrets: 'https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets',
13
13
  consoleIpWhitelist: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/',
@@ -99,6 +99,12 @@ const resources = {
99
99
  actionLabel: 'Learn more about managing authorizations',
100
100
  },
101
101
  },
102
+ indicator: {
103
+ secondaryReplicationNotReady: {
104
+ title: 'Secondary key not accessible',
105
+ subtitle: "Your secondary region's encryption key isn't accessible, so replication to that region isn't working. Go to the Encryption tab to review the key policy.",
106
+ },
107
+ },
102
108
  },
103
109
  orgManagement: {
104
110
  title: 'Organization management',
@@ -70,6 +70,10 @@
70
70
  "title": "Use our secure, scalable API",
71
71
  "text": "Click <strong>Create your first client</strong> to deploy processes, start instances, and interact with them programmatically."
72
72
  },
73
+ "forbidden": {
74
+ "title": "You don't have access to client credentials",
75
+ "description": "You don't have permission to view client credentials for this cluster. Contact an organization owner or admin for access."
76
+ },
73
77
  "details": {
74
78
  "general": "General",
75
79
  "clientId": "Client Id",
@@ -79,7 +83,9 @@
79
83
  "createdBy": "Created by",
80
84
  "lastUsed": "Last used",
81
85
  "connectionInformation": "Connection information",
82
- "connectionInformationDocs": "To connect to this cluster, check the client configuration <0>documentation</0> to learn what information is needed from below.",
86
+ "connectionInformationDocs": {
87
+ "link": "Learn more in the documentation"
88
+ },
83
89
  "clusterId": "Cluster Id",
84
90
  "regionId": "Region Id",
85
91
  "clusterUrl": "Cluster URL",
@@ -118,6 +124,10 @@
118
124
  "button": "Create new secret",
119
125
  "link": "View the secrets documentation"
120
126
  },
127
+ "forbidden": {
128
+ "title": "You don't have access to connector secrets",
129
+ "description": "You don't have permission to view connector secrets for this cluster. Contact an organization owner or admin for access."
130
+ },
121
131
  "errorMessage": {
122
132
  "title": "Oh snap!",
123
133
  "text": "This is embarrassing, we currently can't load your secrets."
@@ -136,6 +146,10 @@
136
146
  "noSecrets": {
137
147
  "title": "Store credentials safely using Camunda cluster secrets",
138
148
  "description": "Accessing an external system requires authentication with credentials. To ensure the credentials are secure, use the Camunda secrets vault to store usernames, passwords, or API credentials without exposing sensitive information in your BPMN processes."
149
+ },
150
+ "forbidden": {
151
+ "title": "You don't have access to cluster secrets",
152
+ "description": "You don't have permission to view cluster secrets for this cluster. Contact an organization owner or admin for access."
139
153
  }
140
154
  },
141
155
  "hotbackups": {
@@ -328,7 +342,8 @@
328
342
  "operate": "Monitor and troubleshoot workflows",
329
343
  "optimize": "Get insights to improve your processes",
330
344
  "connectors": "Integrate with external systems",
331
- "identity": "Manage authentication and authorization"
345
+ "identity": "Manage authentication and authorization",
346
+ "connectivity": "Public access to your cluster"
332
347
  },
333
348
  "optimize": {
334
349
  "disabled": {
@@ -457,7 +472,8 @@
457
472
  },
458
473
  "current": "Current",
459
474
  "tooltip": "Cluster load: Indicates how much of the cluster's resources are in use.",
460
- "docs": "Learn more about cluster load"
475
+ "docs": "Learn more about cluster load",
476
+ "reload": "Reload"
461
477
  }
462
478
  },
463
479
  "auditLog": {
@@ -658,6 +674,12 @@
658
674
  "msTeamsLinkText": "Microsoft Teams",
659
675
  "descriptionDisabled": "When disabled, you can still use App Integrations, but they work with reduced functionality."
660
676
  },
677
+ "optionalTelemetry": {
678
+ "tileTitle": "Optional telemetry",
679
+ "description": "Camunda collects optional usage data from this cluster to improve our products. When disabled, Camunda still collects contractual telemetry, which is required and can't be turned off.",
680
+ "title": "Enable optional telemetry",
681
+ "confirmBody": "Turning off optional telemetry restarts your cluster. Your cluster is briefly unavailable while it restarts. Camunda still collects contractual telemetry, which is required and can't be turned off."
682
+ },
661
683
  "tasklistMode": {
662
684
  "title": "Upgrade to Tasklist v2",
663
685
  "warning": "This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput.",