Add security warning

This commit is contained in:
Dan Sosedoff 2016-11-05 20:50:56 -05:00
parent 8f90ec4173
commit d9cb536518

View File

@ -64,6 +64,15 @@ func initOptions() {
os.Exit(0)
}
if options.ReadOnly {
msg := `------------------------------------------------------
SECURITY WARNING: You are running pgweb in read-only mode.
This mode is designed for environments where users could potentially delete / change data.
For proper read-only access please follow postgresql role management documentation.
------------------------------------------------------`
fmt.Println(msg)
}
printVersion()
}