From efb761ec88bdf8a02fd9819f0e03ca5ad7cfbddc Mon Sep 17 00:00:00 2001 From: samuel Date: Fri, 12 Apr 2024 16:58:05 +0200 Subject: [PATCH] fix case sensitivity check --- .../src/open-policy-agent/core/open-policy-agent.engine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/policy-engine/src/open-policy-agent/core/open-policy-agent.engine.ts b/apps/policy-engine/src/open-policy-agent/core/open-policy-agent.engine.ts index 98bb8566d..fe5c256a0 100644 --- a/apps/policy-engine/src/open-policy-agent/core/open-policy-agent.engine.ts +++ b/apps/policy-engine/src/open-policy-agent/core/open-policy-agent.engine.ts @@ -166,7 +166,7 @@ export class OpenPolicyAgentEngine implements Engine { } private getCredential(id: string): CredentialEntity | null { - return this.getEntities().credentials.find((cred) => cred.id === id) || null + return this.getEntities().credentials.find((cred) => cred.id.toLowerCase() === id.toLowerCase()) || null } private async opaEvaluate(