Skip to content

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

Merge branch 'main' into bernie/pam-315-gcp-service-account-access

bernie-g32e1c76dfa2b
diff --cc backend/src/ee/services/pam-session/pam-session-service.ts
index e4e9375ad6,e5d03abdfb..73a96982e4
--- a/backend/src/ee/services/pam-session/pam-session-service.ts
+++ b/backend/src/ee/services/pam-session/pam-session-service.ts
@@@ -8,13 -6,8 +8,13 @@@ import { TPermissionServiceFactory } fr
import { createSshCert, createSshKeyPair } from "@app/ee/services/ssh/ssh-certificate-authority-fns";
import { SshCertType } from "@app/ee/services/ssh/ssh-certificate-authority-types";
import { SshCertKeyAlgorithm } from "@app/ee/services/ssh-certificate/ssh-certificate-types";
-import { BadRequestError, ForbiddenRequestError, NotFoundError } from "@app/lib/errors";
+import { getConfig } from "@app/lib/config/env";
- import { BadRequestError, InternalServerError, NotFoundError } from "@app/lib/errors";
++import { BadRequestError, ForbiddenRequestError, InternalServerError, NotFoundError } from "@app/lib/errors";
+import { GatewayProxyProtocol } from "@app/lib/gateway/types";
+import { createGatewayConnection, createRelayConnection } from "@app/lib/gateway-v2/gateway-v2";
+import { logger } from "@app/lib/logger";
import { ms } from "@app/lib/ms";
+import { buildGcpSourceCredential } from "@app/services/app-connection/gcp/gcp-connection-fns";
import { ActorType } from "@app/services/auth/auth-type";
import { TKmsServiceFactory } from "@app/services/kms/kms-service";
import { KmsDataKey } from "@app/services/kms/kms-types";
@@@ -24,7 -17,8 +24,14 @@@ import { TMfaSessionServiceFactory } fr
import { TOrgDALFactory } from "@app/services/org/org-dal";
import { TUserDALFactory } from "@app/services/user/user-dal";
- import { GcpServiceAccountAuthMethod, PamAccessMethod, PamAccountType, PamSessionStatus } from "../pam/pam-enums";
-import { PamAccessMethod, PamAccessStatus, PamAccountType, PamSessionStatus } from "../pam/pam-enums";
++import {
++ GcpServiceAccountAuthMethod,
++ PamAccessMethod,
++ PamAccessStatus,
++ PamAccountType,
++ PamSessionStatus
++} from "../pam/pam-enums";
+ import { resolveAccountByPath as resolveAccountByPathFn } from "../pam/pam-fns";
import { enforceMfa } from "../pam/pam-mfa";
import {
checkAccountAccess,