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 ts
Fang-Pen Lindd5bd35ad405
diff --git a/backend/src/ee/routes/v1/pki-acme-router.ts b/backend/src/ee/routes/v1/pki-acme-router.tsindex 24ae75ff55..e576eb3064 100644--- a/backend/src/ee/routes/v1/pki-acme-router.ts+++ b/backend/src/ee/routes/v1/pki-acme-router.ts@@ -198,9 +198,16 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {},// TODO: replace with verify ACME signature here instead// onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),- handler: async (req) => {- const result = await server.services.pkiAcme.deactivateAcmeAccount(req.params.profileId, req.params.accountId);- return result;+ handler: async (req, res) => {+ return sendAcmeResponse(+ res,+ req.params.profileId,+ await server.services.pkiAcme.deactivateAcmeAccount({+ profileId: req.params.profileId,+ accountId: req.params.accountId,+ payload: req.body+ })+ );}});diff --git a/backend/src/ee/services/pki-acme/pki-acme-service.ts b/backend/src/ee/services/pki-acme/pki-acme-service.tsindex a72ef2b0ff..6f35aa15dc 100644--- a/backend/src/ee/services/pki-acme/pki-acme-service.ts+++ b/backend/src/ee/services/pki-acme/pki-acme-service.ts@@ -303,9 +303,8 @@ export const pkiAcmeServiceFactory = ({return {status: 201,body: {- status: "pending",- // TODO: read config from the profile to get the expiration time instead- expires: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString(),+ status: order.status,+ expires: order.expiresAt.toISOString(),identifiers: order.authorizations.map((auth: TPkiAcmeAuths) => ({type: auth.identifierType,value: auth.identifierValuediff --git a/backend/src/ee/services/pki-acme/pki-acme-types.ts b/backend/src/ee/services/pki-acme/pki-acme-types.tsindex 2a923d1a5e..811d121ad4 100644--- a/backend/src/ee/services/pki-acme/pki-acme-types.ts+++ b/backend/src/ee/services/pki-acme/pki-acme-types.ts@@ -85,11 +85,15 @@ export type TPkiAcmeServiceFactory = {accountId: string;payload: TCreateAcmeOrderPayload;}) => Promise<TAcmeResponse<TCreateAcmeOrderResponse>>;- deactivateAcmeAccount: (- profileId: string,- accountId: string,- body?: TDeactivateAcmeAccountPayload- ) => Promise<TDeactivateAcmeAccountResponse>;+ deactivateAcmeAccount: ({+ profileId,+ accountId,+ payload+ }: {+ profileId: string;+ accountId: string;+ payload?: TDeactivateAcmeAccountPayload;+ }) => Promise<TAcmeResponse<TDeactivateAcmeAccountResponse>>;listAcmeOrders: ({profileId,accountId