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
add unpushed code
Maidul Islame760b427e453
diff --git a/backend/src/auto-start-migrations.ts b/backend/src/auto-start-migrations.tsindex 19448f4a44..eb78825c07 100644--- a/backend/src/auto-start-migrations.ts+++ b/backend/src/auto-start-migrations.ts@@ -297,6 +297,7 @@ const withStartupLock = async (db: Knex, logger: Logger, doMigrations: () => Proexport const runMigrations = async ({ applicationDb, auditLogDb, clickhouseClient, logger }: TArgs) => {const generateSanitizedSchema = process.env.GENERATE_SANITIZED_SCHEMA === "true";+ const failOnSanitizedSchemaError = process.env.FAIL_ON_SANITIZED_SCHEMA_ERROR === "true";try {// akhilmhdh(Feb 10 2025): 2 years from now remove this@@ -369,6 +370,9 @@ export const runMigrations = async ({ applicationDb, auditLogDb, clickhouseClien{ err, errorId: SANITIZED_SCHEMA_ERROR, phase: "recreate" },`${SANITIZED_SCHEMA_ERROR}: Failed to recreate sanitized schema`);+ if (failOnSanitizedSchemaError) {+ throw err;+ }}}return;@@ -424,6 +428,9 @@ export const runMigrations = async ({ applicationDb, auditLogDb, clickhouseClien{ err, errorId: SANITIZED_SCHEMA_ERROR, phase: "create" },`${SANITIZED_SCHEMA_ERROR}: Failed to create sanitized schema after migrations`);+ if (failOnSanitizedSchemaError) {+ throw err;+ }}}} catch (err) {