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
fix test
adilsoneb4a4aee8d5e
diff --git a/backend/src/services/delegated-approval-decision/delegated-approval-decision-service.ts b/backend/src/services/delegated-approval-decision/delegated-approval-decision-service.tsindex 7e1abe5322..4f59237f44 100644--- a/backend/src/services/delegated-approval-decision/delegated-approval-decision-service.ts+++ b/backend/src/services/delegated-approval-decision/delegated-approval-decision-service.ts@@ -10,7 +10,10 @@ import {DelegatedApprovalPolicyType,DelegatedApprovalRequestStatus} from "@app/services/delegated-approval/delegated-approval-enums";-import { isApprovalRequestExpired } from "@app/services/delegated-approval/delegated-approval-guards";+import {+ getDelegatedApprovalConnectionError,+ isApprovalRequestExpired+} from "@app/services/delegated-approval/delegated-approval-guards";import {DELEGATED_APPROVAL_FINAL_STATE,DELEGATED_APPROVAL_NAME_MAP,@@ -263,8 +266,13 @@ export const delegatedApprovalDecisionServiceFactory = ({}const rawConnection = await appConnectionDAL.findById(delegatedPolicy.connectionId);- if (!rawConnection) {- return $terminal(context, "The policy's App Connection was not found.");+ const connectionError = getDelegatedApprovalConnectionError({+ rawConnection,+ delegatedPolicy,+ organizationId: approvalRequest.organizationId+ });+ if (connectionError || !rawConnection) {+ return $terminal(context, connectionError ?? "The policy's App Connection was not found.");}const providerName = context.delegatedApprovalType;