Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: addressed feedback

Sheen Capadnganb2b87e1c21f3
diff --git a/backend/src/ee/routes/v1/kmip-router.ts b/backend/src/ee/routes/v1/kmip-router.ts
index f9f33d775f..e991bfe309 100644
--- a/backend/src/ee/routes/v1/kmip-router.ts
+++ b/backend/src/ee/routes/v1/kmip-router.ts
@@ -291,7 +291,7 @@ export const registerKmipRouter = async (server: FastifyZodProvider) => {
.object({
keyAlgorithm: z.nativeEnum(CertKeyAlgorithm).optional(),
ttl: z.string().refine((val) => ms(val) > 0, "TTL must be a positive number"),
- csr: z.string().trim().min(1, "CSR cannot be empty").optional()
+ csr: z.string().trim().min(1, "CSR cannot be empty").max(4096).optional()
})
.refine((data) => data.csr || data.keyAlgorithm, {
message: "Either csr or keyAlgorithm must be provided"
diff --git a/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx b/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx
index 1a01238334..91523757fc 100644
--- a/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx
+++ b/frontend/src/pages/kms/KmipPage/components/CreateKmipClientCertificateModal.tsx
@@ -313,7 +313,7 @@ export const CreateKmipClientCertificateModal = ({
}: Props) => {
return (
<Modal isOpen={isOpen} onOpenChange={onOpenChange}>
- <ModalContent title="Generate KMIP client certificate">
+ <ModalContent title="KMIP client certificate">
<KmipClientCertificateForm
onComplete={() => onOpenChange(false)}
displayNewClientCertificate={displayNewClientCertificate}