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
comments
Fang-Pen Lin4ab3e2cb97c4
diff --git a/backend/src/ee/services/pki-acme/pki-acme-service.ts b/backend/src/ee/services/pki-acme/pki-acme-service.tsindex 49142d5c16..237eb2061f 100644--- a/backend/src/ee/services/pki-acme/pki-acme-service.ts+++ b/backend/src/ee/services/pki-acme/pki-acme-service.ts@@ -158,9 +158,11 @@ export const pkiAcmeServiceFactory = ({const { protectedHeader: rawProtectedHeader, payload: rawPayload } = result;try {const protectedHeader = ProtectedHeaderSchema.parse(rawProtectedHeader);+ // Validate the URLif (new URL(protectedHeader.url).href !== url.href) {throw new AcmeUnauthorizedError({ detail: "URL mismatch in the protected header" });}+ // Consume the nonceif (!protectedHeader.nonce) {throw new AcmeMalformedError({ detail: "Nonce is required in the protected header" });}@@ -169,7 +171,7 @@ export const pkiAcmeServiceFactory = ({throw new AcmeBadNonceError({ detail: "Invalid nonce" });}- // TODO: consume the nonce here+ // Parse the payloadconst decoder = new TextDecoder();const textPayload = decoder.decode(rawPayload);const payload = schema ? schema.parse(JSON.parse(textPayload)) : textPayload;