Skip to content

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

misc: addressed type issue with date fields

Sheen Capadnganef9269fe1002
diff --git a/backend/src/server/routes/sanitizedSchemas.ts b/backend/src/server/routes/sanitizedSchemas.ts
index b7ae8302a0..ef97d8840b 100644
--- a/backend/src/server/routes/sanitizedSchemas.ts
+++ b/backend/src/server/routes/sanitizedSchemas.ts
@@ -275,7 +275,12 @@ export const SanitizedTagSchema = SecretTagsSchema.pick({
});
export const InternalCertificateAuthorityResponseSchema = CertificateAuthoritiesSchema.merge(
- InternalCertificateAuthoritiesSchema
+ InternalCertificateAuthoritiesSchema.omit({
+ notAfter: true,
+ notBefore: true
+ })
).extend({
- requireTemplateForIssuance: z.boolean().optional()
+ requireTemplateForIssuance: z.boolean().optional(),
+ notAfter: z.string().optional(),
+ notBefore: z.string().optional()
});