Skip to content

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

fix(pam): add max length validation to GCP service account key JSON

bernie-gf3dd3dba0868
diff --git a/backend/src/ee/services/pam-account/pam-account-schemas.ts b/backend/src/ee/services/pam-account/pam-account-schemas.ts
index 76c2bc0b22..67c42bf3f5 100644
--- a/backend/src/ee/services/pam-account/pam-account-schemas.ts
+++ b/backend/src/ee/services/pam-account/pam-account-schemas.ts
@@ -398,7 +398,7 @@ export const ACCOUNT_TYPE_CONFIGS = {
}),
z.object({
authMethod: z.literal("static-key"),
- serviceAccountKeyJson: z.string().trim().min(1)
+ serviceAccountKeyJson: z.string().trim().min(1).max(8192)
})
]),
sanitizedCredentials: z.object({