Skip to content

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

feat: refactor project settings

varonix0748585b1b67c
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/submenus.ts b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/submenus.ts
index 68befe50af..249579dc34 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/submenus.ts
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/submenus.ts
@@ -9,6 +9,7 @@ import {
HardDrive,
IdCardLanyard,
Key,
+ Layers,
Lock,
MapPin,
Plug,
@@ -16,6 +17,7 @@ import {
Search,
Server,
Shield,
+ Tag,
User,
Users,
Video,
@@ -67,7 +69,9 @@ export const SM_SETTINGS_SUBMENU: Submenu = {
defaultTab: "tab-project-general",
items: [
{ label: "General", icon: Cog, tab: "tab-project-general" },
- { label: "Secrets Management", icon: FileKey, tab: "tab-secret-general" },
+ { label: "Environments", icon: Layers, tab: "tab-secret-environments" },
+ { label: "Tags", icon: Tag, tab: "tab-secret-tags" },
+ { label: "Policies", icon: Shield, tab: "tab-secret-policies" },
{ label: "Encryption", icon: Lock, tab: "tab-project-encryption" },
{ label: "Workflow Integrations", icon: Plug, tab: "tab-workflow-integrations" },
{ label: "Webhooks", icon: Webhook, tab: "tab-project-webhooks" }
diff --git a/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx b/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
index 83cc691561..82f8bff6de 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/SettingsPage.tsx
@@ -10,7 +10,9 @@ import { ProjectType, ProjectVersion } from "@app/hooks/api/projects/types";
import { ProjectGeneralTab } from "@app/pages/project/SettingsPage/components/ProjectGeneralTab";
import { EncryptionTab } from "./components/EncryptionTab";
-import { SecretSettingsTab } from "./components/ProjectGeneralTab";
+import { EnvironmentsTab } from "./components/EnvironmentsTab";
+import { PoliciesTab } from "./components/PoliciesTab";
+import { TagsTab } from "./components/TagsTab";
import { WebhooksTab } from "./components/WebhooksTab";
import { WorkflowIntegrationTab } from "./components/WorkflowIntegrationSection";
@@ -31,11 +33,24 @@ export const SettingsPage = () => {
Component: ProjectGeneralTab
},
{
- name: "Secrets Management",
+ name: "Environments",
description:
- "Configure environments, secret tags, validation rules, and other secret behaviors.",
- key: "tab-secret-general",
- Component: SecretSettingsTab
+ "Define the environments your secrets live in, such as development, staging, and production.",
+ key: "tab-secret-environments",
+ Component: EnvironmentsTab
+ },
+ {
+ name: "Tags",
+ description: "Organize secrets with tags to make them easier to find and govern.",
+ key: "tab-secret-tags",
+ Component: TagsTab
+ },
+ {
+ name: "Policies",
+ description:
+ "Configure validation rules, retention, sharing, and other behaviors that govern this project's secrets.",
+ key: "tab-secret-policies",
+ Component: PoliciesTab
},
{
name: "Encryption",
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/AutoCapitalizationSection/AutoCapitalizationSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/AutoCapitalizationSection/AutoCapitalizationSection.tsx
deleted file mode 100644
index 94839a5257..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/AutoCapitalizationSection/AutoCapitalizationSection.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-import { useTranslation } from "react-i18next";
-
-import { createNotification } from "@app/components/notifications";
-import { ProjectPermissionCan } from "@app/components/permissions";
-import {
- Card,
- CardAction,
- CardDescription,
- CardHeader,
- CardTitle,
- Switch
-} from "@app/components/v3";
-import { ProjectPermissionActions, ProjectPermissionSub, useProject } from "@app/context";
-import { useUpdateProject } from "@app/hooks/api";
-
-export const AutoCapitalizationSection = () => {
- const { t } = useTranslation();
-
- const { currentProject } = useProject();
- const { mutateAsync } = useUpdateProject();
-
- const handleToggleCapitalizationToggle = async (state: boolean) => {
- if (!currentProject?.id) return;
-
- await mutateAsync({
- projectId: currentProject.id,
- autoCapitalization: state
- });
-
- const text = `Successfully ${state ? "enabled" : "disabled"} auto capitalization`;
- createNotification({
- text,
- type: "success"
- });
- };
-
- return (
- <Card className="mb-6">
- <CardHeader>
- <CardTitle>{t("settings.project.enforce-capitalization")}</CardTitle>
- <CardDescription>
- {t("settings.project.enforce-capitalization-description")}
- </CardDescription>
- <CardAction>
- <ProjectPermissionCan I={ProjectPermissionActions.Edit} a={ProjectPermissionSub.Settings}>
- {(isAllowed) => (
- <Switch
- id="autoCapitalization"
- variant="project"
- checked={currentProject?.autoCapitalization ?? false}
- disabled={!isAllowed}
- onCheckedChange={(state) => {
- handleToggleCapitalizationToggle(state);
- }}
- />
- )}
- </ProjectPermissionCan>
- </CardAction>
- </CardHeader>
- </Card>
- );
-};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/AutoCapitalizationSection/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/AutoCapitalizationSection/index.tsx
deleted file mode 100644
index 38a5917017..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/AutoCapitalizationSection/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { AutoCapitalizationSection } from "./AutoCapitalizationSection";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/BackfillSecretReferenceSection/BackfillSecretReferenceSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/BackfillSecretReferenceSection/BackfillSecretReferenceSection.tsx
deleted file mode 100644
index 12b0321a3d..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/BackfillSecretReferenceSection/BackfillSecretReferenceSection.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import { createNotification } from "@app/components/notifications";
-import {
- Button,
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle
-} from "@app/components/v3";
-import { useProject, useProjectPermission } from "@app/context";
-import { useBackfillSecretReference } from "@app/hooks/api";
-import { ProjectMembershipRole } from "@app/hooks/api/roles/types";
-
-export const BackfillSecretReferenceSecretion = () => {
- const { currentProject } = useProject();
- const { hasProjectRole } = useProjectPermission();
- const backfillSecretReferences = useBackfillSecretReference();
-
- if (!currentProject) return null;
-
- const handleBackfill = async () => {
- if (backfillSecretReferences.isPending) return;
- await backfillSecretReferences.mutateAsync({ projectId: currentProject.id || "" });
- createNotification({ text: "Successfully re-indexed secret references", type: "success" });
- };
-
- const isAdmin = hasProjectRole(ProjectMembershipRole.Admin);
- return (
- <Card className="mb-6">
- <CardHeader>
- <CardTitle>Index Secret References</CardTitle>
- <CardDescription>
- This will index all secret references, enabling integrations to be triggered when their
- values change going forward. This happens automatically when secrets are created or
- updated.
- </CardDescription>
- </CardHeader>
- <CardContent>
- <Button
- variant="outline"
- isPending={backfillSecretReferences.isPending}
- onClick={handleBackfill}
- isDisabled={!isAdmin}
- >
- Index Secret References
- </Button>
- </CardContent>
- </Card>
- );
-};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/BackfillSecretReferenceSection/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/BackfillSecretReferenceSection/index.tsx
deleted file mode 100644
index 3e16514613..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/BackfillSecretReferenceSection/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { BackfillSecretReferenceSecretion } from "./BackfillSecretReferenceSection";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnforceEncryptedMetadataSection/EnforceEncryptedMetadataSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnforceEncryptedMetadataSection/EnforceEncryptedMetadataSection.tsx
deleted file mode 100644
index 090368cc68..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/EnforceEncryptedMetadataSection/EnforceEncryptedMetadataSection.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { createNotification } from "@app/components/notifications";
-import { ProjectPermissionCan } from "@app/components/permissions";
-import {
- Card,
- CardAction,
- CardDescription,
- CardHeader,
- CardTitle,
- Switch
-} from "@app/components/v3";
-import { ProjectPermissionActions, ProjectPermissionSub, useProject } from "@app/context";
-import { useUpdateProject } from "@app/hooks/api";
-
-export const EnforceEncryptedMetadataSection = () => {
- const { currentProject } = useProject();
- const { mutateAsync } = useUpdateProject();
-
- const handleToggle = async (state: boolean) => {
- if (!currentProject?.id) return;
-
- await mutateAsync({
- projectId: currentProject.id,
- enforceEncryptedSecretManagerSecretMetadata: state
- });
-
- const text = `Successfully ${state ? "enabled" : "disabled"} enforced encrypted metadata`;
- createNotification({
- text,
- type: "success"
- });
- };
-
- return (
- <Card className="mb-6">
- <CardHeader>
- <CardTitle>Enforce Encrypted Metadata</CardTitle>
- <CardDescription>
- When enabled, secrets in this project can only have encrypted metadata. Unencrypted
- metadata fields will be rejected.
- </CardDescription>
- <CardAction>
- <ProjectPermissionCan I={ProjectPermissionActions.Edit} a={ProjectPermissionSub.Settings}>
- {(isAllowed) => (
- <Switch
- id="enforceEncryptedMetadata"
- variant="project"
- checked={currentProject?.enforceEncryptedSecretManagerSecretMetadata ?? false}
- disabled={!isAllowed}
- onCheckedChange={(state) => {
- handleToggle(state);
- }}
- />
- )}
- </ProjectPermissionCan>
- </CardAction>
- </CardHeader>
- </Card>
- );
-};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnforceEncryptedMetadataSection/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnforceEncryptedMetadataSection/index.tsx
deleted file mode 100644
index 67c404cc97..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/EnforceEncryptedMetadataSection/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { EnforceEncryptedMetadataSection } from "./EnforceEncryptedMetadataSection";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentsTab/EnvironmentsTab.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentsTab/EnvironmentsTab.tsx
new file mode 100644
index 0000000000..c4feb703c1
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentsTab/EnvironmentsTab.tsx
@@ -0,0 +1,9 @@
+import { EnvironmentSection } from "../EnvironmentSection";
+
+export const EnvironmentsTab = () => {
+ return (
+ <div>
+ <EnvironmentSection />
+ </div>
+ );
+};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentsTab/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentsTab/index.tsx
new file mode 100644
index 0000000000..0848401817
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentsTab/index.tsx
@@ -0,0 +1 @@
+export { EnvironmentsTab } from "./EnvironmentsTab";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/PoliciesTab/PoliciesTab.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/PoliciesTab/PoliciesTab.tsx
new file mode 100644
index 0000000000..2cfc613191
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/PoliciesTab/PoliciesTab.tsx
@@ -0,0 +1,19 @@
+import { useServerConfig } from "@app/context";
+
+import { PointInTimeVersionLimitSection } from "../PointInTimeVersionLimitSection";
+import { PreferencesSection } from "../PreferencesSection";
+import { SecretDetectionIgnoreValuesSection } from "../SecretDetectionIgnoreValuesSection/SecretDetectionIgnoreValuesSection";
+import { SecretValidationRulesSection } from "../SecretValidationRulesSection";
+
+export const PoliciesTab = () => {
+ const { config } = useServerConfig();
+
+ return (
+ <div>
+ <SecretValidationRulesSection />
+ <PreferencesSection />
+ <PointInTimeVersionLimitSection />
+ {config.paramsFolderSecretDetectionEnabled && <SecretDetectionIgnoreValuesSection />}
+ </div>
+ );
+};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/PoliciesTab/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/PoliciesTab/index.tsx
new file mode 100644
index 0000000000..21ff460c0f
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/PoliciesTab/index.tsx
@@ -0,0 +1 @@
+export { PoliciesTab } from "./PoliciesTab";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/PreferencesSection/PreferencesSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/PreferencesSection/PreferencesSection.tsx
new file mode 100644
index 0000000000..9e2c6b1ac1
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/PreferencesSection/PreferencesSection.tsx
@@ -0,0 +1,134 @@
+import { useTranslation } from "react-i18next";
+
+import { createNotification } from "@app/components/notifications";
+import { ProjectPermissionCan } from "@app/components/permissions";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Field,
+ FieldContent,
+ FieldDescription,
+ FieldGroup,
+ FieldTitle,
+ Switch
+} from "@app/components/v3";
+import { ProjectPermissionActions, ProjectPermissionSub, useProject } from "@app/context";
+import { useUpdateProject } from "@app/hooks/api";
+
+export const PreferencesSection = () => {
+ const { t } = useTranslation();
+ const { currentProject } = useProject();
+ const { mutateAsync } = useUpdateProject();
+
+ const notify = (state: boolean, label: string) =>
+ createNotification({
+ text: `Successfully ${state ? "enabled" : "disabled"} ${label}`,
+ type: "success"
+ });
+
+ const handleToggleAutoCapitalization = async (state: boolean) => {
+ if (!currentProject?.id) return;
+ await mutateAsync({ projectId: currentProject.id, autoCapitalization: state });
+ notify(state, "auto capitalization");
+ };
+
+ const handleToggleEnforceEncryptedMetadata = async (state: boolean) => {
+ if (!currentProject?.id) return;
+ await mutateAsync({
+ projectId: currentProject.id,
+ enforceEncryptedSecretManagerSecretMetadata: state
+ });
+ notify(state, "enforced encrypted metadata");
+ };
+
+ const handleToggleSecretSharing = async (state: boolean) => {
+ if (!currentProject?.id) return;
+ await mutateAsync({ projectId: currentProject.id, secretSharing: state });
+ notify(state, "secret sharing for this project");
+ };
+
+ return (
+ <Card className="mb-6">
+ <CardHeader>
+ <CardTitle>Preferences</CardTitle>
+ <CardDescription>
+ Choose how secrets are formatted, stored, and shared in this project.
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <FieldGroup>
+ <Field orientation="horizontal">
+ <FieldContent>
+ <FieldTitle>{t("settings.project.enforce-capitalization")}</FieldTitle>
+ <FieldDescription>
+ {t("settings.project.enforce-capitalization-description")}
+ </FieldDescription>
+ </FieldContent>
+ <ProjectPermissionCan
+ I={ProjectPermissionActions.Edit}
+ a={ProjectPermissionSub.Settings}
+ >
+ {(isAllowed) => (
+ <Switch
+ id="autoCapitalization"
+ variant="project"
+ checked={currentProject?.autoCapitalization ?? false}
+ disabled={!isAllowed}
+ onCheckedChange={handleToggleAutoCapitalization}
+ />
+ )}
+ </ProjectPermissionCan>
+ </Field>
+ <Field orientation="horizontal">
+ <FieldContent>
+ <FieldTitle>Enforce Encrypted Metadata</FieldTitle>
+ <FieldDescription>
+ When enabled, secrets in this project can only have encrypted metadata. Unencrypted
+ metadata fields will be rejected.
+ </FieldDescription>
+ </FieldContent>
+ <ProjectPermissionCan
+ I={ProjectPermissionActions.Edit}
+ a={ProjectPermissionSub.Settings}
+ >
+ {(isAllowed) => (
+ <Switch
+ id="enforceEncryptedMetadata"
+ variant="project"
+ checked={currentProject?.enforceEncryptedSecretManagerSecretMetadata ?? false}
+ disabled={!isAllowed}
+ onCheckedChange={handleToggleEnforceEncryptedMetadata}
+ />
+ )}
+ </ProjectPermissionCan>
+ </Field>
+ <Field orientation="horizontal">
+ <FieldContent>
+ <FieldTitle>Allow Secret Sharing</FieldTitle>
+ <FieldDescription>
+ Let project members securely share secrets with each other.
+ </FieldDescription>
+ </FieldContent>
+ <ProjectPermissionCan
+ I={ProjectPermissionActions.Edit}
+ a={ProjectPermissionSub.Settings}
+ >
+ {(isAllowed) => (
+ <Switch
+ id="secretSharing"
+ variant="project"
+ checked={currentProject?.secretSharing ?? true}
+ disabled={!isAllowed}
+ onCheckedChange={handleToggleSecretSharing}
+ />
+ )}
+ </ProjectPermissionCan>
+ </Field>
+ </FieldGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/PreferencesSection/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/PreferencesSection/index.tsx
new file mode 100644
index 0000000000..b09b8db774
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/PreferencesSection/index.tsx
@@ -0,0 +1 @@
+export { PreferencesSection } from "./PreferencesSection";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/ProjectGeneralTab/ProjectGeneralTab.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/ProjectGeneralTab/ProjectGeneralTab.tsx
deleted file mode 100644
index 3e0ee0f760..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/ProjectGeneralTab/ProjectGeneralTab.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import { useServerConfig } from "@app/context";
-
-import { AutoCapitalizationSection } from "../AutoCapitalizationSection";
-import { BackfillSecretReferenceSecretion } from "../BackfillSecretReferenceSection";
-import { EnforceEncryptedMetadataSection } from "../EnforceEncryptedMetadataSection";
-import { EnvironmentSection } from "../EnvironmentSection";
-import { PointInTimeVersionLimitSection } from "../PointInTimeVersionLimitSection";
-import { SecretDetectionIgnoreValuesSection } from "../SecretDetectionIgnoreValuesSection/SecretDetectionIgnoreValuesSection";
-import { SecretSharingSection } from "../SecretSharingSection";
-import { SecretSnapshotsLegacySection } from "../SecretSnapshotsLegacySection";
-import { SecretTagsSection } from "../SecretTagsSection";
-import { SecretValidationRulesSection } from "../SecretValidationRulesSection";
-
-export const SecretSettingsTab = () => {
- const { config } = useServerConfig();
-
- return (
- <div>
- <EnvironmentSection />
- <SecretTagsSection />
- <SecretValidationRulesSection />
- <AutoCapitalizationSection />
- <EnforceEncryptedMetadataSection />
- <SecretSharingSection />
- <SecretSnapshotsLegacySection />
- <PointInTimeVersionLimitSection />
- {config.paramsFolderSecretDetectionEnabled && <SecretDetectionIgnoreValuesSection />}
- <BackfillSecretReferenceSecretion />
- </div>
- );
-};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/ProjectGeneralTab/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/ProjectGeneralTab/index.tsx
deleted file mode 100644
index b32882dbe5..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/ProjectGeneralTab/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { SecretSettingsTab } from "./ProjectGeneralTab";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx
deleted file mode 100644
index c21e6ba913..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/SecretSharingSection.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import { useState } from "react";
-
-import { createNotification } from "@app/components/notifications";
-import { ProjectPermissionCan } from "@app/components/permissions";
-import {
- Card,
- CardAction,
- CardDescription,
- CardHeader,
- CardTitle,
- Switch
-} from "@app/components/v3";
-import { ProjectPermissionActions, ProjectPermissionSub, useProject } from "@app/context";
-import { useUpdateProject } from "@app/hooks/api/projects/queries";
-
-export const SecretSharingSection = () => {
- const { currentProject } = useProject();
- const { mutateAsync: updateProject } = useUpdateProject();
-
- const [isLoading, setIsLoading] = useState(false);
-
- const handleToggle = async (state: boolean) => {
- setIsLoading(true);
-
- if (!currentProject?.id) {
- setIsLoading(false);
- return;
- }
-
- try {
- await updateProject({
- projectId: currentProject.id,
- secretSharing: state
- });
-
- createNotification({
- text: `Successfully ${state ? "enabled" : "disabled"} secret sharing for this project`,
- type: "success"
- });
- } finally {
- setIsLoading(false);
- }
- };
-
- return (
- <Card className="mb-6">
- <CardHeader>
- <CardTitle>Allow Secret Sharing</CardTitle>
- <CardDescription>
- This feature enables your project members to securely share secrets.
- </CardDescription>
- <CardAction>
- <ProjectPermissionCan I={ProjectPermissionActions.Edit} a={ProjectPermissionSub.Settings}>
- {(isAllowed) => (
- <Switch
- id="secretSharing"
- variant="project"
- checked={currentProject?.secretSharing ?? true}
- disabled={!isAllowed || isLoading}
- onCheckedChange={(state) => handleToggle(state)}
- />
- )}
- </ProjectPermissionCan>
- </CardAction>
- </CardHeader>
- </Card>
- );
-};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/index.tsx
deleted file mode 100644
index 716cc511ed..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSharingSection/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { SecretSharingSection } from "./SecretSharingSection";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSnapshotsLegacySection/SecretSnapshotsLegacySection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretSnapshotsLegacySection/SecretSnapshotsLegacySection.tsx
deleted file mode 100644
index da2bdecd0d..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSnapshotsLegacySection/SecretSnapshotsLegacySection.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import { useState } from "react";
-
-import { createNotification } from "@app/components/notifications";
-import { ProjectPermissionCan } from "@app/components/permissions";
-import {
- Card,
- CardAction,
- CardDescription,
- CardHeader,
- CardTitle,
- Switch
-} from "@app/components/v3";
-import { ProjectPermissionActions, ProjectPermissionSub, useProject } from "@app/context";
-import { useUpdateProject } from "@app/hooks/api/projects/queries";
-
-export const SecretSnapshotsLegacySection = () => {
- const { currentProject } = useProject();
- const { mutateAsync: updateProject } = useUpdateProject();
-
- const [isLoading, setIsLoading] = useState(false);
-
- const handleToggle = async (state: boolean) => {
- setIsLoading(true);
-
- try {
- if (!currentProject?.id) {
- setIsLoading(false);
- return;
- }
-
- await updateProject({
- projectId: currentProject.id,
- showSnapshotsLegacy: state
- });
-
- createNotification({
- text: `Successfully ${state ? "enabled" : "disabled"} secret snapshots legacy for this project`,
- type: "success"
- });
- } finally {
- setIsLoading(false);
- }
- };
-
- return (
- <Card className="mb-6">
- <CardHeader>
- <CardTitle>Show Secret Snapshots (legacy)</CardTitle>
- <CardDescription>
- This feature enables your project members to view secret snapshots in the legacy format.
- </CardDescription>
- <CardAction>
- <ProjectPermissionCan I={ProjectPermissionActions.Edit} a={ProjectPermissionSub.Settings}>
- {(isAllowed) => (
- <Switch
- id="showSnapshotsLegacy"
- variant="project"
- checked={currentProject?.showSnapshotsLegacy ?? false}
- disabled={!isAllowed || isLoading}
- onCheckedChange={(state) => handleToggle(state)}
- />
- )}
- </ProjectPermissionCan>
- </CardAction>
- </CardHeader>
- </Card>
- );
-};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSnapshotsLegacySection/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretSnapshotsLegacySection/index.tsx
deleted file mode 100644
index 2ad1242cd5..0000000000
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretSnapshotsLegacySection/index.tsx
+++ /dev/null
@@ -1 +0,0 @@
-export { SecretSnapshotsLegacySection } from "./SecretSnapshotsLegacySection";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/TagsTab/TagsTab.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/TagsTab/TagsTab.tsx
new file mode 100644
index 0000000000..989c5bf47f
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/TagsTab/TagsTab.tsx
@@ -0,0 +1,9 @@
+import { SecretTagsSection } from "../SecretTagsSection";
+
+export const TagsTab = () => {
+ return (
+ <div>
+ <SecretTagsSection />
+ </div>
+ );
+};
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/TagsTab/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/TagsTab/index.tsx
new file mode 100644
index 0000000000..9fc00ad437
--- /dev/null
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/TagsTab/index.tsx
@@ -0,0 +1 @@
+export { TagsTab } from "./TagsTab";
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/index.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/index.tsx
index 067aba19d0..e559716c7c 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/index.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/index.tsx
@@ -1,6 +1,4 @@
-export { AutoCapitalizationSection } from "./AutoCapitalizationSection";
-export { BackfillSecretReferenceSecretion } from "./BackfillSecretReferenceSection";
-export { EnforceEncryptedMetadataSection } from "./EnforceEncryptedMetadataSection";
export { EnvironmentSection } from "./EnvironmentSection";
+export { PreferencesSection } from "./PreferencesSection";
export { SecretTagsSection } from "./SecretTagsSection";
export { SecretValidationRulesSection } from "./SecretValidationRulesSection";