Skip to content

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

fix(cert-manager): evaluate application permissions consistently across actor types

Carlos Monastyrskia763b58901c7
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.ts b/backend/src/services/certificate-v3/certificate-v3-service.ts
index 3851d3617a..29414d4eaa 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.ts
@@ -415,7 +415,6 @@ export const certificateV3ServiceFactory = ({
actorContext.actor !== ActorType.EST_ACCOUNT &&
actorContext.actor !== ActorType.SCEP_ACCOUNT &&
actorContext.actorId &&
- actorContext.actorAuthMethod &&
actorContext.actorOrgId
) {
const { permission } = await permissionService.getResourcePermission({
@@ -424,7 +423,7 @@ export const certificateV3ServiceFactory = ({
projectId: profile.projectId,
resourceType: ResourceType.CertificateApplication,
resourceId: explicit,
- actorAuthMethod: actorContext.actorAuthMethod,
+ actorAuthMethod: actorContext.actorAuthMethod ?? null,
actorOrgId: actorContext.actorOrgId
});
ForbiddenError.from(permission).throwUnlessCan(