Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update VaultPlatformModal copy.tsx
Daniel Hougaard185cc4efba94
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.tsxindex 3d9755a280..eee9055df8 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,22 +17,24 @@ type Props = {};enum VaultMappingType {- Namespace = "namespace",- KeyVault = "key-vault"+ KeyVault = "key-vault",+ Namespace = "namespace"}const MAPPING_TYPE_MENU_ITEMS = [{- value: VaultMappingType.Namespace,- label: "Namespaces",+ value: VaultMappingType.KeyVault,+ label: "Key Vaults",tooltip: (<div>- When using namespaces for mapping, each namespace within Vault will be created in Infisical- as a project. Each key vault (KV) inside the namespace, will be created as an environment- inside the corresponding project.+ 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.<div className="mt-4 flex flex-col gap-1 text-sm">- <div>Namespace → Project</div>- <div>Key Vault → Project Environment</div>+ <div>Key Vault → Project</div>+ <div>Default Environment (Production)</div><div>Secret Path → Secret Folder</div><div>Secret data → Secrets</div></div>@@ -40,18 +42,16 @@ const MAPPING_TYPE_MENU_ITEMS = [)},{- value: VaultMappingType.KeyVault,- label: "Key Vaults",+ value: VaultMappingType.Namespace,+ label: "Namespaces",tooltip: (<div>- 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.+ When using namespaces for mapping, each namespace within Vault will be created in Infisical+ as a project. Each key vault (KV) inside the namespace, will be created as an environment+ inside the corresponding project.<div className="mt-4 flex flex-col gap-1 text-sm">- <div>Key Vault → Project</div>- <div>Default Environment (Production)</div>+ <div>Namespace → Project</div>+ <div>Key Vault → Project Environment</div><div>Secret Path → Secret Folder</div><div>Secret data → Secrets</div></div>@@ -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<typeof formSchema>;@@ -111,8 +111,7 @@ export const VaultPlatformModal = ({ onClose }: Props) => {<NoticeBannerV2 title="Vault KV Secret Engine Import" className="mb-4"><p className="text-sm">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.<div className="mt-2 text-xs opacity-80">Currently only KV Secret Engine V2 is supported for Vault migrations.</div>@@ -164,11 +163,12 @@ export const VaultPlatformModal = ({ onClose }: Props) => {<Controllercontrol={control}name="mappingType"- defaultValue={VaultMappingType.Namespace}+ defaultValue={VaultMappingType.KeyVault}render={({ field, fieldState: { error } }) => (<FormControl- label="Mapping Type"+ label="Project Mapping"isError={Boolean(error)}+ isRequirederrorText={error?.message}className="flex-1">