Skip to content

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

Merge origin/pam-revamp into bernie/pam-315-gcp-service-account-access

bernie-g8609c6d4034a
diff --cc .infisicalignore
index a9cb5743a1,a9cb5743a1..b1e9c0dcc7
--- a/.infisicalignore
+++ b/.infisicalignore
@@@ -65,3 -65,3 +65,4 @@@ backend/src/ee/services/honey-token/hon
docs/integrations/app-connections/ovh.mdx:private-key:84
docs/integrations/app-connections/datadog.mdx:generic-api-key:161
++docs/integrations/app-connections/qovery.mdx:generic-api-key:96
diff --cc backend/src/ee/services/pam-account/pam-account-schemas.ts
index 3df04ce76d,a46f8aa7db..35c6c85ad1
--- a/backend/src/ee/services/pam-account/pam-account-schemas.ts
+++ b/backend/src/ee/services/pam-account/pam-account-schemas.ts
@@@ -630,8 -595,8 +656,10 @@@ export const extractGatewayTarget = asy
host: (validated as { hosts: string[]; rdpPort: number }).hosts[0],
port: (validated as { hosts: string[]; rdpPort: number }).rdpPort
};
+ case PamAccountType.GcpIam:
+ return { host: "googleapis.com", port: 443 };
+ case PamAccountType.AwsIam:
+ throw new Error("AWS IAM accounts do not use gateway routing");
default:
throw new Error(`No gateway target extraction defined for account type '${accountType}'`);
}
diff --cc backend/src/ee/services/pam-session/pam-session-service.ts
index 832b2364e5,e8b01bf039..89ed72b601
--- a/backend/src/ee/services/pam-session/pam-session-service.ts
+++ b/backend/src/ee/services/pam-session/pam-session-service.ts
@@@ -1,5 -1,5 +1,6 @@@
+import { Impersonated, JWT } from "google-auth-library";
import net from "net";
+ import RE2 from "re2";
import { TGatewayPoolServiceFactory } from "@app/ee/services/gateway-pool/gateway-pool-service";
import { TGatewayV2ServiceFactory } from "@app/ee/services/gateway-v2/gateway-v2-service";