Skip to content

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

feat(pam): add rotation enabled badge with RotateCw icon next to account name

Devin AI650d76c61ad0
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
index dc44a779a2..8114cf6443 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
@@ -9,6 +9,7 @@ import {
PencilIcon,
PlusIcon,
RefreshCwIcon,
+ RotateCwIcon,
TrashIcon
} from "lucide-react";
@@ -187,6 +188,9 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
)}
{accounts.map((account) => {
const isAwsIamAccount = resource.resourceType === PamResourceType.AwsIam;
+ const rotationEnabled = !isAwsIamAccount
+ ? (account as { rotationEnabled?: boolean }).rotationEnabled
+ : undefined;
const rotationStatus = !isAwsIamAccount
? (account as { rotationStatus?: string | null }).rotationStatus
: undefined;
@@ -207,6 +211,11 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
<div className="flex flex-col">
<div className="flex items-center gap-3">
<span className="font-medium">{account.name}</span>
+ {rotationEnabled && (
+ <Badge variant="success" isSquare>
+ <RotateCwIcon />
+ </Badge>
+ )}
{lastRotatedAt && (
<Tooltip>
<TooltipTrigger asChild>