@burdenoff/microfe-security 2026.1109.1 → 2026.1113.2
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.
- package/dist/security/components/ActivityTimeline.js +42 -41
- package/dist/security/components/ActivityTimeline.js.map +1 -1
- package/dist/security/components/BulkActionBar.d.ts +2 -0
- package/dist/security/components/BulkActionBar.js +93 -81
- package/dist/security/components/BulkActionBar.js.map +1 -1
- package/dist/security/components/BulkPickerDialogs.d.ts +30 -0
- package/dist/security/components/BulkPickerDialogs.js +136 -0
- package/dist/security/components/BulkPickerDialogs.js.map +1 -0
- package/dist/security/components/ExternalSecretProviders.js +150 -134
- package/dist/security/components/ExternalSecretProviders.js.map +1 -1
- package/dist/security/components/SavedValuesMoreMenu.d.ts +12 -0
- package/dist/security/components/SavedValuesMoreMenu.js +63 -0
- package/dist/security/components/SavedValuesMoreMenu.js.map +1 -0
- package/dist/security/components/SecretFormFields.js +162 -114
- package/dist/security/components/SecretFormFields.js.map +1 -1
- package/dist/security/components/SecretRow.d.ts +2 -0
- package/dist/security/components/SecretRow.js +41 -40
- package/dist/security/components/SecretRow.js.map +1 -1
- package/dist/security/components/SecretShareDialog.js +1 -1
- package/dist/security/components/SecretShareDialog.js.map +1 -1
- package/dist/security/components/VaultFormFields.js +100 -55
- package/dist/security/components/VaultFormFields.js.map +1 -1
- package/dist/security/components/ui.d.ts +8 -1
- package/dist/security/components/ui.js +15 -3
- package/dist/security/components/ui.js.map +1 -1
- package/dist/security/constants/externalSecretProviders.d.ts +8 -1
- package/dist/security/constants/externalSecretProviders.js +48 -0
- package/dist/security/constants/externalSecretProviders.js.map +1 -1
- package/dist/security/hooks/useActorLabel.d.ts +9 -0
- package/dist/security/hooks/useActorLabel.js +18 -0
- package/dist/security/hooks/useActorLabel.js.map +1 -0
- package/dist/security/hooks/useDebouncedValue.d.ts +2 -0
- package/dist/security/hooks/useDebouncedValue.js +12 -0
- package/dist/security/hooks/useDebouncedValue.js.map +1 -0
- package/dist/security/hooks/useSecurityVariant.d.ts +7 -0
- package/dist/security/hooks/useSecurityVariant.js +9 -0
- package/dist/security/hooks/useSecurityVariant.js.map +1 -0
- package/dist/security/index.d.ts +1 -1
- package/dist/security/pages/AccessReviewPage.js +77 -76
- package/dist/security/pages/AccessReviewPage.js.map +1 -1
- package/dist/security/pages/AuditLogPage.js +58 -44
- package/dist/security/pages/AuditLogPage.js.map +1 -1
- package/dist/security/pages/ImportExportPage.js +1 -1
- package/dist/security/pages/ImportExportPage.js.map +1 -1
- package/dist/security/pages/SecretCreatePage.js +85 -85
- package/dist/security/pages/SecretCreatePage.js.map +1 -1
- package/dist/security/pages/SecretDetailPage.js +339 -273
- package/dist/security/pages/SecretDetailPage.js.map +1 -1
- package/dist/security/pages/VaultCreatePage.js +59 -56
- package/dist/security/pages/VaultCreatePage.js.map +1 -1
- package/dist/security/pages/VaultDetailPage.js +218 -162
- package/dist/security/pages/VaultDetailPage.js.map +1 -1
- package/dist/security/pages/VaultLandingPage.js +48 -35
- package/dist/security/pages/VaultLandingPage.js.map +1 -1
- package/dist/security/pages/VaultSettingsPage.js +331 -266
- package/dist/security/pages/VaultSettingsPage.js.map +1 -1
- package/dist/security/pages/VaultsDashboardPage.js +231 -161
- package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
- package/dist/security/providers/SecurityProvider.js +24 -20
- package/dist/security/providers/SecurityProvider.js.map +1 -1
- package/dist/security/providers/securityContext.d.ts +3 -0
- package/dist/security/providers/securityContext.js +6 -0
- package/dist/security/providers/securityContext.js.map +1 -0
- package/dist/security/routes/SecurityAdminRoutes.js +3 -3
- package/dist/security/routes/SecurityAdminRoutes.js.map +1 -1
- package/dist/security/routes/SecurityRoutes.js +3 -3
- package/dist/security/routes/SecurityRoutes.js.map +1 -1
- package/dist/security/routes/SecurityUserRoutes.js +1 -1
- package/dist/security/routes/SecurityUserRoutes.js.map +1 -1
- package/dist/security/translations/en.d.ts +65 -0
- package/dist/security/translations/en.js +80 -13
- package/dist/security/translations/en.js.map +1 -1
- package/dist/security/types/index.d.ts +13 -0
- package/dist/security/utils/formInputs.d.ts +49 -0
- package/dist/security/utils/formInputs.js +27 -0
- package/dist/security/utils/formInputs.js.map +1 -0
- package/dist/security/utils/landingTabs.d.ts +9 -0
- package/dist/security/utils/landingTabs.js +16 -0
- package/dist/security/utils/landingTabs.js.map +1 -0
- package/dist/security/utils/rotationStatus.d.ts +12 -0
- package/dist/security/utils/rotationStatus.js +8 -0
- package/dist/security/utils/rotationStatus.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SecretType } from '../types';
|
|
2
|
+
/** The Add-a-saved-value form, as the page holds it. */
|
|
3
|
+
export interface SecretFormState {
|
|
4
|
+
vaultId: string;
|
|
5
|
+
type: SecretType;
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
description: string;
|
|
9
|
+
labels: string[];
|
|
10
|
+
}
|
|
11
|
+
/** The machine key the backend stores next to the name ("Prod DB" -> "prod_db"). */
|
|
12
|
+
export declare function secretKeyFromName(name: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* The `createSecret` input for the form. Unchanged from what the page always
|
|
15
|
+
* sent: fields folded under "More options" (labels) are kept when the fold
|
|
16
|
+
* is closed, because the form keeps them in state either way.
|
|
17
|
+
*/
|
|
18
|
+
export declare function buildCreateSecretInput(form: SecretFormState): {
|
|
19
|
+
vaultId: string;
|
|
20
|
+
name: string;
|
|
21
|
+
key: string;
|
|
22
|
+
value: string;
|
|
23
|
+
type: SecretType;
|
|
24
|
+
description: string | undefined;
|
|
25
|
+
tags: string[] | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** The New-vault form, as the page holds it. */
|
|
28
|
+
export interface VaultFormState {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
scope: string;
|
|
32
|
+
}
|
|
33
|
+
/** The host's ids a Product or Tenant vault is scoped to. */
|
|
34
|
+
export interface VaultScopeIds {
|
|
35
|
+
productId?: string;
|
|
36
|
+
tenantId?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The `createVault` input for the form (same mutation and shape as before).
|
|
40
|
+
* Product and Tenant vaults now carry the host's product / tenant id as
|
|
41
|
+
* `scopeId`; it used to be sent as `undefined` for every scope, so those
|
|
42
|
+
* vaults never recorded which product or tenant they belong to.
|
|
43
|
+
*/
|
|
44
|
+
export declare function buildCreateVaultInput(form: VaultFormState, ids?: VaultScopeIds): {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | undefined;
|
|
47
|
+
scope: string;
|
|
48
|
+
scopeId: string | undefined;
|
|
49
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// src/security/utils/formInputs.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.trim().toLowerCase().replace(/\s+/g, "_").replace(/[^a-z0-9_]/g, "");
|
|
4
|
+
}
|
|
5
|
+
function t(t) {
|
|
6
|
+
return {
|
|
7
|
+
vaultId: t.vaultId,
|
|
8
|
+
name: t.name.trim(),
|
|
9
|
+
key: e(t.name),
|
|
10
|
+
value: t.value.trim(),
|
|
11
|
+
type: t.type,
|
|
12
|
+
description: t.description.trim() || void 0,
|
|
13
|
+
tags: t.labels.length > 0 ? t.labels : void 0
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function n(e, t = {}) {
|
|
17
|
+
let n = e.scope === "PRODUCT" ? t.productId || void 0 : e.scope === "TENANT" && t.tenantId || void 0;
|
|
18
|
+
return {
|
|
19
|
+
name: e.name.trim(),
|
|
20
|
+
description: e.description.trim() || void 0,
|
|
21
|
+
scope: e.scope,
|
|
22
|
+
scopeId: n
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export { t as buildCreateSecretInput, n as buildCreateVaultInput, e as secretKeyFromName };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=formInputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formInputs.js","names":["secretKeyFromName","name","buildCreateSecretInput","form","buildCreateVaultInput","scopeId","ids"],"sources":["../../../src/security/utils/formInputs.ts"],"sourcesContent":["import type { SecretType } from '../types';\n\n/** The Add-a-saved-value form, as the page holds it. */\nexport interface SecretFormState {\n vaultId: string;\n type: SecretType;\n name: string;\n value: string;\n description: string;\n labels: string[];\n}\n\n/** The machine key the backend stores next to the name (\"Prod DB\" -> \"prod_db\"). */\nexport function secretKeyFromName(name: string): string {\n return name\n .trim()\n .toLowerCase()\n .replace(/\\s+/g, '_')\n .replace(/[^a-z0-9_]/g, '');\n}\n\n/**\n * The `createSecret` input for the form. Unchanged from what the page always\n * sent: fields folded under \"More options\" (labels) are kept when the fold\n * is closed, because the form keeps them in state either way.\n */\nexport function buildCreateSecretInput(form: SecretFormState) {\n return {\n vaultId: form.vaultId,\n name: form.name.trim(),\n key: secretKeyFromName(form.name),\n value: form.value.trim(),\n type: form.type,\n description: form.description.trim() || undefined,\n tags: form.labels.length > 0 ? form.labels : undefined,\n };\n}\n\n/** The New-vault form, as the page holds it. */\nexport interface VaultFormState {\n name: string;\n description: string;\n scope: string;\n}\n\n/** The host's ids a Product or Tenant vault is scoped to. */\nexport interface VaultScopeIds {\n productId?: string;\n tenantId?: string;\n}\n\n/**\n * The `createVault` input for the form (same mutation and shape as before).\n * Product and Tenant vaults now carry the host's product / tenant id as\n * `scopeId`; it used to be sent as `undefined` for every scope, so those\n * vaults never recorded which product or tenant they belong to.\n */\nexport function buildCreateVaultInput(form: VaultFormState, ids: VaultScopeIds = {}) {\n const scopeId =\n form.scope === 'PRODUCT'\n ? ids.productId || undefined\n : form.scope === 'TENANT'\n ? ids.tenantId || undefined\n : undefined;\n return {\n name: form.name.trim(),\n description: form.description.trim() || undefined,\n scope: form.scope,\n scopeId,\n };\n}\n"],"mappings":";AAaA,SAAgBA,EAAkB,GAAsB;CACtD,OAAOC,EACJ,KAAK,CAAC,CACN,YAAY,CAAC,CACb,QAAQ,QAAQ,GAAG,CAAC,CACpB,QAAQ,eAAe,EAAE;AAC9B;AAOA,SAAgBC,EAAuB,GAAuB;CAC5D,OAAO;EACL,SAASC,EAAK;EACd,MAAMA,EAAK,KAAK,KAAK;EACrB,KAAKH,EAAkBG,EAAK,IAAI;EAChC,OAAOA,EAAK,MAAM,KAAK;EACvB,MAAMA,EAAK;EACX,aAAaA,EAAK,YAAY,KAAK,KAAK,KAAA;EACxC,MAAMA,EAAK,OAAO,SAAS,IAAIA,EAAK,SAAS,KAAA;CAC/C;AACF;AAqBA,SAAgBC,EAAsB,GAAsB,IAAqB,CAAC,GAAG;CACnF,IAAMC,IACJF,EAAK,UAAU,YACXG,EAAI,aAAa,KAAA,IACjBH,EAAK,UAAU,YACbG,EAAI,YAAY,KAAA;CAExB,OAAO;EACL,MAAMH,EAAK,KAAK,KAAK;EACrB,aAAaA,EAAK,YAAY,KAAK,KAAK,KAAA;EACxC,OAAOA,EAAK;EACZ;CACF;AACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The old Security landing kept six pages behind `?tab=`. With the FluidGrids
|
|
3
|
+
* layout (BOFF-11871) the landing is the vault list only, and every other old
|
|
4
|
+
* tab value opens its own page, so links and bookmarks keep working.
|
|
5
|
+
*
|
|
6
|
+
* Returns the route (relative to the module's base path) an old `?tab=` value
|
|
7
|
+
* now opens, or null when the vault list itself is the answer.
|
|
8
|
+
*/
|
|
9
|
+
export declare function legacyTabRoute(tab: string | null, providersEnabled: boolean): string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/security/utils/landingTabs.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
switch (e) {
|
|
4
|
+
case "import":
|
|
5
|
+
case "import-export": return "import";
|
|
6
|
+
case "audit": return "audit";
|
|
7
|
+
case "dashboard": return "dashboard";
|
|
8
|
+
case "access-review": return "access-review";
|
|
9
|
+
case "shared-with-me": return "shared-with-me";
|
|
10
|
+
case "providers": return t ? "providers" : null;
|
|
11
|
+
default: return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export { e as legacyTabRoute };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=landingTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"landingTabs.js","names":["legacyTabRoute","tab","providersEnabled"],"sources":["../../../src/security/utils/landingTabs.ts"],"sourcesContent":["/**\n * The old Security landing kept six pages behind `?tab=`. With the FluidGrids\n * layout (BOFF-11871) the landing is the vault list only, and every other old\n * tab value opens its own page, so links and bookmarks keep working.\n *\n * Returns the route (relative to the module's base path) an old `?tab=` value\n * now opens, or null when the vault list itself is the answer.\n */\nexport function legacyTabRoute(tab: string | null, providersEnabled: boolean): string | null {\n switch (tab) {\n case 'import':\n case 'import-export':\n return 'import';\n case 'audit':\n return 'audit';\n case 'dashboard':\n return 'dashboard';\n case 'access-review':\n return 'access-review';\n case 'shared-with-me':\n return 'shared-with-me';\n case 'providers':\n // Providers stay behind their preview flag; with it off the vault list\n // is shown, exactly as the old landing fell back to its first tab.\n return providersEnabled ? 'providers' : null;\n default:\n return null;\n }\n}\n"],"mappings":";AAQA,SAAgBA,EAAe,GAAoB,GAA0C;CAC3F,QAAQC,GAAR;EACE,KAAK;EACL,KAAK,iBACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK,aACH,OAAO;EACT,KAAK,iBACH,OAAO;EACT,KAAK,kBACH,OAAO;EACT,KAAK,aAGH,OAAOC,IAAmB,cAAc;EAC1C,SACE,OAAO;CACX;AACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RotationStatus } from '../types';
|
|
2
|
+
/** A value that expires within this many days is "due" for an update. */
|
|
3
|
+
export declare const ROTATION_DUE_WITHIN_DAYS = 14;
|
|
4
|
+
/**
|
|
5
|
+
* Rotation health of a saved value, from its expiry date.
|
|
6
|
+
*
|
|
7
|
+
* The badge used to read "healthy" whenever a value had ever been rotated,
|
|
8
|
+
* whatever its expiry. It now reflects the expiry: past it is "overdue",
|
|
9
|
+
* within {@link ROTATION_DUE_WITHIN_DAYS} days "due", otherwise "healthy".
|
|
10
|
+
* Without an expiry there is nothing to measure, so no badge (undefined).
|
|
11
|
+
*/
|
|
12
|
+
export declare function getRotationStatus(expiresAt: string | null | undefined, now?: number): RotationStatus | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotationStatus.js","names":["getRotationStatus","expiresAt","expires","now"],"sources":["../../../src/security/utils/rotationStatus.ts"],"sourcesContent":["import type { RotationStatus } from '../types';\n\n/** A value that expires within this many days is \"due\" for an update. */\nexport const ROTATION_DUE_WITHIN_DAYS = 14;\n\nconst DAY_MS = 24 * 60 * 60 * 1000;\n\n/**\n * Rotation health of a saved value, from its expiry date.\n *\n * The badge used to read \"healthy\" whenever a value had ever been rotated,\n * whatever its expiry. It now reflects the expiry: past it is \"overdue\",\n * within {@link ROTATION_DUE_WITHIN_DAYS} days \"due\", otherwise \"healthy\".\n * Without an expiry there is nothing to measure, so no badge (undefined).\n */\nexport function getRotationStatus(\n expiresAt: string | null | undefined,\n now: number = Date.now()\n): RotationStatus | undefined {\n if (!expiresAt) return undefined;\n const expires = new Date(expiresAt).getTime();\n if (Number.isNaN(expires)) return undefined;\n if (expires <= now) return 'overdue';\n if (expires - now <= ROTATION_DUE_WITHIN_DAYS * DAY_MS) return 'due';\n return 'healthy';\n}\n"],"mappings":"AAeA,SAAgBA,EACd,GACA,IAAc,KAAK,IAAI,GACK;CAC5B,IAAI,CAACC,GAAW;CAChB,IAAMC,IAAU,IAAI,KAAKD,CAAS,CAAC,CAAC,QAAQ;CAC5C,IAAI,QAAO,MAAMC,CAAO,GAGxB,OAFIA,KAAWC,IAAY,YACvBD,IAAUC,KAAA,UAAiD,QACxD;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-security",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1113.2",
|
|
4
4
|
"description": "Security vault management microfrontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@apollo/client": "^4.3.7",
|
|
50
|
-
"@burdenoff/fe-libs": "2026.
|
|
50
|
+
"@burdenoff/fe-libs": "2026.1113.6",
|
|
51
51
|
"@tanstack/react-query": "^5.107.0",
|
|
52
52
|
"clsx": "^2.1.1",
|
|
53
53
|
"graphql": "^16.15.0",
|