Skip to content

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

feat: warn users of custom roles plan change

Daniel Hougaard36ca23bc800d
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx
index 4b960c35cf..8d64525757 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx
@@ -11,6 +11,7 @@ import {
SearchIcon,
ServerIcon,
TrashIcon,
+ TriangleAlertIcon,
WrenchIcon
} from "lucide-react";
import { twMerge } from "tailwind-merge";
@@ -30,6 +31,9 @@ import {
Tooltip,
TooltipContent,
TooltipTrigger,
+ UnstableAlert,
+ UnstableAlertDescription,
+ UnstableAlertTitle,
UnstableCard,
UnstableCardAction,
UnstableCardContent,
@@ -69,6 +73,7 @@ import { usePagination, usePopUp, useResetPageHelper } from "@app/hooks";
import { useDeleteOrgRole, useGetOrgRoles, useUpdateOrg } from "@app/hooks/api";
import { OrderByDirection } from "@app/hooks/api/generic/types";
import { TOrgRole } from "@app/hooks/api/roles/types";
+import { SubscriptionPlanTypes } from "@app/hooks/api/subscriptions/types";
import { DuplicateOrgRoleModal } from "@app/pages/organization/RoleByIDPage/components/DuplicateOrgRoleModal";
import { RoleModal } from "@app/pages/organization/RoleByIDPage/components/RoleModal";
@@ -195,8 +200,36 @@ export const OrgRoleTable = () => {
const filteredRolesPage = filteredRoles.slice(offset, perPage * page);
+ const isProPlan =
+ Boolean(subscription) &&
+ subscription.rbac &&
+ [SubscriptionPlanTypes.Pro, SubscriptionPlanTypes.ProAnnual].includes(subscription.slug);
+
+ const customRoles = filteredRoles.filter((role) => isCustomOrgRole(role.slug));
+
return (
<>
+ {/* TODO(custom-roles): Remove this banner after 2026-06-01 when custom roles are removed from Pro plan */}
+ {isProPlan && customRoles?.length > 0 && (
+ <UnstableAlert variant="warning" className="mb-4">
+ <TriangleAlertIcon />
+ <UnstableAlertTitle>Custom roles are moving to Enterprise plans</UnstableAlertTitle>
+ <UnstableAlertDescription>
+ <div>
+ Custom roles will require an Enterprise plan starting June 1, 2026. Please{" "}
+ <a
+ href="https://infisical.com/scheduledemo"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline underline-offset-2"
+ >
+ contact sales
+ </a>{" "}
+ to upgrade and retain access to custom roles.
+ </div>
+ </UnstableAlertDescription>
+ </UnstableAlert>
+ )}
<UnstableCard>
<UnstableCardHeader>
<UnstableCardTitle>
diff --git a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
index 44ed739c35..b5a4132a4f 100644
--- a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
@@ -10,6 +10,7 @@ import {
SearchIcon,
ServerIcon,
TrashIcon,
+ TriangleAlertIcon,
WrenchIcon
} from "lucide-react";
import { twMerge } from "tailwind-merge";
@@ -25,6 +26,9 @@ import {
InputGroupAddon,
InputGroupInput,
Skeleton,
+ UnstableAlert,
+ UnstableAlertDescription,
+ UnstableAlertTitle,
UnstableCard,
UnstableCardAction,
UnstableCardContent,
@@ -48,7 +52,12 @@ import {
UnstableTableHeader,
UnstableTableRow
} from "@app/components/v3";
-import { ProjectPermissionActions, ProjectPermissionSub, useProject } from "@app/context";
+import {
+ ProjectPermissionActions,
+ ProjectPermissionSub,
+ useProject,
+ useSubscription
+} from "@app/context";
import { getProjectBaseURL } from "@app/helpers/project";
import { isCustomProjectRole } from "@app/helpers/roles";
import {
@@ -60,6 +69,7 @@ import { usePagination, usePopUp, useResetPageHelper } from "@app/hooks";
import { useDeleteProjectRole, useGetProjectRoles } from "@app/hooks/api";
import { OrderByDirection } from "@app/hooks/api/generic/types";
import { ProjectMembershipRole, TProjectRole } from "@app/hooks/api/roles/types";
+import { SubscriptionPlanTypes } from "@app/hooks/api/subscriptions/types";
import { DuplicateProjectRoleModal } from "@app/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal";
import { RoleModal } from "@app/pages/project/RoleDetailsBySlugPage/components/RoleModal";
@@ -82,6 +92,7 @@ export const ProjectRoleList = () => {
const { data: roles, isPending: isRolesLoading } = useGetProjectRoles(projectId);
const { mutateAsync: deleteRole } = useDeleteProjectRole();
+ const { subscription } = useSubscription();
const handleRoleDelete = async () => {
const { id } = popUp?.deleteRole?.data as TProjectRole;
@@ -165,8 +176,48 @@ export const ProjectRoleList = () => {
const filteredRolesPage = filteredRoles.slice(offset, perPage * page);
+ const isProPlan =
+ Boolean(subscription) &&
+ subscription.rbac &&
+ [SubscriptionPlanTypes.Pro, SubscriptionPlanTypes.ProAnnual].includes(subscription.slug);
+
+ const customRoles = filteredRoles.filter((role) => isCustomProjectRole(role.slug));
+
return (
<>
+ {/* TODO(custom-roles): Remove this banner after 2026-06-01 when custom roles are removed from Pro plan */}
+ {isProPlan && customRoles?.length > 0 && (
+ <UnstableAlert variant="warning" className="mb-4">
+ <TriangleAlertIcon />
+ <UnstableAlertTitle>Custom roles are moving to Enterprise plans</UnstableAlertTitle>
+ <UnstableAlertDescription>
+ <div>
+ Custom roles will require an Enterprise plan starting June 1, 2026.
+ <br />
+ You can use{" "}
+ <a
+ href="https://infisical.com/docs/documentation/platform/access-controls/additional-privileges"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline underline-offset-2"
+ >
+ additional privileges
+ </a>{" "}
+ as an alternative, or{" "}
+ <a
+ href="https://infisical.com/scheduledemo"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline underline-offset-2"
+ >
+ contact sales
+ </a>{" "}
+ to upgrade and retain access to custom roles.
+ </div>
+ </UnstableAlertDescription>
+ </UnstableAlert>
+ )}
+
<UnstableCard>
<UnstableCardHeader>
<UnstableCardTitle>