From fdbbe08d6b168d5699daf4e0d941a75c825b8405 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 17 Nov 2022 17:22:52 -0500 Subject: [PATCH] fix(config): set default anon-access to read-only --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 1928bdbf513429008e38468b929dc28e7327d8d0..7046a52b71320b70ae02ead37877ce65b0441846 100644 --- a/config/config.go +++ b/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"