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
Merge branch 'main' into ENG-3802
x032205f498cf9dd810
diff --cc backend/src/ee/services/gateway-v2/gateway-v2-dal.tsindex e19dbe3941,e0e7e582e0..36dd45b17b--- a/backend/src/ee/services/gateway-v2/gateway-v2-dal.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-dal.ts@@@ -10,22 -10,12 +10,17 @@@ export type TGatewayV2DALFactory = Retuexport const gatewayV2DalFactory = (db: TDbClient) => {const orm = ormify(db, TableName.GatewayV2);- const find = async (filter: TFindFilter<TGatewaysV2>, { offset, limit, sort, tx }: TFindOpt<TGatewaysV2> = {}) => {+ const find = async (+ filter: TFindFilter<TGatewaysV2> & { isHeartbeatStale?: boolean },+ { offset, limit, sort, tx }: TFindOpt<TGatewaysV2> = {}+ ) => {try {+ const { isHeartbeatStale, ...regularFilter } = filter;+const query = (tx || db.replicaNode())(TableName.GatewayV2)// eslint-disable-next-line @typescript-eslint/no-misused-promises- .where(buildFindFilter(filter, TableName.GatewayV2))+ .where(buildFindFilter(regularFilter, TableName.GatewayV2)).join(TableName.Identity, `${TableName.Identity}.id`, `${TableName.GatewayV2}.identityId`)- .join(- TableName.IdentityOrgMembership,- `${TableName.IdentityOrgMembership}.identityId`,- `${TableName.GatewayV2}.identityId`- ).select(selectAllTableCols(TableName.GatewayV2)).select(db.ref("name").withSchema(TableName.Identity).as("identityName"));