Skip to content

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

feat: disabled audit log for cloud due to maintainence mode

=82e3241f1bfc
diff --git a/backend/src/server/routes/v1/organization-router.ts b/backend/src/server/routes/v1/organization-router.ts
index 8170fe04af..9e2f098212 100644
--- a/backend/src/server/routes/v1/organization-router.ts
+++ b/backend/src/server/routes/v1/organization-router.ts
@@ -11,6 +11,8 @@ import {
} from "@app/db/schemas";
import { EventType, UserAgentType } from "@app/ee/services/audit-log/audit-log-types";
import { AUDIT_LOGS, ORGANIZATIONS } from "@app/lib/api-docs";
+import { getConfig } from "@app/lib/config/env";
+import { BadRequestError } from "@app/lib/errors";
import { getLastMidnightDateISO } from "@app/lib/fn";
import { readLimit, writeLimit } from "@app/server/config/rateLimiter";
import { verifyAuth } from "@app/server/plugins/auth/verify-auth";
@@ -143,6 +145,11 @@ export const registerOrgRouter = async (server: FastifyZodProvider) => {
},
onRequest: verifyAuth([AuthMode.JWT]),
handler: async (req) => {
+ const appCfg = getConfig();
+ if (appCfg.isCloud) {
+ throw new BadRequestError({ message: "Infisical cloud audit log is in maintenance mode." });
+ }
+
const auditLogs = await server.services.auditLog.listAuditLogs({
filter: {
...req.query,