Skip to content

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

warnings on old screens

Matheus Nogueira71e7771517cd
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/OrgProductSettingsTab.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/OrgProductSettingsTab.tsx
index b0517e303b..b3ac381cbe 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/OrgProductSettingsTab.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/OrgProductSettingsTab.tsx
@@ -1,8 +1,31 @@
+import { Link } from "@tanstack/react-router";
+import { InfoIcon } from "lucide-react";
+
+import { Alert, AlertDescription, AlertTitle } from "@app/components/v3";
+import { useOrganization } from "@app/context";
+
import { OrgCertManagerTab } from "../OrgCertManagerTab";
export const OrgProductSettingsTab = () => {
+ const { currentOrg } = useOrganization();
+
return (
<div className="flex flex-col gap-4">
+ <Alert variant="info">
+ <InfoIcon />
+ <AlertTitle>Secrets Management Settings Have Moved</AlertTitle>
+ <AlertDescription className="inline">
+ Secrets management configurations now live under{" "}
+ <Link
+ to="/organizations/$orgId/projects/secret-management/product-settings"
+ params={{ orgId: currentOrg.id }}
+ className="inline underline hover:opacity-80"
+ >
+ Secret Management Product Settings
+ </Link>
+ .
+ </AlertDescription>
+ </Alert>
<OrgCertManagerTab />
</div>
);
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx
index 5082fc3252..5345dd6488 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgTabGroup/OrgTabGroup.tsx
@@ -134,17 +134,6 @@ export const OrgTabGroup = () => {
</Link>
.
</p>
- <p>
- Secrets management configurations have moved to{" "}
- <Link
- to="/organizations/$orgId/projects/secret-management/product-settings"
- params={{ orgId: currentOrg.id }}
- className="underline hover:opacity-80"
- >
- Product Settings
- </Link>
- .
- </p>
</AlertDescription>
</Alert>
)}
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/ProjectTemplatesTab.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/ProjectTemplatesTab.tsx
index 016c1439c5..53c8726f0c 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/ProjectTemplatesTab.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/ProjectTemplatesTab.tsx
@@ -1,9 +1,39 @@
-import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context";
+import { Link } from "@tanstack/react-router";
+import { InfoIcon } from "lucide-react";
+
+import { Alert, AlertDescription, AlertTitle } from "@app/components/v3";
+import { OrgPermissionActions, OrgPermissionSubjects, useOrganization } from "@app/context";
import { withPermission } from "@app/hoc";
import { ProjectTemplatesSection } from "./components";
-export const ProjectTemplatesTab = withPermission(() => <ProjectTemplatesSection />, {
- action: OrgPermissionActions.Read,
- subject: OrgPermissionSubjects.ProjectTemplates
-});
+export const ProjectTemplatesTab = withPermission(
+ () => {
+ const { currentOrg } = useOrganization();
+
+ return (
+ <div className="flex flex-col gap-4">
+ <Alert variant="info">
+ <InfoIcon />
+ <AlertTitle>Secret Management Templates Have Moved</AlertTitle>
+ <AlertDescription className="inline">
+ Secret management templates are now defined under{" "}
+ <Link
+ to="/organizations/$orgId/projects/secret-management/product-settings"
+ params={{ orgId: currentOrg.id }}
+ className="inline underline hover:opacity-80"
+ >
+ Secret Management Product Settings
+ </Link>
+ .
+ </AlertDescription>
+ </Alert>
+ <ProjectTemplatesSection />
+ </div>
+ );
+ },
+ {
+ action: OrgPermissionActions.Read,
+ subject: OrgPermissionSubjects.ProjectTemplates
+ }
+);
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx
index 97cceb0407..e14007498b 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplateDetailsModal.tsx
@@ -44,10 +44,6 @@ type FormProps = {
};
const PROJECT_TYPE_MENU_ITEMS = [
- {
- label: "Secrets Management",
- value: ProjectType.SecretManager
- },
{
label: "KMS",
value: ProjectType.KMS
@@ -76,7 +72,7 @@ const ProjectTemplateForm = ({ onComplete, projectTemplate }: FormProps) => {
defaultValues: {
name: projectTemplate?.name,
description: projectTemplate?.description,
- type: projectTemplate?.type ?? ProjectType.SecretManager
+ type: projectTemplate?.type ?? ProjectType.KMS
}
});
@@ -114,7 +110,7 @@ const ProjectTemplateForm = ({ onComplete, projectTemplate }: FormProps) => {
<Controller
control={control}
name="type"
- defaultValue={ProjectType.SecretManager}
+ defaultValue={ProjectType.KMS}
render={({ field, fieldState: { error } }) => (
<FormControl
label="Project Type"
diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx
index a642ab16cf..001356ca9e 100644
--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesTable.tsx
@@ -26,6 +26,7 @@ import { OrgPermissionActions, OrgPermissionSubjects, useSubscription } from "@a
import { getProjectTitle } from "@app/helpers/project";
import { usePopUp } from "@app/hooks";
import { TProjectTemplate, useListProjectTemplates } from "@app/hooks/api/projectTemplates";
+import { ProjectType } from "@app/hooks/api/projects/types";
import { DeleteProjectTemplateModal } from "./DeleteProjectTemplateModal";
@@ -46,8 +47,10 @@ export const ProjectTemplatesTable = ({ onEdit }: Props) => {
const filteredTemplates = useMemo(
() =>
- projectTemplates?.filter((template) =>
- template.name.toLowerCase().includes(search.toLowerCase().trim())
+ projectTemplates?.filter(
+ (template) =>
+ template.type !== ProjectType.SecretManager &&
+ template.name.toLowerCase().includes(search.toLowerCase().trim())
) ?? [],
[search, projectTemplates]
);