fix(config): set default anon-access to read-only

Ayman Bagabas created

Change summary

config/config.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

config/config.go 🔗

@@ -96,10 +96,11 @@ func NewConfig(cfg *config.Config) (*Config, error) {
 	c.Host = cfg.Host
 	c.Port = port
 	c.Source = rs
+	// Grant read-write access when no keys are provided.
 	if len(pks) == 0 {
 		anonAccess = "read-write"
 	} else {
-		anonAccess = "no-access"
+		anonAccess = "read-only"
 	}
 	if host == "" {
 		displayHost = "localhost"