Skip to content

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

fix: fail on Schema generation for analytics Right now, when we fail on schema generation, we end up with no schema at all and no error messages. This leaves hex pretty much down, and we sometimes don't know why it's down. This will help us catch this issue in Gamma; therefore, we should never see it in prod or any of the Dedicated Instances.

Maidul Islam1239fd2ebac4
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.ts
index 5754e6da16..4d1e1a67f6 100644
--- a/backend/src/lib/config/env.ts
+++ b/backend/src/lib/config/env.ts
@@ -142,6 +142,9 @@ const envSchema = z
GENERATE_SANITIZED_SCHEMA: zodStrBool
.default("false")
.describe("Generate sanitized schema with views after migrations"),
+ FAIL_ON_SANITIZED_SCHEMA_ERROR: zodStrBool
+ .default("false")
+ .describe("Exit startup when sanitized schema generation fails"),
SANITIZED_SCHEMA_ROLE: zpStr(
z.string().describe("PostgreSQL role to grant read access to the sanitized schema").optional()
),