@burdenoff/microfe-security 2026.830.1 → 2026.830.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/index.js +2 -1
- package/dist/security/SecurityAdminRoot.js +9 -8
- package/dist/security/SecurityAdminRoot.js.map +1 -1
- package/dist/security/SecurityRoot.js +9 -8
- package/dist/security/SecurityRoot.js.map +1 -1
- package/dist/security/SecurityRootBase.js +35 -33
- package/dist/security/SecurityRootBase.js.map +1 -1
- package/dist/security/SecurityUserRoot.js +9 -8
- package/dist/security/SecurityUserRoot.js.map +1 -1
- package/dist/security/components/ActivityTimeline.js +83 -66
- package/dist/security/components/ActivityTimeline.js.map +1 -1
- package/dist/security/components/BulkActionBar.js +40 -41
- package/dist/security/components/BulkActionBar.js.map +1 -1
- package/dist/security/components/ConfirmDialog.js +37 -33
- package/dist/security/components/ConfirmDialog.js.map +1 -1
- package/dist/security/components/CopyButton.js +29 -28
- package/dist/security/components/CopyButton.js.map +1 -1
- package/dist/security/components/ExportDialog.js +81 -80
- package/dist/security/components/ExportDialog.js.map +1 -1
- package/dist/security/components/ImportWizard.js +122 -125
- package/dist/security/components/ImportWizard.js.map +1 -1
- package/dist/security/components/PasswordGenerator.js +71 -66
- package/dist/security/components/PasswordGenerator.js.map +1 -1
- package/dist/security/components/RotationStatusBadge.js +18 -17
- package/dist/security/components/RotationStatusBadge.js.map +1 -1
- package/dist/security/components/SecretFormFields.js +143 -134
- package/dist/security/components/SecretFormFields.js.map +1 -1
- package/dist/security/components/SecretRow.js +30 -31
- package/dist/security/components/SecretRow.js.map +1 -1
- package/dist/security/components/SecretShareDialog.js +208 -195
- package/dist/security/components/SecretShareDialog.js.map +1 -1
- package/dist/security/components/SecretValueDisplay.js +45 -44
- package/dist/security/components/SecretValueDisplay.js.map +1 -1
- package/dist/security/components/SecurityPermissionGuard.js +8 -9
- package/dist/security/components/SecurityPermissionGuard.js.map +1 -1
- package/dist/security/components/SecurityScoreCard.js +42 -37
- package/dist/security/components/SecurityScoreCard.js.map +1 -1
- package/dist/security/components/VaultCard.js +32 -33
- package/dist/security/components/VaultCard.js.map +1 -1
- package/dist/security/components/VaultFormFields.js +101 -97
- package/dist/security/components/VaultFormFields.js.map +1 -1
- package/dist/security/components/VaultShareDialog.js +40 -42
- package/dist/security/components/VaultShareDialog.js.map +1 -1
- package/dist/security/config/navigation.js +20 -20
- package/dist/security/config/navigation.js.map +1 -1
- package/dist/security/constants/providers.js +10 -5
- package/dist/security/constants/providers.js.map +1 -1
- package/dist/security/constants/secretTypes.js +16 -8
- package/dist/security/constants/secretTypes.js.map +1 -1
- package/dist/security/hooks/useTr.js +14 -0
- package/dist/security/hooks/useTr.js.map +1 -0
- package/dist/security/index.js +1 -0
- package/dist/security/pages/AccessReviewPage.js +85 -84
- package/dist/security/pages/AccessReviewPage.js.map +1 -1
- package/dist/security/pages/AuditLogPage.js +98 -97
- package/dist/security/pages/AuditLogPage.js.map +1 -1
- package/dist/security/pages/ImportExportPage.js +21 -22
- package/dist/security/pages/ImportExportPage.js.map +1 -1
- package/dist/security/pages/ProviderDetailPage.js +164 -155
- package/dist/security/pages/ProviderDetailPage.js.map +1 -1
- package/dist/security/pages/ProvidersPage.js +89 -92
- package/dist/security/pages/ProvidersPage.js.map +1 -1
- package/dist/security/pages/SecretCreatePage.js +70 -71
- package/dist/security/pages/SecretCreatePage.js.map +1 -1
- package/dist/security/pages/SecretDetailPage.js +250 -251
- package/dist/security/pages/SecretDetailPage.js.map +1 -1
- package/dist/security/pages/SecurityDashboardPage.js +53 -54
- package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
- package/dist/security/pages/SharedWithMePage.js +27 -28
- package/dist/security/pages/SharedWithMePage.js.map +1 -1
- package/dist/security/pages/VaultCreatePage.js +49 -50
- package/dist/security/pages/VaultCreatePage.js.map +1 -1
- package/dist/security/pages/VaultDetailPage.js +130 -131
- package/dist/security/pages/VaultDetailPage.js.map +1 -1
- package/dist/security/pages/VaultLandingPage.js +39 -38
- package/dist/security/pages/VaultLandingPage.js.map +1 -1
- package/dist/security/pages/VaultSettingsPage.js +198 -199
- package/dist/security/pages/VaultSettingsPage.js.map +1 -1
- package/dist/security/pages/VaultShareViewer.js +78 -80
- package/dist/security/pages/VaultShareViewer.js.map +1 -1
- package/dist/security/pages/VaultsDashboardPage.js +97 -98
- package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
- package/dist/security/translations/en.js +756 -0
- package/dist/security/translations/en.js.map +1 -0
- package/package.json +1 -1
- package/dist/security/utils/i18n.js +0 -9
- package/dist/security/utils/i18n.js.map +0 -1
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { HeartPulse as t, Import as n, KeyRound as r, Plug as i, Share2 as a, Shield as o, UserCheck as s } from "lucide-react";
|
|
3
3
|
//#region src/security/config/navigation.tsx
|
|
4
|
-
var c = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), l = (t) => [{
|
|
4
|
+
var c = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), l = (t, n) => [{
|
|
5
5
|
id: "security-vaults",
|
|
6
|
-
label: "Vaults",
|
|
6
|
+
label: n("security.nav.vaults", "Vaults"),
|
|
7
7
|
path: t,
|
|
8
8
|
icon: /* @__PURE__ */ e(r, { size: 16 }),
|
|
9
9
|
order: 10
|
|
10
10
|
}, {
|
|
11
11
|
id: "security-shared-with-me",
|
|
12
|
-
label: "Shared with me",
|
|
12
|
+
label: n("security.nav.sharedWithMe", "Shared with me"),
|
|
13
13
|
path: c(t, "shared-with-me"),
|
|
14
14
|
icon: /* @__PURE__ */ e(a, { size: 16 }),
|
|
15
15
|
order: 20
|
|
16
|
-
}], u = (a) => [
|
|
16
|
+
}], u = (a, o) => [
|
|
17
17
|
{
|
|
18
18
|
id: "security-dashboard",
|
|
19
|
-
label: "Security Health",
|
|
19
|
+
label: o("security.nav.securityHealth", "Security Health"),
|
|
20
20
|
path: a,
|
|
21
21
|
icon: /* @__PURE__ */ e(t, { size: 16 }),
|
|
22
22
|
order: 10
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
id: "security-access-review",
|
|
26
|
-
label: "Access Review",
|
|
26
|
+
label: o("security.nav.accessReview", "Access Review"),
|
|
27
27
|
path: c(a, "access-review"),
|
|
28
28
|
icon: /* @__PURE__ */ e(s, { size: 16 }),
|
|
29
29
|
order: 30
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: "security-providers",
|
|
33
|
-
label: "Providers",
|
|
33
|
+
label: o("security.nav.providers", "Providers"),
|
|
34
34
|
path: c(a, "providers"),
|
|
35
35
|
icon: /* @__PURE__ */ e(i, { size: 16 }),
|
|
36
36
|
order: 40
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: "security-import-export",
|
|
40
|
-
label: "Import / Export",
|
|
40
|
+
label: o("security.nav.importExport", "Import / Export"),
|
|
41
41
|
path: c(a, "import"),
|
|
42
42
|
icon: /* @__PURE__ */ e(n, { size: 16 }),
|
|
43
43
|
order: 50
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: "security-admin-vaults",
|
|
47
|
-
label: "Vaults",
|
|
47
|
+
label: o("security.nav.adminVaults", "Vaults"),
|
|
48
48
|
path: c(a, "vaults"),
|
|
49
49
|
icon: /* @__PURE__ */ e(r, { size: 16 }),
|
|
50
50
|
order: 60
|
|
51
51
|
}
|
|
52
|
-
], d = (o) => [
|
|
52
|
+
], d = (o, l) => [
|
|
53
53
|
{
|
|
54
54
|
id: "security-vaults",
|
|
55
|
-
label: "Vaults",
|
|
55
|
+
label: l("security.nav.vaults", "Vaults"),
|
|
56
56
|
path: o,
|
|
57
57
|
icon: /* @__PURE__ */ e(r, { size: 16 }),
|
|
58
58
|
order: 10
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
id: "security-shared-with-me",
|
|
62
|
-
label: "Shared with me",
|
|
62
|
+
label: l("security.nav.sharedWithMe", "Shared with me"),
|
|
63
63
|
path: c(o, "shared-with-me"),
|
|
64
64
|
icon: /* @__PURE__ */ e(a, { size: 16 }),
|
|
65
65
|
order: 15
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
id: "security-import-export",
|
|
69
|
-
label: "Import / Export",
|
|
69
|
+
label: l("security.nav.importExport", "Import / Export"),
|
|
70
70
|
path: c(o, "import"),
|
|
71
71
|
icon: /* @__PURE__ */ e(n, { size: 16 }),
|
|
72
72
|
order: 20
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
id: "security-providers",
|
|
76
|
-
label: "Providers",
|
|
76
|
+
label: l("security.nav.providers", "Providers"),
|
|
77
77
|
path: c(o, "providers"),
|
|
78
78
|
icon: /* @__PURE__ */ e(i, { size: 16 }),
|
|
79
79
|
order: 30
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
id: "security-dashboard",
|
|
83
|
-
label: "Security Health",
|
|
83
|
+
label: l("security.nav.securityHealth", "Security Health"),
|
|
84
84
|
path: c(o, "dashboard"),
|
|
85
85
|
icon: /* @__PURE__ */ e(t, { size: 16 }),
|
|
86
86
|
order: 50
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
id: "security-access-review",
|
|
90
|
-
label: "Access Review",
|
|
90
|
+
label: l("security.nav.accessReview", "Access Review"),
|
|
91
91
|
path: c(o, "access-review"),
|
|
92
92
|
icon: /* @__PURE__ */ e(s, { size: 16 }),
|
|
93
93
|
order: 60
|
|
94
94
|
}
|
|
95
|
-
], f = (t, n = "all") => {
|
|
96
|
-
let
|
|
95
|
+
], f = (t, n = "all", r) => {
|
|
96
|
+
let i = n === "user" ? l(t, r) : n === "admin" ? u(t, r) : d(t, r);
|
|
97
97
|
return {
|
|
98
98
|
id: "security",
|
|
99
|
-
label: "Security",
|
|
99
|
+
label: r("security.nav.security", "Security"),
|
|
100
100
|
path: t,
|
|
101
101
|
icon: /* @__PURE__ */ e(o, { size: 20 }),
|
|
102
102
|
order: 10,
|
|
103
103
|
group: "security",
|
|
104
|
-
children:
|
|
104
|
+
children: i
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.js","names":[],"sources":["../../../src/security/config/navigation.tsx"],"sourcesContent":["import { Shield, KeyRound, Import, Plug, HeartPulse, UserCheck, Share2 } from 'lucide-react';\nimport type { NavItem, SecurityMode } from '../types';\n\nconst joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n};\n\nconst userChildren = (basePath: string): NavItem[] => [\n {\n id: 'security-vaults',\n label: 'Vaults',\n path: basePath,\n icon: <KeyRound size={16} />,\n order: 10,\n },\n {\n id: 'security-shared-with-me',\n label: 'Shared with me',\n path: joinPath(basePath, 'shared-with-me'),\n icon: <Share2 size={16} />,\n order: 20,\n },\n];\n\nconst adminChildren = (basePath: string): NavItem[] => [\n {\n id: 'security-dashboard',\n label: 'Security Health',\n path: basePath,\n icon: <HeartPulse size={16} />,\n order: 10,\n },\n // Audit Log nav item removed: canonical audit surface is `/admin/audit`\n // (wspace-activity-svc / global audit pipeline). Avoid duplicate visible\n // shell entries for the same audit journey.\n {\n id: 'security-access-review',\n label: 'Access Review',\n path: joinPath(basePath, 'access-review'),\n icon: <UserCheck size={16} />,\n order: 30,\n },\n {\n id: 'security-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Plug size={16} />,\n order: 40,\n },\n {\n id: 'security-import-export',\n label: 'Import / Export',\n path: joinPath(basePath, 'import'),\n icon: <Import size={16} />,\n order: 50,\n },\n {\n id: 'security-admin-vaults',\n label: 'Vaults',\n path: joinPath(basePath, 'vaults'),\n icon: <KeyRound size={16} />,\n order: 60,\n },\n];\n\nconst allChildren = (basePath: string): NavItem[] => [\n {\n id: 'security-vaults',\n label: 'Vaults',\n path: basePath,\n icon: <KeyRound size={16} />,\n order: 10,\n },\n {\n id: 'security-shared-with-me',\n label: 'Shared with me',\n path: joinPath(basePath, 'shared-with-me'),\n icon: <Share2 size={16} />,\n order: 15,\n },\n {\n id: 'security-import-export',\n label: 'Import / Export',\n path: joinPath(basePath, 'import'),\n icon: <Import size={16} />,\n order: 20,\n },\n {\n id: 'security-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Plug size={16} />,\n order: 30,\n },\n // Audit Log nav item removed: see comment above. Canonical surface lives\n // under the admin shell at `/admin/audit`.\n {\n id: 'security-dashboard',\n label: 'Security Health',\n path: joinPath(basePath, 'dashboard'),\n icon: <HeartPulse size={16} />,\n order: 50,\n },\n {\n id: 'security-access-review',\n label: 'Access Review',\n path: joinPath(basePath, 'access-review'),\n icon: <UserCheck size={16} />,\n order: 60,\n },\n];\n\n/**\n * Returns navigation config filtered by mode.\n * - 'user': Vaults only (for product app shells)\n * - 'admin': Governance pages + Vaults (for admin-app)\n * - 'all': Everything (backward compat, default)\n */\nexport const getNavigationConfig = (basePath: string
|
|
1
|
+
{"version":3,"file":"navigation.js","names":[],"sources":["../../../src/security/config/navigation.tsx"],"sourcesContent":["import { Shield, KeyRound, Import, Plug, HeartPulse, UserCheck, Share2 } from 'lucide-react';\nimport type { NavItem, SecurityMode } from '../types';\n\nconst joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n};\n\ninterface TranslationFn {\n (key: string, fallback: string, params?: Record<string, string | number>): string;\n}\n\nconst userChildren = (basePath: string, tr: TranslationFn): NavItem[] => [\n {\n id: 'security-vaults',\n label: tr('security.nav.vaults', 'Vaults'),\n path: basePath,\n icon: <KeyRound size={16} />,\n order: 10,\n },\n {\n id: 'security-shared-with-me',\n label: tr('security.nav.sharedWithMe', 'Shared with me'),\n path: joinPath(basePath, 'shared-with-me'),\n icon: <Share2 size={16} />,\n order: 20,\n },\n];\n\nconst adminChildren = (basePath: string, tr: TranslationFn): NavItem[] => [\n {\n id: 'security-dashboard',\n label: tr('security.nav.securityHealth', 'Security Health'),\n path: basePath,\n icon: <HeartPulse size={16} />,\n order: 10,\n },\n // Audit Log nav item removed: canonical audit surface is `/admin/audit`\n // (wspace-activity-svc / global audit pipeline). Avoid duplicate visible\n // shell entries for the same audit journey.\n {\n id: 'security-access-review',\n label: tr('security.nav.accessReview', 'Access Review'),\n path: joinPath(basePath, 'access-review'),\n icon: <UserCheck size={16} />,\n order: 30,\n },\n {\n id: 'security-providers',\n label: tr('security.nav.providers', 'Providers'),\n path: joinPath(basePath, 'providers'),\n icon: <Plug size={16} />,\n order: 40,\n },\n {\n id: 'security-import-export',\n label: tr('security.nav.importExport', 'Import / Export'),\n path: joinPath(basePath, 'import'),\n icon: <Import size={16} />,\n order: 50,\n },\n {\n id: 'security-admin-vaults',\n label: tr('security.nav.adminVaults', 'Vaults'),\n path: joinPath(basePath, 'vaults'),\n icon: <KeyRound size={16} />,\n order: 60,\n },\n];\n\nconst allChildren = (basePath: string, tr: TranslationFn): NavItem[] => [\n {\n id: 'security-vaults',\n label: tr('security.nav.vaults', 'Vaults'),\n path: basePath,\n icon: <KeyRound size={16} />,\n order: 10,\n },\n {\n id: 'security-shared-with-me',\n label: tr('security.nav.sharedWithMe', 'Shared with me'),\n path: joinPath(basePath, 'shared-with-me'),\n icon: <Share2 size={16} />,\n order: 15,\n },\n {\n id: 'security-import-export',\n label: tr('security.nav.importExport', 'Import / Export'),\n path: joinPath(basePath, 'import'),\n icon: <Import size={16} />,\n order: 20,\n },\n {\n id: 'security-providers',\n label: tr('security.nav.providers', 'Providers'),\n path: joinPath(basePath, 'providers'),\n icon: <Plug size={16} />,\n order: 30,\n },\n // Audit Log nav item removed: see comment above. Canonical surface lives\n // under the admin shell at `/admin/audit`.\n {\n id: 'security-dashboard',\n label: tr('security.nav.securityHealth', 'Security Health'),\n path: joinPath(basePath, 'dashboard'),\n icon: <HeartPulse size={16} />,\n order: 50,\n },\n {\n id: 'security-access-review',\n label: tr('security.nav.accessReview', 'Access Review'),\n path: joinPath(basePath, 'access-review'),\n icon: <UserCheck size={16} />,\n order: 60,\n },\n];\n\n/**\n * Returns navigation config filtered by mode.\n * - 'user': Vaults only (for product app shells)\n * - 'admin': Governance pages + Vaults (for admin-app)\n * - 'all': Everything (backward compat, default)\n */\nexport const getNavigationConfig = (\n basePath: string,\n mode: SecurityMode = 'all',\n tr: TranslationFn\n): NavItem => {\n const children =\n mode === 'user'\n ? userChildren(basePath, tr)\n : mode === 'admin'\n ? adminChildren(basePath, tr)\n : allChildren(basePath, tr);\n\n return {\n id: 'security',\n label: tr('security.nav.security', 'Security'),\n path: basePath,\n icon: <Shield size={20} />,\n order: 10,\n group: 'security',\n children,\n };\n};\n"],"mappings":"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"}
|
|
@@ -5,35 +5,40 @@ var e = [
|
|
|
5
5
|
label: "HashiCorp Vault",
|
|
6
6
|
description: "Sync secrets with HashiCorp Vault KV engine",
|
|
7
7
|
icon: "Vault",
|
|
8
|
-
docsUrl: "https://www.vaultproject.io/docs"
|
|
8
|
+
docsUrl: "https://www.vaultproject.io/docs",
|
|
9
|
+
translationKey: "providerTypes.hashicorpVault"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
12
|
value: "aws_secrets_manager",
|
|
12
13
|
label: "AWS Secrets Manager",
|
|
13
14
|
description: "Sync secrets with AWS Secrets Manager",
|
|
14
15
|
icon: "Cloud",
|
|
15
|
-
docsUrl: "https://docs.aws.amazon.com/secretsmanager/"
|
|
16
|
+
docsUrl: "https://docs.aws.amazon.com/secretsmanager/",
|
|
17
|
+
translationKey: "providerTypes.awsSecretsManager"
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
20
|
value: "azure_key_vault",
|
|
19
21
|
label: "Azure Key Vault",
|
|
20
22
|
description: "Sync secrets with Azure Key Vault",
|
|
21
23
|
icon: "Cloud",
|
|
22
|
-
docsUrl: "https://docs.microsoft.com/azure/key-vault/"
|
|
24
|
+
docsUrl: "https://docs.microsoft.com/azure/key-vault/",
|
|
25
|
+
translationKey: "providerTypes.azureKeyVault"
|
|
23
26
|
},
|
|
24
27
|
{
|
|
25
28
|
value: "gcp_secret_manager",
|
|
26
29
|
label: "GCP Secret Manager",
|
|
27
30
|
description: "Sync secrets with Google Cloud Secret Manager",
|
|
28
31
|
icon: "Cloud",
|
|
29
|
-
docsUrl: "https://cloud.google.com/secret-manager/docs"
|
|
32
|
+
docsUrl: "https://cloud.google.com/secret-manager/docs",
|
|
33
|
+
translationKey: "providerTypes.gcpSecretManager"
|
|
30
34
|
},
|
|
31
35
|
{
|
|
32
36
|
value: "custom",
|
|
33
37
|
label: "Custom Provider",
|
|
34
38
|
description: "Connect to a custom secrets provider via API",
|
|
35
39
|
icon: "Plug",
|
|
36
|
-
docsUrl: ""
|
|
40
|
+
docsUrl: "",
|
|
41
|
+
translationKey: "providerTypes.custom"
|
|
37
42
|
}
|
|
38
43
|
];
|
|
39
44
|
function t(t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.js","names":[],"sources":["../../../src/security/constants/providers.ts"],"sourcesContent":["import type { ProviderType } from '../types';\n\nexport interface ProviderTypeInfo {\n value: ProviderType;\n label: string;\n description: string;\n icon: string;\n docsUrl: string;\n}\n\nconst PROVIDER_TYPES: ProviderTypeInfo[] = [\n {\n value: 'hashicorp_vault',\n label: 'HashiCorp Vault',\n description: 'Sync secrets with HashiCorp Vault KV engine',\n icon: 'Vault',\n docsUrl: 'https://www.vaultproject.io/docs',\n },\n {\n value: 'aws_secrets_manager',\n label: 'AWS Secrets Manager',\n description: 'Sync secrets with AWS Secrets Manager',\n icon: 'Cloud',\n docsUrl: 'https://docs.aws.amazon.com/secretsmanager/',\n },\n {\n value: 'azure_key_vault',\n label: 'Azure Key Vault',\n description: 'Sync secrets with Azure Key Vault',\n icon: 'Cloud',\n docsUrl: 'https://docs.microsoft.com/azure/key-vault/',\n },\n {\n value: 'gcp_secret_manager',\n label: 'GCP Secret Manager',\n description: 'Sync secrets with Google Cloud Secret Manager',\n icon: 'Cloud',\n docsUrl: 'https://cloud.google.com/secret-manager/docs',\n },\n {\n value: 'custom',\n label: 'Custom Provider',\n description: 'Connect to a custom secrets provider via API',\n icon: 'Plug',\n docsUrl: '',\n },\n];\n\nexport function getProviderTypeInfo(type: ProviderType): ProviderTypeInfo {\n return PROVIDER_TYPES.find((p) => p.value === type) ?? PROVIDER_TYPES[PROVIDER_TYPES.length - 1];\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"providers.js","names":[],"sources":["../../../src/security/constants/providers.ts"],"sourcesContent":["import type { ProviderType } from '../types';\n\nexport interface ProviderTypeInfo {\n value: ProviderType;\n label: string;\n description: string;\n icon: string;\n docsUrl: string;\n /** Translation key under the `security.providerTypes` namespace (without the `security.` prefix). */\n translationKey: string;\n}\n\nconst PROVIDER_TYPES: ProviderTypeInfo[] = [\n {\n value: 'hashicorp_vault',\n label: 'HashiCorp Vault',\n description: 'Sync secrets with HashiCorp Vault KV engine',\n icon: 'Vault',\n docsUrl: 'https://www.vaultproject.io/docs',\n translationKey: 'providerTypes.hashicorpVault',\n },\n {\n value: 'aws_secrets_manager',\n label: 'AWS Secrets Manager',\n description: 'Sync secrets with AWS Secrets Manager',\n icon: 'Cloud',\n docsUrl: 'https://docs.aws.amazon.com/secretsmanager/',\n translationKey: 'providerTypes.awsSecretsManager',\n },\n {\n value: 'azure_key_vault',\n label: 'Azure Key Vault',\n description: 'Sync secrets with Azure Key Vault',\n icon: 'Cloud',\n docsUrl: 'https://docs.microsoft.com/azure/key-vault/',\n translationKey: 'providerTypes.azureKeyVault',\n },\n {\n value: 'gcp_secret_manager',\n label: 'GCP Secret Manager',\n description: 'Sync secrets with Google Cloud Secret Manager',\n icon: 'Cloud',\n docsUrl: 'https://cloud.google.com/secret-manager/docs',\n translationKey: 'providerTypes.gcpSecretManager',\n },\n {\n value: 'custom',\n label: 'Custom Provider',\n description: 'Connect to a custom secrets provider via API',\n icon: 'Plug',\n docsUrl: '',\n translationKey: 'providerTypes.custom',\n },\n];\n\nexport function getProviderTypeInfo(type: ProviderType): ProviderTypeInfo {\n return PROVIDER_TYPES.find((p) => p.value === type) ?? PROVIDER_TYPES[PROVIDER_TYPES.length - 1];\n}\n"],"mappings":";AAYA,IAAM,IAAqC;CACzC;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,gBAAgB;EACjB;CACF;AAED,SAAgB,EAAoB,GAAsC;AACxE,QAAO,EAAe,MAAM,MAAM,EAAE,UAAU,EAAK,IAAI,EAAe,EAAe,SAAS"}
|
|
@@ -5,56 +5,64 @@ var e = [
|
|
|
5
5
|
label: "Password / Credential",
|
|
6
6
|
description: "User or service account passwords and credentials",
|
|
7
7
|
icon: "KeyRound",
|
|
8
|
-
color: "text-accent-blue"
|
|
8
|
+
color: "text-accent-blue",
|
|
9
|
+
translationKey: "secretTypes.credential"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
12
|
value: "API_KEY",
|
|
12
13
|
label: "API Key",
|
|
13
14
|
description: "API keys for external services",
|
|
14
15
|
icon: "Key",
|
|
15
|
-
color: "text-accent-purple"
|
|
16
|
+
color: "text-accent-purple",
|
|
17
|
+
translationKey: "secretTypes.apiKey"
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
20
|
value: "TOKEN",
|
|
19
21
|
label: "Token",
|
|
20
22
|
description: "Authentication or access tokens",
|
|
21
23
|
icon: "Ticket",
|
|
22
|
-
color: "text-status-success-text"
|
|
24
|
+
color: "text-status-success-text",
|
|
25
|
+
translationKey: "secretTypes.token"
|
|
23
26
|
},
|
|
24
27
|
{
|
|
25
28
|
value: "CERTIFICATE",
|
|
26
29
|
label: "Certificate",
|
|
27
30
|
description: "TLS/SSL certificates",
|
|
28
31
|
icon: "Award",
|
|
29
|
-
color: "text-status-warning-text"
|
|
32
|
+
color: "text-status-warning-text",
|
|
33
|
+
translationKey: "secretTypes.certificate"
|
|
30
34
|
},
|
|
31
35
|
{
|
|
32
36
|
value: "PRIVATE_KEY",
|
|
33
37
|
label: "Private Key",
|
|
34
38
|
description: "SSH keys, encryption keys, signing keys",
|
|
35
39
|
icon: "Lock",
|
|
36
|
-
color: "text-status-error-text"
|
|
40
|
+
color: "text-status-error-text",
|
|
41
|
+
translationKey: "secretTypes.privateKey"
|
|
37
42
|
},
|
|
38
43
|
{
|
|
39
44
|
value: "FILE",
|
|
40
45
|
label: "File",
|
|
41
46
|
description: "Confidential file content (base64 encoded)",
|
|
42
47
|
icon: "FileCode",
|
|
43
|
-
color: "text-accent-orange"
|
|
48
|
+
color: "text-accent-orange",
|
|
49
|
+
translationKey: "secretTypes.file"
|
|
44
50
|
},
|
|
45
51
|
{
|
|
46
52
|
value: "TEXT",
|
|
47
53
|
label: "Text / Note",
|
|
48
54
|
description: "Free-form confidential text",
|
|
49
55
|
icon: "FileText",
|
|
50
|
-
color: "text-accent-teal"
|
|
56
|
+
color: "text-accent-teal",
|
|
57
|
+
translationKey: "secretTypes.text"
|
|
51
58
|
},
|
|
52
59
|
{
|
|
53
60
|
value: "STRUCTURED_DATA",
|
|
54
61
|
label: "Structured Data",
|
|
55
62
|
description: "JSON configuration, connection strings, env vars",
|
|
56
63
|
icon: "Settings",
|
|
57
|
-
color: "text-slate-500"
|
|
64
|
+
color: "text-slate-500",
|
|
65
|
+
translationKey: "secretTypes.structuredData"
|
|
58
66
|
}
|
|
59
67
|
];
|
|
60
68
|
function t(t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secretTypes.js","names":[],"sources":["../../../src/security/constants/secretTypes.ts"],"sourcesContent":["import type { SecretType } from '../types';\n\nexport interface SecretTypeInfo {\n value: SecretType;\n label: string;\n description: string;\n icon: string;\n color: string;\n}\n\n/**\n * Secret types matching the GraphQL SecretType enum.\n * Values MUST be uppercase to match the backend enum exactly.\n */\nexport const SECRET_TYPES: SecretTypeInfo[] = [\n {\n value: 'CREDENTIAL',\n label: 'Password / Credential',\n description: 'User or service account passwords and credentials',\n icon: 'KeyRound',\n color: 'text-accent-blue',\n },\n {\n value: 'API_KEY',\n label: 'API Key',\n description: 'API keys for external services',\n icon: 'Key',\n color: 'text-accent-purple',\n },\n {\n value: 'TOKEN',\n label: 'Token',\n description: 'Authentication or access tokens',\n icon: 'Ticket',\n color: 'text-status-success-text',\n },\n {\n value: 'CERTIFICATE',\n label: 'Certificate',\n description: 'TLS/SSL certificates',\n icon: 'Award',\n color: 'text-status-warning-text',\n },\n {\n value: 'PRIVATE_KEY',\n label: 'Private Key',\n description: 'SSH keys, encryption keys, signing keys',\n icon: 'Lock',\n color: 'text-status-error-text',\n },\n {\n value: 'FILE',\n label: 'File',\n description: 'Confidential file content (base64 encoded)',\n icon: 'FileCode',\n color: 'text-accent-orange',\n },\n {\n value: 'TEXT',\n label: 'Text / Note',\n description: 'Free-form confidential text',\n icon: 'FileText',\n color: 'text-accent-teal',\n },\n {\n value: 'STRUCTURED_DATA',\n label: 'Structured Data',\n description: 'JSON configuration, connection strings, env vars',\n icon: 'Settings',\n color: 'text-slate-500',\n },\n];\n\nexport function getSecretTypeInfo(type: SecretType): SecretTypeInfo {\n return SECRET_TYPES.find((t) => t.value === type) ?? SECRET_TYPES[SECRET_TYPES.length - 1];\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"secretTypes.js","names":[],"sources":["../../../src/security/constants/secretTypes.ts"],"sourcesContent":["import type { SecretType } from '../types';\n\nexport interface SecretTypeInfo {\n value: SecretType;\n label: string;\n description: string;\n icon: string;\n color: string;\n /** Translation key under the `security.secretTypes` namespace (without the `security.` prefix). */\n translationKey: string;\n}\n\n/**\n * Secret types matching the GraphQL SecretType enum.\n * Values MUST be uppercase to match the backend enum exactly.\n */\nexport const SECRET_TYPES: SecretTypeInfo[] = [\n {\n value: 'CREDENTIAL',\n label: 'Password / Credential',\n description: 'User or service account passwords and credentials',\n icon: 'KeyRound',\n color: 'text-accent-blue',\n translationKey: 'secretTypes.credential',\n },\n {\n value: 'API_KEY',\n label: 'API Key',\n description: 'API keys for external services',\n icon: 'Key',\n color: 'text-accent-purple',\n translationKey: 'secretTypes.apiKey',\n },\n {\n value: 'TOKEN',\n label: 'Token',\n description: 'Authentication or access tokens',\n icon: 'Ticket',\n color: 'text-status-success-text',\n translationKey: 'secretTypes.token',\n },\n {\n value: 'CERTIFICATE',\n label: 'Certificate',\n description: 'TLS/SSL certificates',\n icon: 'Award',\n color: 'text-status-warning-text',\n translationKey: 'secretTypes.certificate',\n },\n {\n value: 'PRIVATE_KEY',\n label: 'Private Key',\n description: 'SSH keys, encryption keys, signing keys',\n icon: 'Lock',\n color: 'text-status-error-text',\n translationKey: 'secretTypes.privateKey',\n },\n {\n value: 'FILE',\n label: 'File',\n description: 'Confidential file content (base64 encoded)',\n icon: 'FileCode',\n color: 'text-accent-orange',\n translationKey: 'secretTypes.file',\n },\n {\n value: 'TEXT',\n label: 'Text / Note',\n description: 'Free-form confidential text',\n icon: 'FileText',\n color: 'text-accent-teal',\n translationKey: 'secretTypes.text',\n },\n {\n value: 'STRUCTURED_DATA',\n label: 'Structured Data',\n description: 'JSON configuration, connection strings, env vars',\n icon: 'Settings',\n color: 'text-slate-500',\n translationKey: 'secretTypes.structuredData',\n },\n];\n\nexport function getSecretTypeInfo(type: SecretType): SecretTypeInfo {\n return SECRET_TYPES.find((t) => t.value === type) ?? SECRET_TYPES[SECRET_TYPES.length - 1];\n}\n"],"mappings":";AAgBA,IAAa,IAAiC;CAC5C;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACD;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,OAAO;EACP,gBAAgB;EACjB;CACF;AAED,SAAgB,EAAkB,GAAkC;AAClE,QAAO,EAAa,MAAM,MAAM,EAAE,UAAU,EAAK,IAAI,EAAa,EAAa,SAAS"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useCallback as e } from "react";
|
|
2
|
+
import { useI18n as t } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
3
|
+
//#region src/security/hooks/useTr.ts
|
|
4
|
+
function n() {
|
|
5
|
+
let { t: n } = t();
|
|
6
|
+
return e((e, t, r) => {
|
|
7
|
+
let i = n(e), a = i === e ? t : i;
|
|
8
|
+
return r ? Object.entries(r).reduce((e, [t, n]) => e.replace(RegExp(`\\{\\{${t}\\}\\}`, "g"), String(n)), a) : a;
|
|
9
|
+
}, [n]);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as useTr };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=useTr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTr.js","names":[],"sources":["../../../src/security/hooks/useTr.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\n/**\n * useTr — translation hook with fallback semantics.\n *\n * Wraps `useI18n().t()` so that when a key has no translation (i.e. the\n * provider returns the key itself), the caller's English fallback is used\n * instead. This keeps consumer call sites consistent and avoids leaking\n * untranslated keys into the UI.\n *\n * Supports optional interpolation params using `{{key}}` placeholders.\n *\n * @example\n * const tr = useTr();\n * return <h1>{tr('security.vaultsDashboard.title', 'Vaults')}</h1>;\n * return <p>{tr('security.vaultDetail.stats.secrets', '{{count}} secret{{suffix}}', { count: 5, suffix: 's' })}</p>;\n */\nexport function useTr(): (\n key: string,\n fallback: string,\n params?: Record<string, string | number>\n) => string {\n const { t } = useI18n();\n return useCallback(\n (key: string, fallback: string, params?: Record<string, string | number>): string => {\n const translated = t(key);\n const raw = translated === key ? fallback : translated;\n if (!params) return raw;\n return Object.entries(params).reduce(\n (str, [k, v]) => str.replace(new RegExp(`\\\\{\\\\{${k}\\\\}\\\\}`, 'g'), String(v)),\n raw\n );\n },\n [t]\n );\n}\n"],"mappings":";;;AAkBA,SAAgB,IAIJ;CACV,IAAM,EAAE,SAAM,GAAS;AACvB,QAAO,GACJ,GAAa,GAAkB,MAAqD;EACnF,IAAM,IAAa,EAAE,EAAI,EACnB,IAAM,MAAe,IAAM,IAAW;AAE5C,SADK,IACE,OAAO,QAAQ,EAAO,CAAC,QAC3B,GAAK,CAAC,GAAG,OAAO,EAAI,QAAY,OAAO,SAAS,EAAE,SAAS,IAAI,EAAE,OAAO,EAAE,CAAC,EAC5E,EACD,GAJmB;IAMtB,CAAC,EAAE,CACJ"}
|
package/dist/security/index.js
CHANGED
|
@@ -1,161 +1,162 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSecurity as t } from "../providers/SecurityProvider.js";
|
|
3
|
+
import { PageLayout as n } from "../components/PageLayout.js";
|
|
4
|
+
import { Badge as r, Button as i, Card as a } from "../components/ui.js";
|
|
5
|
+
import { useGetVaults as o } from "../hooks/useVaultQueries.js";
|
|
6
|
+
import { getVaultRoleInfo as s } from "../constants/permissions.js";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { AlertTriangle as u, Loader2 as d, Lock as f, Shield as p } from "lucide-react";
|
|
9
|
+
import { EmphasisPanel as m, IllustratedEmptyState as h, PagePurpose as g, ResponsiveTable as _ } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/security/pages/AccessReviewPage.tsx
|
|
10
|
-
function
|
|
11
|
-
let { basePath:
|
|
12
|
-
return
|
|
13
|
-
title: "Access Review",
|
|
11
|
+
function v() {
|
|
12
|
+
let { basePath: v = "/" } = t(), y = e(), { data: b, loading: x, error: S, refetch: C } = o(void 0, { limit: 100 }), w = b?.getVaults?.items ?? [];
|
|
13
|
+
return x ? /* @__PURE__ */ c(n, {
|
|
14
|
+
title: y("security.accessReview.title", "Access Review"),
|
|
14
15
|
breadcrumbs: [{
|
|
15
|
-
label: "Security",
|
|
16
|
-
path:
|
|
17
|
-
}, { label: "Access Review" }],
|
|
18
|
-
children: /* @__PURE__ */
|
|
16
|
+
label: y("security.common.breadcrumbs.security", "Security"),
|
|
17
|
+
path: v
|
|
18
|
+
}, { label: y("security.accessReview.title", "Access Review") }],
|
|
19
|
+
children: /* @__PURE__ */ c("div", {
|
|
19
20
|
className: "flex items-center justify-center py-16",
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
+
children: /* @__PURE__ */ c(d, { className: "size-8 animate-spin text-primary" })
|
|
21
22
|
})
|
|
22
|
-
}) :
|
|
23
|
-
title: "Access Review",
|
|
23
|
+
}) : S ? /* @__PURE__ */ c(n, {
|
|
24
|
+
title: y("security.accessReview.title", "Access Review"),
|
|
24
25
|
breadcrumbs: [{
|
|
25
|
-
label: "Security",
|
|
26
|
-
path:
|
|
27
|
-
}, { label: "Access Review" }],
|
|
28
|
-
children: /* @__PURE__ */
|
|
26
|
+
label: y("security.common.breadcrumbs.security", "Security"),
|
|
27
|
+
path: v
|
|
28
|
+
}, { label: y("security.accessReview.title", "Access Review") }],
|
|
29
|
+
children: /* @__PURE__ */ c(a, {
|
|
29
30
|
className: "p-6",
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ l("div", {
|
|
31
32
|
className: "flex items-start gap-4",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ c(u, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ l("div", { children: [
|
|
34
|
+
/* @__PURE__ */ c("h3", {
|
|
34
35
|
className: "font-semibold text-status-error-text",
|
|
35
|
-
children: "Failed to load access data"
|
|
36
|
+
children: y("security.accessReview.error", "Failed to load access data")
|
|
36
37
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ c("p", {
|
|
38
39
|
className: "text-sm text-text-secondary mt-1",
|
|
39
|
-
children:
|
|
40
|
+
children: S.message
|
|
40
41
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ c(i, {
|
|
42
43
|
variant: "outline",
|
|
43
44
|
size: "sm",
|
|
44
45
|
className: "mt-3",
|
|
45
|
-
onClick: () =>
|
|
46
|
-
children: "Retry"
|
|
46
|
+
onClick: () => C(),
|
|
47
|
+
children: y("security.accessReview.retry", "Retry")
|
|
47
48
|
})
|
|
48
49
|
] })]
|
|
49
50
|
})
|
|
50
51
|
})
|
|
51
|
-
}) : /* @__PURE__ */
|
|
52
|
-
title: "Access Review",
|
|
53
|
-
description: "Review who has access to each vault and their permission levels.",
|
|
52
|
+
}) : /* @__PURE__ */ c(n, {
|
|
53
|
+
title: y("security.accessReview.title", "Access Review"),
|
|
54
|
+
description: y("security.accessReview.description", "Review who has access to each vault and their permission levels."),
|
|
54
55
|
breadcrumbs: [{
|
|
55
|
-
label: "Security",
|
|
56
|
-
path:
|
|
57
|
-
}, { label: "Access Review" }],
|
|
58
|
-
children:
|
|
56
|
+
label: y("security.common.breadcrumbs.security", "Security"),
|
|
57
|
+
path: v
|
|
58
|
+
}, { label: y("security.accessReview.title", "Access Review") }],
|
|
59
|
+
children: w.length === 0 ? /* @__PURE__ */ l("div", {
|
|
59
60
|
className: "space-y-6",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
61
|
-
icon: /* @__PURE__ */
|
|
62
|
-
children: "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit."
|
|
63
|
-
}), /* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ c(g, {
|
|
62
|
+
icon: /* @__PURE__ */ c(p, { className: "size-4" }),
|
|
63
|
+
children: y("security.accessReview.purpose", "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit.")
|
|
64
|
+
}), /* @__PURE__ */ c(h, {
|
|
64
65
|
illustration: "empty-people",
|
|
65
|
-
title: "No vaults to review",
|
|
66
|
-
description: "Create vaults and share them with team members to see access details here."
|
|
66
|
+
title: y("security.accessReview.noVaults", "No vaults to review"),
|
|
67
|
+
description: y("security.accessReview.noVaultsDescription", "Create vaults and share them with team members to see access details here.")
|
|
67
68
|
})]
|
|
68
|
-
}) : /* @__PURE__ */
|
|
69
|
+
}) : /* @__PURE__ */ l("div", {
|
|
69
70
|
className: "space-y-6",
|
|
70
71
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
icon: /* @__PURE__ */
|
|
73
|
-
children: "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit."
|
|
72
|
+
/* @__PURE__ */ c(g, {
|
|
73
|
+
icon: /* @__PURE__ */ c(p, { className: "size-4" }),
|
|
74
|
+
children: y("security.accessReview.purpose", "Access review shows, vault by vault, exactly who can reach your secrets and at what role (owner, editor, viewer). Use it periodically to catch over-broad access — people who no longer need a vault, or roles that are higher than necessary — and tighten permissions before an audit.")
|
|
74
75
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ c(m, { children: /* @__PURE__ */ l("div", {
|
|
76
77
|
className: "flex flex-wrap items-center gap-x-8 gap-y-3",
|
|
77
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
|
|
78
79
|
className: "text-xs uppercase tracking-wider font-semibold text-text-secondary",
|
|
79
|
-
children: "Vaults under review"
|
|
80
|
-
}), /* @__PURE__ */
|
|
80
|
+
children: y("security.accessReview.vaultsUnderReview", "Vaults under review")
|
|
81
|
+
}), /* @__PURE__ */ c("p", {
|
|
81
82
|
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
82
|
-
children:
|
|
83
|
-
})] }), /* @__PURE__ */
|
|
83
|
+
children: w.length
|
|
84
|
+
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
|
|
84
85
|
className: "text-xs uppercase tracking-wider font-semibold text-text-secondary",
|
|
85
|
-
children: "Total access grants"
|
|
86
|
-
}), /* @__PURE__ */
|
|
86
|
+
children: y("security.accessReview.totalAccessGrants", "Total access grants")
|
|
87
|
+
}), /* @__PURE__ */ c("p", {
|
|
87
88
|
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
88
|
-
children:
|
|
89
|
+
children: w.reduce((e, t) => e + (t.members?.length ?? 0), 0)
|
|
89
90
|
})] })]
|
|
90
91
|
}) }),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ c("div", {
|
|
92
93
|
className: "space-y-4",
|
|
93
|
-
children:
|
|
94
|
-
let t = e.members ?? [],
|
|
95
|
-
return /* @__PURE__ */
|
|
94
|
+
children: w.map((e) => {
|
|
95
|
+
let t = e.members ?? [], n = e.status === "LOCKED";
|
|
96
|
+
return /* @__PURE__ */ l(a, {
|
|
96
97
|
className: "p-5",
|
|
97
|
-
children: [/* @__PURE__ */
|
|
98
|
+
children: [/* @__PURE__ */ l("div", {
|
|
98
99
|
className: "flex items-center justify-between mb-4",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ l("div", {
|
|
100
101
|
className: "flex items-center gap-3",
|
|
101
|
-
children: [
|
|
102
|
+
children: [n ? /* @__PURE__ */ c(f, { className: "size-5 text-status-warning-text" }) : /* @__PURE__ */ c(p, { className: "size-5 text-primary" }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h3", {
|
|
102
103
|
className: "font-semibold text-text-primary",
|
|
103
104
|
children: e.name
|
|
104
|
-
}), /* @__PURE__ */
|
|
105
|
+
}), /* @__PURE__ */ l("p", {
|
|
105
106
|
className: "text-xs text-text-secondary",
|
|
106
107
|
children: [
|
|
107
108
|
t.length,
|
|
108
|
-
"
|
|
109
|
-
t.length === 1 ? "" : "
|
|
109
|
+
" ",
|
|
110
|
+
t.length === 1 ? y("security.accessReview.member", "member") : y("security.accessReview.members", "members")
|
|
110
111
|
]
|
|
111
112
|
})] })]
|
|
112
|
-
}), /* @__PURE__ */
|
|
113
|
-
variant:
|
|
114
|
-
children:
|
|
113
|
+
}), /* @__PURE__ */ c(r, {
|
|
114
|
+
variant: n ? "warning" : "success",
|
|
115
|
+
children: n ? y("security.common.status.locked", "Locked") : y("security.common.status.active", "Active")
|
|
115
116
|
})]
|
|
116
|
-
}), t.length > 0 ? /* @__PURE__ */
|
|
117
|
+
}), t.length > 0 ? /* @__PURE__ */ c(_, {
|
|
117
118
|
className: "border border-border-subtle/60 rounded-lg",
|
|
118
119
|
data: t,
|
|
119
120
|
rowKey: (e) => e.id,
|
|
120
121
|
columns: [
|
|
121
122
|
{
|
|
122
123
|
key: "actor",
|
|
123
|
-
header: "Actor",
|
|
124
|
+
header: y("security.accessReview.actor", "Actor"),
|
|
124
125
|
priority: "primary",
|
|
125
|
-
cell: (e) => /* @__PURE__ */
|
|
126
|
+
cell: (e) => /* @__PURE__ */ c("span", {
|
|
126
127
|
className: "font-medium text-text-primary",
|
|
127
128
|
children: e.actorId
|
|
128
129
|
})
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
key: "type",
|
|
132
|
-
header: "Type",
|
|
133
|
-
cell: (e) => /* @__PURE__ */
|
|
133
|
+
header: y("security.accessReview.type", "Type"),
|
|
134
|
+
cell: (e) => /* @__PURE__ */ c("span", {
|
|
134
135
|
className: "text-text-secondary capitalize",
|
|
135
136
|
children: e.actorType
|
|
136
137
|
})
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
key: "role",
|
|
140
|
-
header: "Role",
|
|
141
|
-
cell: (e) => /* @__PURE__ */
|
|
141
|
+
header: y("security.accessReview.role", "Role"),
|
|
142
|
+
cell: (e) => /* @__PURE__ */ c(r, {
|
|
142
143
|
variant: "outline",
|
|
143
144
|
className: "text-[10px] uppercase font-bold tracking-tighter",
|
|
144
|
-
children:
|
|
145
|
+
children: s(e.role.toLowerCase()).label
|
|
145
146
|
})
|
|
146
147
|
},
|
|
147
148
|
{
|
|
148
149
|
key: "since",
|
|
149
|
-
header: "Since",
|
|
150
|
-
cell: (e) => /* @__PURE__ */
|
|
150
|
+
header: y("security.accessReview.since", "Since"),
|
|
151
|
+
cell: (e) => /* @__PURE__ */ c("span", {
|
|
151
152
|
className: "text-text-secondary",
|
|
152
153
|
children: new Date(e.createdAt).toLocaleDateString()
|
|
153
154
|
})
|
|
154
155
|
}
|
|
155
156
|
]
|
|
156
|
-
}) : /* @__PURE__ */
|
|
157
|
+
}) : /* @__PURE__ */ c("p", {
|
|
157
158
|
className: "text-sm text-text-secondary text-center py-3 bg-bg-sunken/10 rounded-lg border border-dashed border-border-subtle",
|
|
158
|
-
children: "No additional members. Only the vault creator has access."
|
|
159
|
+
children: y("security.accessReview.noAdditionalMembers", "No additional members. Only the vault creator has access.")
|
|
159
160
|
})]
|
|
160
161
|
}, e.id);
|
|
161
162
|
})
|
|
@@ -165,6 +166,6 @@ function _() {
|
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
//#endregion
|
|
168
|
-
export {
|
|
169
|
+
export { v as AccessReviewPage };
|
|
169
170
|
|
|
170
171
|
//# sourceMappingURL=AccessReviewPage.js.map
|