diff --git a/backend/src/server/routes/sanitizedSchemas.ts b/backend/src/server/routes/sanitizedSchemas.ts index b7ae8302a..ef97d8840 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() });