mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-13 21:29:31 +00:00
feat: initial integration of cert template management
This commit is contained in:
@@ -476,7 +476,11 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
||||
CertificateTemplatesSchema.pick({
|
||||
id: true,
|
||||
name: true
|
||||
})
|
||||
}).merge(
|
||||
z.object({
|
||||
caName: z.string()
|
||||
})
|
||||
)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -16,7 +16,8 @@ export const certificateTemplateDALFactory = (db: TDbClient) => {
|
||||
`${TableName.CertificateTemplate}.caId`
|
||||
)
|
||||
.where(`${TableName.CertificateAuthority}.projectId`, "=", projectId)
|
||||
.select(selectAllTableCols(TableName.CertificateTemplate));
|
||||
.select(selectAllTableCols(TableName.CertificateTemplate))
|
||||
.select(db.ref("friendlyName").as("caName").withSchema(TableName.CertificateAuthority));
|
||||
|
||||
return certTemplates;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user