Skip to content

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

fix: add bypass for instance relay heartbeat

Sheen Capadngan0bf26d4fa21d
diff --git a/backend/src/server/plugins/auth/inject-identity.ts b/backend/src/server/plugins/auth/inject-identity.ts
index b33f2fbe6f..9de15cd346 100644
--- a/backend/src/server/plugins/auth/inject-identity.ts
+++ b/backend/src/server/plugins/auth/inject-identity.ts
@@ -138,6 +138,11 @@ export const injectIdentity = fp(
return;
}
+ // Authentication is handled on a route-level
+ if (req.url === "/api/v1/relays/heartbeat-instance-relay") {
+ return;
+ }
+
// Authentication is handled on a route-level here.
if (req.url.includes("/api/v1/workflow-integrations/microsoft-teams/message-endpoint")) {
return;