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