Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Do not enforce empty payload as some client somehow may not follow it and it's probably not defined in the RFC

Fang-Pen Lind4f15a39318a
diff --git a/backend/src/ee/routes/v1/pki-acme-router.ts b/backend/src/ee/routes/v1/pki-acme-router.ts
index d587900395..1ee6a34861 100644
--- a/backend/src/ee/routes/v1/pki-acme-router.ts
+++ b/backend/src/ee/routes/v1/pki-acme-router.ts
@@ -2,7 +2,6 @@
import { FastifyReply, FastifyRequest } from "fastify";
import { z } from "zod";
-import { AcmeMalformedError } from "@app/ee/services/pki-acme/pki-acme-errors";
import {
AcmeOrderResourceSchema,
CreateAcmeAccountResponseSchema,
@@ -260,9 +259,6 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
const { profileId, accountId, payload } = await validateExistingAccount({
req
});
- if (payload !== "") {
- throw new AcmeMalformedError({ message: "Payload should be empty" });
- }
return sendAcmeResponse(
res,
profileId,
@@ -372,9 +368,6 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
const { profileId, accountId, payload } = await validateExistingAccount({
req
});
- if (payload !== "") {
- throw new AcmeMalformedError({ message: "Payload should be empty" });
- }
res.type("application/pem-certificate-chain");
return sendAcmeResponse(
res,
@@ -406,9 +399,6 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
},
handler: async (req, res) => {
const { profileId, accountId, payload } = await validateExistingAccount({ req });
- if (payload !== "") {
- throw new AcmeMalformedError({ message: "Payload should be empty" });
- }
return sendAcmeResponse(
res,
profileId,