Skip to content

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

fix: remove unreachable profile guard in cert renewal

bernie-g6637d8c8abb2
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.ts b/backend/src/services/certificate-v3/certificate-v3-service.ts
index 568ade7598..fdec21d490 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.ts
@@ -2333,11 +2333,8 @@ export const certificateV3ServiceFactory = ({
const projectId = profile?.projectId || originalCert.projectId;
if (originalCert.applicationId) {
- if (!profile) {
- throw new NotFoundError({ message: "Certificate profile not found" });
- }
await $resolveApplicationIdForProfile(
- profile,
+ profile!,
originalCert.applicationId,
{
actor,