fdbbe08d6b168d5699daf4e0d941a75c825b8405
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
fix(config): set default anon-access to read-only
Diff
1diff --git a/config/config.go b/config/config.go
2index 1928bdbf513429008e38468b929dc28e7327d8d0..7046a52b71320b70ae02ead37877ce65b0441846 100644
3--- a/config/config.go
4+++ b/config/config.go
5@@ -96,10 +96,11 @@ func NewConfig(cfg *config.Config) (*Config, error) {
6 c.Host = cfg.Host
7 c.Port = port
8 c.Source = rs
9+ // Grant read-write access when no keys are provided.
10 if len(pks) == 0 {
11 anonAccess = "read-write"
12 } else {
13- anonAccess = "no-access"
14+ anonAccess = "read-only"
15 }
16 if host == "" {
17 displayHost = "localhost"