Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
minor tweaks
x032205364dd3eb7fe9
diff --git a/frontend/src/pages/pam/PamDiscoveryDetailPage/PamDiscoveryDetailPage.tsx b/frontend/src/pages/pam/PamDiscoveryDetailPage/PamDiscoveryDetailPage.tsxindex c4de517d7c..94163da4ff 100644--- a/frontend/src/pages/pam/PamDiscoveryDetailPage/PamDiscoveryDetailPage.tsx+++ b/frontend/src/pages/pam/PamDiscoveryDetailPage/PamDiscoveryDetailPage.tsx@@ -310,7 +310,7 @@ const RunExpandedContent = ({<div className="flex gap-10">{adEnum && (<div className="flex flex-col gap-1.5">- <span className="text-xs font-medium tracking-wider text-muted uppercase">+ <span className="text-xs font-medium tracking-wider text-label uppercase">AD Enumeration</span><Badge@@ -326,7 +326,7 @@ const RunExpandedContent = ({)}{depScan && (<div className="flex flex-col gap-1.5">- <span className="text-xs font-medium tracking-wider text-muted uppercase">+ <span className="text-xs font-medium tracking-wider text-label uppercase">Dependency Scan</span><Badge@@ -359,7 +359,7 @@ const RunExpandedContent = ({)}{hasMachineErrors && (<div className="flex flex-col gap-1.5">- <span className="text-xs font-medium tracking-wider text-muted uppercase">+ <span className="text-xs font-medium tracking-wider text-label uppercase">Machine Errors</span><div className="mb-0.5 flex items-center gap-2 rounded border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-yellow-400">@@ -376,7 +376,7 @@ const RunExpandedContent = ({className="rounded border border-red-500/30 bg-red-500/10 px-3 py-2 font-mono text-xs"><span className="font-semibold text-foreground">{host}</span>- <span className="ml-2 text-muted">{err}</span>+ <span className="ml-2 whitespace-pre-wrap text-label">{err}</span></div>))}</div>diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsxindex 94d5731634..4f5a8e7e1f 100644--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx@@ -6,8 +6,8 @@ import { twMerge } from "tailwind-merge";import { z } from "zod";import { createNotification } from "@app/components/notifications";-import { FormControl, Input, Modal, ModalContent, Switch } from "@app/components/v2";-import { Button, UnstableIconButton } from "@app/components/v3";+import { FormControl, Input, Modal, ModalContent } from "@app/components/v2";+import { Button, Label, Switch, UnstableIconButton } from "@app/components/v3";import { TPamResource, TPamRotationRule, useUpdatePamResource } from "@app/hooks/api/pam";import { UNCHANGED_PASSWORD_SENTINEL } from "@app/hooks/api/pam/constants";import {@@ -90,78 +90,76 @@ const RuleCard = ({};return (- <div className="rounded-lg border border-border bg-mineshaft-700/30 p-4">- <div className="mb-3 flex items-center justify-between">+ <div className="flex gap-2 rounded-lg border border-border bg-mineshaft-700/30 p-4">+ <div className="flex flex-col gap-2"><div className="flex items-center gap-2">- <span className="text-xl font-medium text-muted">{index + 1}</span>- <span className="text-muted">•</span>+ <span className="mr-1 text-lg font-medium text-muted">{index + 1}</span><Switchid={`rule-enabled-${rule.id}`}- isChecked={rule.enabled}+ checked={rule.enabled}onCheckedChange={(checked) => onUpdate({ enabled: checked })}- className="ml-0 bg-mineshaft-400/80 shadow-inner data-[state=checked]:bg-green/80"- thumbClassName="bg-mineshaft-800"+ variant="project"/>{rule.enabled ? (- <span className="text-sm font-medium text-green">Rotate</span>+ <Label>Rotate</Label>) : (- <span className="text-sm font-medium text-red">Do Not Rotate</span>+ <Label className="opacity-50">Do Not Rotate</Label>)}</div>- <div className="flex items-center gap-1">- <UnstableIconButton variant="ghost" size="xs" onClick={onMoveUp} isDisabled={index === 0}>- <ArrowUpIcon className="size-3.5" />- </UnstableIconButton>- <UnstableIconButton- variant="ghost"- size="xs"- onClick={onMoveDown}- isDisabled={index >= totalRules - 1}- >- <ArrowDownIcon className="size-3.5" />- </UnstableIconButton>- <UnstableIconButton variant="ghost" size="xs" onClick={onDelete}>- <TrashIcon className="size-3.5 text-red" />- </UnstableIconButton>- </div>- </div>-- <div className="grid grid-cols-[1fr_1fr_auto] gap-3">- <div>- <span className="mb-1 block text-xs font-medium text-muted">Rule Name</span>- <Input- value={localName}- onChange={(e) => setLocalName(e.target.value)}- onBlur={handleNameBlur}- placeholder="e.g., Service accounts"- className="h-8 text-sm"- />- </div>- <div>- <span className="mb-1 block text-xs font-medium text-muted">Account Pattern</span>- <Input- value={localPattern}- onChange={(e) => setLocalPattern(e.target.value)}- onBlur={handlePatternBlur}- placeholder="*"- className="h-8 font-mono text-sm"- />- </div>- <div>- <span className="mb-1 block text-xs font-medium text-muted">Interval</span>- <div className="flex items-center gap-1">+ <div className="grid grid-cols-[1fr_1fr_auto] gap-3">+ <div>+ <span className="mb-1 block text-xs font-medium text-muted">Rule Name</span>+ <Input+ value={localName}+ onChange={(e) => setLocalName(e.target.value)}+ onBlur={handleNameBlur}+ placeholder="e.g., Service accounts"+ className="h-8 text-sm"+ />+ </div>+ <div>+ <span className="mb-1 block text-xs font-medium text-muted">Account Pattern</span><Input- value={localInterval}- onChange={(e) => setLocalInterval(e.target.value)}- onBlur={handleIntervalBlur}- className={twMerge("h-8 w-16 text-center text-sm", !rule.enabled && "opacity-50")}- isDisabled={!rule.enabled}- disabled={!rule.enabled}+ value={localPattern}+ onChange={(e) => setLocalPattern(e.target.value)}+ onBlur={handlePatternBlur}+ placeholder="*"+ className="h-8 font-mono text-sm"/>- <span className="text-xs text-muted">days</span>+ </div>+ <div>+ <span className="mb-1 block text-xs font-medium text-muted">Interval</span>+ <div className="flex items-center gap-1">+ <Input+ value={localInterval}+ onChange={(e) => setLocalInterval(e.target.value)}+ onBlur={handleIntervalBlur}+ className={twMerge("h-8 w-16 text-center text-sm", !rule.enabled && "opacity-50")}+ isDisabled={!rule.enabled}+ disabled={!rule.enabled}+ />+ <span className="text-xs text-muted">days</span>+ </div></div></div></div>++ <div className="flex flex-col gap-1">+ <UnstableIconButton variant="ghost" size="xs" onClick={onDelete}>+ <TrashIcon className="text-danger" />+ </UnstableIconButton>+ <UnstableIconButton variant="ghost" size="xs" onClick={onMoveUp} isDisabled={index === 0}>+ <ArrowUpIcon />+ </UnstableIconButton>+ <UnstableIconButton+ variant="ghost"+ size="xs"+ onClick={onMoveDown}+ isDisabled={index >= totalRules - 1}+ >+ <ArrowDownIcon />+ </UnstableIconButton>+ </div></div>);};diff --git a/frontend/src/pages/pam/components/PamDependenciesTable.tsx b/frontend/src/pages/pam/components/PamDependenciesTable.tsxindex 84a700deac..b0ae9e0a29 100644--- a/frontend/src/pages/pam/components/PamDependenciesTable.tsx+++ b/frontend/src/pages/pam/components/PamDependenciesTable.tsx@@ -233,7 +233,7 @@ type PamDependenciesTableProps = {getContextValue: (dep: TDependencyItem) => string | null | undefined;};-const COL_COUNT = 7;+const COL_COUNT = 8;export const PamDependenciesTable = ({dependencies,