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
import { AlertTriangle } from "lucide-react";
import { Badge, Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";
import { PamAccountWarning } from "@app/hooks/api/pam";
export const AccountMaskingBadge = ({ warnings }: { warnings: PamAccountWarning[] }) => {
if (!warnings.includes(PamAccountWarning.SessionLogMaskingDegraded)) return null;
return (
<Tooltip>
<TooltipTrigger asChild>
<Badge variant="warning">
<AlertTriangle className="size-3" />
Partial masking
</Badge>
</TooltipTrigger>
<TooltipContent className="max-w-xs">
<p>
This account's template enables built-in detection, but the gateway serving it runs a
version that doesn't support it. Recordings are masked by the template's custom
patterns only until the gateway is upgraded.
</p>
</TooltipContent>
</Tooltip>
);
};