Add security warning
This commit is contained in:
parent
8f90ec4173
commit
d9cb536518
9
main.go
9
main.go
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user