|
|
@ -2,6 +2,7 @@ import { FC, useMemo, useRef } from 'react'; |
|
|
|
|
|
|
|
|
|
|
|
import Divider from '../Divider'; |
|
|
|
import Divider from '../Divider'; |
|
|
|
import FlexBox from '../FlexBox'; |
|
|
|
import FlexBox from '../FlexBox'; |
|
|
|
|
|
|
|
import Link from '../Link'; |
|
|
|
import List from '../List'; |
|
|
|
import List from '../List'; |
|
|
|
import MessageBox from '../MessageBox'; |
|
|
|
import MessageBox from '../MessageBox'; |
|
|
|
import { ExpandablePanel } from '../Panels'; |
|
|
|
import { ExpandablePanel } from '../Panels'; |
|
|
@ -9,16 +10,9 @@ import { BodyText } from '../Text'; |
|
|
|
import useProtect from '../../hooks/useProtect'; |
|
|
|
import useProtect from '../../hooks/useProtect'; |
|
|
|
import useProtectedState from '../../hooks/useProtectedState'; |
|
|
|
import useProtectedState from '../../hooks/useProtectedState'; |
|
|
|
|
|
|
|
|
|
|
|
type ChangedSSHKeys = { |
|
|
|
const ManageChangedSSHKeysForm: FC<ManageChangedSSHKeysFormProps> = ({ |
|
|
|
[hostUUID: string]: { |
|
|
|
mitmExternalHref = 'https://en.wikipedia.org/wiki/Man-in-the-middle_attack', |
|
|
|
hostName: string; |
|
|
|
}) => { |
|
|
|
hostUUID: string; |
|
|
|
|
|
|
|
ipAddress: string; |
|
|
|
|
|
|
|
isChecked?: boolean; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ManageChangedSSHKeysForm: FC = () => { |
|
|
|
|
|
|
|
const { protect } = useProtect(); |
|
|
|
const { protect } = useProtect(); |
|
|
|
|
|
|
|
|
|
|
|
const listRef = useRef<ListForwardedRefContent>({}); |
|
|
|
const listRef = useRef<ListForwardedRefContent>({}); |
|
|
@ -41,9 +35,16 @@ const ManageChangedSSHKeysForm: FC = () => { |
|
|
|
</BodyText> |
|
|
|
</BodyText> |
|
|
|
<MessageBox type="warning" isAllowClose> |
|
|
|
<MessageBox type="warning" isAllowClose> |
|
|
|
If you haven't rebuilt the listed targets, then you could be |
|
|
|
If you haven't rebuilt the listed targets, then you could be |
|
|
|
experiencing a "Man In The Middle" attack. Please verify the |
|
|
|
experiencing a " |
|
|
|
targets have changed for a known reason before proceeding to remove |
|
|
|
<Link |
|
|
|
the broken keys. |
|
|
|
href={mitmExternalHref} |
|
|
|
|
|
|
|
sx={{ display: 'inline-flex' }} |
|
|
|
|
|
|
|
target="_blank" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Man In The Middle |
|
|
|
|
|
|
|
</Link> |
|
|
|
|
|
|
|
" attack. Please verify the targets have changed for a known |
|
|
|
|
|
|
|
reason before proceeding to remove the broken keys. |
|
|
|
</MessageBox> |
|
|
|
</MessageBox> |
|
|
|
<List |
|
|
|
<List |
|
|
|
header={ |
|
|
|
header={ |
|
|
|