Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fix types
Fang-Pen Lin8aa7594f0351
diff --git a/backend/src/ee/routes/v1/pki-acme-router.ts b/backend/src/ee/routes/v1/pki-acme-router.tsindex 6344809d01..329a381e3c 100644--- a/backend/src/ee/routes/v1/pki-acme-router.ts+++ b/backend/src/ee/routes/v1/pki-acme-router.ts@@ -421,7 +421,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {}});- // POST /api/v1/pki/acme/profiles/<profile_id>/authorizations/<authz_id>/challenges/http-01+ // POST /api/v1/pki/acme/profiles/<profile_id>/authorizations/<authz_id>/challenges/<challenge_id>// Respond to Challenge (RFC 8555 Section 7.5.1)server.route({method: "POST",diff --git a/backend/src/ee/services/pki-acme/pki-acme-service.ts b/backend/src/ee/services/pki-acme/pki-acme-service.tsindex cca7c0957e..d6cf92a480 100644--- a/backend/src/ee/services/pki-acme/pki-acme-service.ts+++ b/backend/src/ee/services/pki-acme/pki-acme-service.ts@@ -388,7 +388,7 @@ export const pkiAcmeServiceFactory = ({// if we do, return the existing orderconst order = await acmeOrderDAL.transaction(async (tx) => {- const account = await acmeAccountDAL.findByProjectIdAndAccountId(profileId, accountId)!;+ const account = (await acmeAccountDAL.findByProjectIdAndAccountId(profileId, accountId))!;const createdOrder = await acmeOrderDAL.create({accountId: account.id,@@ -585,7 +585,7 @@ export const pkiAcmeServiceFactory = ({type: challenge.type,url: buildUrl(profileId, `/authorizations/${authzId}/challenges/${challenge.id}`),status: challenge.status,- token: auth.token+ token: auth.token!};})},