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
feat(kmip): show friendly key algorithm names in server cert config UI
bernie-g3aa40c89f12c
diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsxindex 945e079ee2..72c167c3b2 100644--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx@@ -20,12 +20,18 @@ import {Input} from "@app/components/v3";import { useOrganization } from "@app/context";-import { certKeyAlgorithms, isPqcAlgorithm } from "@app/hooks/api/certificates/constants";+import {+ certKeyAlgorithms,+ certKeyAlgorithmToNameMap,+ isPqcAlgorithm+} from "@app/hooks/api/certificates/constants";import { CertKeyAlgorithm } from "@app/hooks/api/certificates/enums";import { useUpdateKmipServer } from "@app/hooks/api/kmipServers";import { TKmipServerWithAuthMethod } from "@app/hooks/api/kmipServers/types";-const keyAlgorithmOptions = certKeyAlgorithms.filter(({ value }) => !isPqcAlgorithm(value));+const keyAlgorithmOptions = certKeyAlgorithms+ .filter(({ value }) => !isPqcAlgorithm(value))+ .map(({ value }) => ({ value, label: certKeyAlgorithmToNameMap[value] }));const schema = z.object({hostnamesOrIps: z.string().trim().min(1, "At least one hostname or IP is required"),diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerDetailsCard/KmipServerDetailsCard.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerDetailsCard/KmipServerDetailsCard.tsxindex ce439eb0d3..c32052a2e9 100644--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerDetailsCard/KmipServerDetailsCard.tsx+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerDetailsCard/KmipServerDetailsCard.tsx@@ -27,6 +27,8 @@ import {OrgPermissionSubjects} from "@app/context/OrgPermissionContext/types";import { useTimedReset } from "@app/hooks";+import { certKeyAlgorithmToNameMap } from "@app/hooks/api/certificates/constants";+import { CertKeyAlgorithm } from "@app/hooks/api/certificates/enums";import {TKmipServerAuthMethodView,TKmipServerWithAuthMethod@@ -133,7 +135,11 @@ export const KmipServerDetailsCard = ({</Detail><Detail><DetailLabel>Key Algorithm</DetailLabel>- <DetailValue>{kmipServer.keyAlgorithm || "RSA_2048"}</DetailValue>+ <DetailValue>+ {certKeyAlgorithmToNameMap[+ (kmipServer.keyAlgorithm as CertKeyAlgorithm) || CertKeyAlgorithm.RSA_2048+ ] ?? kmipServer.keyAlgorithm}+ </DetailValue></Detail></DetailGroup></>diff --git a/frontend/src/pages/organization/KmipServersPage/components/components/KmipServerDeployModal.tsx b/frontend/src/pages/organization/KmipServersPage/components/components/KmipServerDeployModal.tsxindex d5158a6151..372d41f8f2 100644--- a/frontend/src/pages/organization/KmipServersPage/components/components/KmipServerDeployModal.tsx+++ b/frontend/src/pages/organization/KmipServersPage/components/components/KmipServerDeployModal.tsx@@ -15,7 +15,11 @@ import {SelectItem} from "@app/components/v2";import { useOrganization } from "@app/context";-import { certKeyAlgorithms, isPqcAlgorithm } from "@app/hooks/api/certificates/constants";+import {+ certKeyAlgorithms,+ certKeyAlgorithmToNameMap,+ isPqcAlgorithm+} from "@app/hooks/api/certificates/constants";import { CertKeyAlgorithm } from "@app/hooks/api/certificates/enums";import { useCreateKmipServer } from "@app/hooks/api/kmipServers";@@ -170,9 +174,9 @@ export const KmipServerDeployModal = ({ isOpen, onOpenChange }: Props) => {>{certKeyAlgorithms.filter(({ value }) => !isPqcAlgorithm(value))- .map(({ label, value }) => (- <SelectItem value={String(value || "")} key={label}>- {label}+ .map(({ value }) => (+ <SelectItem value={String(value || "")} key={value}>+ {certKeyAlgorithmToNameMap[value]}</SelectItem>))}</Select>