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 max ttl param constraint on ssh certificate template creation
Tuan Dang5e7ad5614df5
diff --git a/backend/src/ee/routes/v1/ssh-certificate-template-router.ts b/backend/src/ee/routes/v1/ssh-certificate-template-router.tsindex 233ef6d10f..a7dc55661e 100644--- a/backend/src/ee/routes/v1/ssh-certificate-template-router.ts+++ b/backend/src/ee/routes/v1/ssh-certificate-template-router.ts@@ -92,7 +92,7 @@ export const registerSshCertificateTemplateRouter = async (server: FastifyZodProallowHostCertificates: z.boolean().describe(SSH_CERTIFICATE_TEMPLATES.CREATE.allowHostCertificates),allowCustomKeyIds: z.boolean().describe(SSH_CERTIFICATE_TEMPLATES.CREATE.allowCustomKeyIds)})- .refine((data) => ms(data.maxTTL) > ms(data.ttl), {+ .refine((data) => ms(data.maxTTL) >= ms(data.ttl), {message: "Max TLL must be greater than or equal to TTL",path: ["maxTTL"]}),