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
feat(security): add alert for hardware security key compatibility issues
Victor Hugo dos Santos2ff75ccc96c5
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsxindex b10e1eaeb2..5da2831e62 100644--- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx+++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/PasskeyManagerDialog.tsx@@ -1,8 +1,10 @@import { useState } from "react";-import { FingerprintIcon, PlusIcon, TrashIcon } from "lucide-react";+import { FingerprintIcon, PlusIcon, TrashIcon, TriangleAlertIcon } from "lucide-react";import { ContentLoader } from "@app/components/v2";import {+ Alert,+ AlertDescription,AlertDialog,AlertDialogAction,AlertDialogCancel,@@ -11,6 +13,7 @@ import {AlertDialogFooter,AlertDialogHeader,AlertDialogTitle,+ AlertTitle,Button,Input,Sheet,@@ -44,6 +47,17 @@ export const PasskeyManagerDialog = ({ isOpen, onOpenChange }: Props) => {}};+ // Hardware security keys registered before the server pinned ES256/RS256 may hold an+ // EdDSA credential that some instances (FIPS mode) cannot verify at sign-in. We can't+ // inspect the credential's algorithm client-side, so surface a soft notice whenever a+ // security-key credential is present. Platform and phone passkeys always report+ // "internal"/"hybrid" transports and are unaffected.+ const hasSecurityKeyCredential = credentials.some(+ (credential) =>+ !credential.transports?.length ||+ !credential.transports.some((transport) => transport === "internal" || transport === "hybrid")+ );+// Removing weakens a login second factor, so it goes through the step-up MFA// challenge; the confirm dialog stays open until the challenge completes and the// removal succeeds.@@ -77,6 +91,20 @@ export const PasskeyManagerDialog = ({ isOpen, onOpenChange }: Props) => {</Button></div>+ {hasSecurityKeyCredential && (+ <Alert variant="warning">+ <TriangleAlertIcon />+ <AlertTitle>Using a hardware security key?</AlertTitle>+ <AlertDescription>+ <p>+ Previously added security keys (like YubiKey) may use a signing algorithm that+ fails two-factor authentication on some instances. If signing in with your+ security key fails, remove it here and add it again.+ </p>+ </AlertDescription>+ </Alert>+ )}+{isPending ? (<ContentLoader />) : (