Skip to content

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

misc: display retention settings only for self-hosted/dedicated

Sheen Capadngana1d01d5cbd4e
diff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx
index e4f0a99227..26cf95a4ef 100644
--- a/frontend/src/views/Settings/ProjectSettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx
+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx
@@ -73,6 +73,14 @@ export const AuditLogsRetentionSection = () => {
}
};
+ // render only for dedicated/self-hosted instances of Infisical
+ if (
+ window.location.origin.includes("https://app.infisical.com") ||
+ window.location.origin.includes("https://gamma.infisical.com")
+ ) {
+ return null;
+ }
+
const isAdmin = membership.roles.includes(ProjectMembershipRole.Admin);
return (
<>