mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: finalized variable naming
This commit is contained in:
@@ -132,14 +132,14 @@ export const registerCertificateEstRouter = async (server: FastifyZodProvider) =
|
||||
|
||||
server.route({
|
||||
method: "POST",
|
||||
url: "/:certificateAuthorityId/simpleenroll",
|
||||
url: "/:certificateTemplateId/simpleenroll",
|
||||
config: {
|
||||
rateLimit: writeLimit
|
||||
},
|
||||
schema: {
|
||||
body: z.string(),
|
||||
params: z.object({
|
||||
certificateAuthorityId: z.string()
|
||||
certificateTemplateId: z.string()
|
||||
}),
|
||||
response: {
|
||||
200: z.object({})
|
||||
@@ -148,7 +148,7 @@ export const registerCertificateEstRouter = async (server: FastifyZodProvider) =
|
||||
handler: async (req, res) => {
|
||||
const { rawCertificate } = await server.services.certificateAuthority.signCertFromCa({
|
||||
isInternal: true,
|
||||
caId: req.params.certificateAuthorityId,
|
||||
certificateTemplateId: req.params.certificateTemplateId,
|
||||
csr: req.body,
|
||||
altNames: "",
|
||||
ttl: "1h"
|
||||
|
||||
@@ -210,6 +210,7 @@ export const registerCertRouter = async (server: FastifyZodProvider) => {
|
||||
handler: async (req) => {
|
||||
const { certificate, certificateChain, issuingCaCertificate, serialNumber, ca } =
|
||||
await server.services.certificateAuthority.signCertFromCa({
|
||||
isInternal: false,
|
||||
actor: req.permission.type,
|
||||
actorId: req.permission.id,
|
||||
actorAuthMethod: req.permission.authMethod,
|
||||
|
||||
Reference in New Issue
Block a user