Skip to content

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

feat(identity-aws-auth): increase allowedAccountIds column size to 2048

Devin AIb69881fec7d4
diff --git a/backend/src/db/migrations/20260502134832_increase-aws-account-ids-field-size.ts b/backend/src/db/migrations/20260502134832_increase-aws-account-ids-field-size.ts
new file mode 100644
index 0000000000..40a58483ea
--- /dev/null
+++ b/backend/src/db/migrations/20260502134832_increase-aws-account-ids-field-size.ts
@@ -0,0 +1,21 @@
+import { Knex } from "knex";
+
+import { TableName } from "../schemas";
+
+export async function up(knex: Knex): Promise<void> {
+ const hasColumn = await knex.schema.hasColumn(TableName.IdentityAwsAuth, "allowedAccountIds");
+ if (hasColumn) {
+ await knex.schema.alterTable(TableName.IdentityAwsAuth, (t) => {
+ t.string("allowedAccountIds", 2048).notNullable().alter();
+ });
+ }
+}
+
+export async function down(knex: Knex): Promise<void> {
+ const hasColumn = await knex.schema.hasColumn(TableName.IdentityAwsAuth, "allowedAccountIds");
+ if (hasColumn) {
+ await knex.schema.alterTable(TableName.IdentityAwsAuth, (t) => {
+ t.string("allowedAccountIds", 255).notNullable().alter();
+ });
+ }
+}