Skip to content

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

Well... mark as invalid

Fang-Pen Line33a314600d5
diff --git a/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts b/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts
index 26dc65aaf8..d2c4e52b59 100644
--- a/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts
+++ b/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts
@@ -77,7 +77,7 @@ export const pkiAcmeChallengeServiceFactory = ({
await acmeChallengeDAL.markAsValidCascadeById(challengeId, tx);
} catch (error) {
// TODO: we should retry the challenge validation a few times, but let's keep it simple for now
- await acmeChallengeDAL.markAsValidCascadeById(challengeId, tx);
+ await acmeChallengeDAL.markAsInvalidCascadeById(challengeId, tx);
// Properly type and inspect the error
if (error instanceof TypeError && error.message.includes("fetch failed")) {
const cause = error.cause as AggregateError;