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
fix: updated length validation
Sheen Capadngan428bb462351d
diff --git a/backend/src/server/routes/v1/certificate-router.ts b/backend/src/server/routes/v1/certificate-router.tsindex b7b0b83b22..43d55b4d1d 100644--- a/backend/src/server/routes/v1/certificate-router.ts+++ b/backend/src/server/routes/v1/certificate-router.ts@@ -37,7 +37,7 @@ type CertificateServiceResponse = TCertificateIssuanceResponse | Omit<TCertifica// Subject attributes are the requester's own certificate fields and flow into a structured// distinguished name (no string concatenation), so there's no injection risk. We don't constrain// their format here (wildcards like *.example.com are valid); only bound the length.-const subjectAttributeField = z.string().trim().max(256);+const subjectAttributeField = z.string().trim().max(255);const extractCertificateData = (data: CertificateServiceResponse