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
feat: increased identity gcp auth cred limit from 255 to respective limits
=7aecaad05068
diff --git a/backend/src/db/migrations/20250205045509_increase-gcp-auth-limit.ts b/backend/src/db/migrations/20250205045509_increase-gcp-auth-limit.tsnew file mode 100644index 0000000000..02f3904d52--- /dev/null+++ b/backend/src/db/migrations/20250205045509_increase-gcp-auth-limit.ts@@ -0,0 +1,36 @@+import { Knex } from "knex";+import { TableName } from "../schemas";++export async function up(knex: Knex): Promise<void> {+ const hasTable = await knex.schema.hasTable(TableName.IdentityGcpAuth);+ const hasAllowedProjectsColumn = await knex.schema.hasColumn(TableName.IdentityGcpAuth, "allowedProjects");+ const hasAllowedServiceAccountsColumn = await knex.schema.hasColumn(+ TableName.IdentityGcpAuth,+ "allowedServiceAccounts"+ );+ const hasAllowedZones = await knex.schema.hasColumn(TableName.IdentityGcpAuth, "allowedZones");+ if (hasTable) {+ await knex.schema.alterTable(TableName.IdentityGcpAuth, (t) => {+ if (hasAllowedProjectsColumn) t.string("allowedProjects", 2500).alter();+ if (hasAllowedServiceAccountsColumn) t.string("allowedServiceAccounts", 5000).alter();+ if (hasAllowedZones) t.string("allowedZones", 2500).alter();+ });+ }+}++export async function down(knex: Knex): Promise<void> {+ const hasTable = await knex.schema.hasTable(TableName.IdentityGcpAuth);+ const hasAllowedProjectsColumn = await knex.schema.hasColumn(TableName.IdentityGcpAuth, "allowedProjects");+ const hasAllowedServiceAccountsColumn = await knex.schema.hasColumn(+ TableName.IdentityGcpAuth,+ "allowedServiceAccounts"+ );+ const hasAllowedZones = await knex.schema.hasColumn(TableName.IdentityGcpAuth, "allowedZones");+ if (hasTable) {+ await knex.schema.alterTable(TableName.IdentityGcpAuth, (t) => {+ if (hasAllowedProjectsColumn) t.string("allowedProjects").alter();+ if (hasAllowedServiceAccountsColumn) t.string("allowedServiceAccounts").alter();+ if (hasAllowedZones) t.string("allowedZones").alter();+ });+ }+}diff --git a/backend/src/db/schemas/identity-gcp-auths.ts b/backend/src/db/schemas/identity-gcp-auths.tsindex 65c7db837d..208058f602 100644--- a/backend/src/db/schemas/identity-gcp-auths.ts+++ b/backend/src/db/schemas/identity-gcp-auths.ts@@ -17,9 +17,9 @@ export const IdentityGcpAuthsSchema = z.object({updatedAt: z.date(),identityId: z.string().uuid(),type: z.string(),- allowedServiceAccounts: z.string(),- allowedProjects: z.string(),- allowedZones: z.string()+ allowedServiceAccounts: z.string().nullable().optional(),+ allowedProjects: z.string().nullable().optional(),+ allowedZones: z.string().nullable().optional()});export type TIdentityGcpAuths = z.infer<typeof IdentityGcpAuthsSchema>;diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex ffabb3cc49..daff35dad9 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -762,9 +762,9 @@ interface AddIdentityGcpAuthEvent {metadata: {identityId: string;type: string;- allowedServiceAccounts: string;- allowedProjects: string;- allowedZones: string;+ allowedServiceAccounts?: string | null;+ allowedProjects?: string | null;+ allowedZones?: string | null;accessTokenTTL: number;accessTokenMaxTTL: number;accessTokenNumUsesLimit: number;@@ -784,9 +784,9 @@ interface UpdateIdentityGcpAuthEvent {metadata: {identityId: string;type?: string;- allowedServiceAccounts?: string;- allowedProjects?: string;- allowedZones?: string;+ allowedServiceAccounts?: string | null;+ allowedProjects?: string | null;+ allowedZones?: string | null;accessTokenTTL?: number;accessTokenMaxTTL?: number;accessTokenNumUsesLimit?: number;