Skip to content

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

Fix missing tx in sign cert flow

Carlos Monastyrski6772eb547834
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.ts b/backend/src/services/certificate-v3/certificate-v3-service.ts
index 1c888a6e5b..fd3b85e765 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.ts
@@ -1207,7 +1207,7 @@ export const certificateV3ServiceFactory = ({
tx
});
- const signedCertRecord = await certificateDAL.findById(certResult.certificateId);
+ const signedCertRecord = await certificateDAL.findById(certResult.certificateId, tx);
if (!signedCertRecord) {
throw new NotFoundError({ message: "Certificate was signed but could not be found in database" });
}