From d9cb536518b188e81762bb71099e7ddf85e9f9bd Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Sat, 5 Nov 2016 20:50:56 -0500 Subject: [PATCH] Add security warning --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index c3cd91e..444a908 100644 --- a/main.go +++ b/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() }