@@ -32,7 +32,7 @@ import {
3232import KeywordBadge from "~/components/keywords/KeywordBadge" ;
3333import KeywordContainer from "~/components/keywords/KeywordContainer" ;
3434import ChevronFlippedIcon from "../../../../components/icons/ChevronFlippedIcon" ;
35- import { WarnAlert } from "../../../../components/Alert" ;
35+ import { ErrorAlert , WarnAlert } from "../../../../components/Alert" ;
3636import { Loader } from "../../../../components/Loader" ;
3737import useAppDispatch from "../../../../utils/customHooks/useAppDispatch.hook" ;
3838import useAppSelector from "../../../../utils/customHooks/useAppSelector.hook" ;
@@ -548,16 +548,26 @@ export function DataConnectorMount({
548548 ) }
549549 rules = { { required : true } }
550550 />
551- { ! flatDataConnector . readOnly && (
552- < div className = "mt-1" >
553- < WarnAlert dismissible = { false } >
554- < p className = "mb-0" >
555- You are mounting this storage in read-write mode. If you have
556- read-only access, please select "Read Only" to
557- prevent errors with some storage types.
558- </ p >
559- </ WarnAlert >
560- </ div >
551+ { ! flatDataConnector . readOnly &&
552+ ! hasPasswordFieldWithInput &&
553+ flatDataConnector . visibility === "public" ? (
554+ < ErrorAlert className = "mt-1" dismissible = { false } >
555+ < p className = "mb-0" >
556+ Data security warning: This public and writable data connector
557+ is not protected by a password. Anyone on RenkuLab will be able
558+ to edit the data connected here. Protect your data with a
559+ password, select private visibility, or limit access to
560+ read-only.
561+ </ p >
562+ </ ErrorAlert >
563+ ) : (
564+ < WarnAlert className = "mt-1" dismissible = { false } >
565+ < p className = "mb-0" >
566+ You are mounting this storage in read-write mode. If you have
567+ read-only access, please select "Read Only" to prevent
568+ errors with some storage types.
569+ </ p >
570+ </ WarnAlert >
561571 ) }
562572 < div className = { cx ( "form-text" , "text-muted" ) } >
563573 Select "Read Only" to mount the storage without write
0 commit comments