diff --git a/striker-ui/components/ManageFence/ManageFencePanel.tsx b/striker-ui/components/ManageFence/ManageFencePanel.tsx index efa60324..212d181a 100644 --- a/striker-ui/components/ManageFence/ManageFencePanel.tsx +++ b/striker-ui/components/ManageFence/ManageFencePanel.tsx @@ -3,6 +3,7 @@ import { FC, FormEventHandler, ReactElement, + ReactNode, useMemo, useRef, useState, @@ -267,9 +268,28 @@ const ManageFencePanel: FC = () => { {fenceName} - {Object.entries(fenceParameters).reduce( - (previous, [parameterId, parameterValue]) => - `${previous} ${parameterId}="${parameterValue}"`, + {Object.entries(fenceParameters).reduce( + (previous, [parameterId, parameterValue]) => { + let current: ReactNode = <>{parameterId}="; + + current = /passw/i.test(parameterId) ? ( + <> + {current} + {parameterValue} + + ) : ( + <> + {current} + {parameterValue} + + ); + + return ( + <> + {previous} {current}" + + ); + }, fenceAgent, )}