Skip to content

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

feat(pam): remove Rotation and Created At columns from resource accounts tab

Devin AI35d2ceb3cbf7
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
index 35b06ca1f6..dc44a779a2 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
@@ -1,6 +1,6 @@
import { useCallback } from "react";
import { useNavigate, useParams } from "@tanstack/react-router";
-import { format, formatDistance } from "date-fns";
+import { formatDistance } from "date-fns";
import {
CheckIcon,
CopyIcon,
@@ -163,22 +163,20 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
<UnstableTableHeader>
<UnstableTableRow>
<UnstableTableHead>Account Name</UnstableTableHead>
- <UnstableTableHead>Rotation</UnstableTableHead>
- <UnstableTableHead>Created</UnstableTableHead>
<UnstableTableHead className="w-5" />
</UnstableTableRow>
</UnstableTableHeader>
<UnstableTableBody>
{isPending && (
<UnstableTableRow>
- <UnstableTableCell colSpan={4} className="text-center text-muted">
+ <UnstableTableCell colSpan={2} className="text-center text-muted">
Loading accounts...
</UnstableTableCell>
</UnstableTableRow>
)}
{!isPending && accounts.length === 0 && (
<UnstableTableRow>
- <UnstableTableCell colSpan={4}>
+ <UnstableTableCell colSpan={2}>
<UnstableEmpty className="border-0 bg-transparent py-8 shadow-none">
<UnstableEmptyHeader>
<UnstableEmptyTitle>No accounts found</UnstableEmptyTitle>
@@ -189,9 +187,6 @@ 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;
@@ -245,20 +240,6 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
)}
</div>
</UnstableTableCell>
- <UnstableTableCell>
- {isAwsIamAccount ? (
- <Badge variant="neutral" className="text-xs">
- N/A
- </Badge>
- ) : (
- <Badge variant={rotationEnabled ? "success" : "neutral"} className="text-xs">
- {rotationEnabled ? "Enabled" : "Disabled"}
- </Badge>
- )}
- </UnstableTableCell>
- <UnstableTableCell className="text-muted">
- {format(new Date(account.createdAt), "MM/dd/yyyy")}
- </UnstableTableCell>
<UnstableTableCell>
<div className="flex items-center gap-2">
{/* Temporarily disable accessing Windows Server accounts */}