From 57735063f735d960b8db6b73ed27437779142191 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 23 Nov 2022 14:12:15 -0500 Subject: [PATCH] fix(striker-ui): add external link to MITM wiki in ManageChangedSSHKeysForm --- .../ManageChangedSSHKeysForm.tsx | 27 ++++++++++--------- .../types/ManageChangedSSHKeysForm.d.ts | 14 ++++++++++ 2 files changed, 28 insertions(+), 13 deletions(-) create mode 100644 striker-ui/types/ManageChangedSSHKeysForm.d.ts diff --git a/striker-ui/components/StrikerConfig/ManageChangedSSHKeysForm.tsx b/striker-ui/components/StrikerConfig/ManageChangedSSHKeysForm.tsx index d6a201e8..d79de74b 100644 --- a/striker-ui/components/StrikerConfig/ManageChangedSSHKeysForm.tsx +++ b/striker-ui/components/StrikerConfig/ManageChangedSSHKeysForm.tsx @@ -2,6 +2,7 @@ import { FC, useMemo, useRef } from 'react'; import Divider from '../Divider'; import FlexBox from '../FlexBox'; +import Link from '../Link'; import List from '../List'; import MessageBox from '../MessageBox'; import { ExpandablePanel } from '../Panels'; @@ -9,16 +10,9 @@ import { BodyText } from '../Text'; import useProtect from '../../hooks/useProtect'; import useProtectedState from '../../hooks/useProtectedState'; -type ChangedSSHKeys = { - [hostUUID: string]: { - hostName: string; - hostUUID: string; - ipAddress: string; - isChecked?: boolean; - }; -}; - -const ManageChangedSSHKeysForm: FC = () => { +const ManageChangedSSHKeysForm: FC = ({ + mitmExternalHref = 'https://en.wikipedia.org/wiki/Man-in-the-middle_attack', +}) => { const { protect } = useProtect(); const listRef = useRef({}); @@ -41,9 +35,16 @@ const ManageChangedSSHKeysForm: FC = () => { If you haven't rebuilt the listed targets, then you could be - experiencing a "Man In The Middle" attack. Please verify the - targets have changed for a known reason before proceeding to remove - the broken keys. + experiencing a " + + Man In The Middle + + " attack. Please verify the targets have changed for a known + reason before proceeding to remove the broken keys.