mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
20 lines
392 B
TypeScript
20 lines
392 B
TypeScript
import z from "zod";
|
|
|
|
import { CertificateTemplatesSchema } from "@app/db/schemas";
|
|
|
|
export const sanitizedCertificateTemplate = CertificateTemplatesSchema.pick({
|
|
id: true,
|
|
caId: true,
|
|
name: true,
|
|
commonName: true,
|
|
subjectAlternativeName: true,
|
|
pkiCollectionId: true,
|
|
ttl: true,
|
|
keyUsages: true
|
|
}).merge(
|
|
z.object({
|
|
projectId: z.string(),
|
|
caName: z.string()
|
|
})
|
|
);
|