From 185cc4efba94153c634355c6d02ea82b0f168a59 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 22 Jul 2025 01:50:28 +0400 Subject: [PATCH] Update VaultPlatformModal copy.tsx --- .../components/VaultPlatformModal copy.tsx | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/frontend/src/pages/organization/SettingsPage/components/ImportTab/components/VaultPlatformModal copy.tsx b/frontend/src/pages/organization/SettingsPage/components/ImportTab/components/VaultPlatformModal copy.tsx index 3d9755a28..eee9055df 100644 --- a/frontend/src/pages/organization/SettingsPage/components/ImportTab/components/VaultPlatformModal copy.tsx +++ b/frontend/src/pages/organization/SettingsPage/components/ImportTab/components/VaultPlatformModal copy.tsx @@ -17,11 +17,30 @@ type Props = { }; enum VaultMappingType { - Namespace = "namespace", - KeyVault = "key-vault" + KeyVault = "key-vault", + Namespace = "namespace" } const MAPPING_TYPE_MENU_ITEMS = [ + { + value: VaultMappingType.KeyVault, + label: "Key Vaults", + tooltip: ( +
+ When using key vaults for mapping, each key vault within Vault will be created in Infisical + as a project. Each secret path inside the key vault, will be created as an environment + inside the corresponding project. When using Key Vaults as the project mapping type, a + default environment called "Production" will be created for each project, which + will contain the secrets from the key vault. +
+
Key Vault → Project
+
Default Environment (Production)
+
Secret Path → Secret Folder
+
Secret data → Secrets
+
+
+ ) + }, { value: VaultMappingType.Namespace, label: "Namespaces", @@ -38,25 +57,6 @@ const MAPPING_TYPE_MENU_ITEMS = [ ) - }, - { - value: VaultMappingType.KeyVault, - label: "Key Vaults", - tooltip: ( -
- When using key vaults for mapping, each key vault within Vault will be created in Infisical - as a project. Each secret path inside the key vault, will be created as an environment - inside the corresponding project. When using Key Vaults as the mapping type, a default - environment called "Production" will be created for each project, which will - contain the secrets from the key vault. -
-
Key Vault → Project
-
Default Environment (Production)
-
Secret Path → Secret Folder
-
Secret data → Secrets
-
-
- ) } ]; @@ -65,7 +65,7 @@ export const VaultPlatformModal = ({ onClose }: Props) => { vaultUrl: z.string().min(1), vaultNamespace: z.string().min(1), vaultAccessToken: z.string().min(1), - mappingType: z.nativeEnum(VaultMappingType) + mappingType: z.nativeEnum(VaultMappingType).default(VaultMappingType.KeyVault) }); type TFormData = z.infer; @@ -111,8 +111,7 @@ export const VaultPlatformModal = ({ onClose }: Props) => {

The Vault migration currently supports importing static secrets from Vault - Dedicated/Self-Hosted. Namespaces are treated as projects, Secret Engines are treated as - environments, and secret paths are treated as folders. + Dedicated/Self-Hosted.

Currently only KV Secret Engine V2 is supported for Vault migrations.
@@ -164,11 +163,12 @@ export const VaultPlatformModal = ({ onClose }: Props) => { (