From f635359ff8464a2267fe579e5243ea6f59825428 Mon Sep 17 00:00:00 2001 From: Reed Allman Date: Wed, 4 Apr 2018 15:41:37 -0700 Subject: [PATCH] loosen perms on bolt mq (#910) the bolt mq file should only be used for local dev and isn't necessarily sensitive, don't think 0655 restriction was necessary and the data isn't likely all that sensitive anyway. see https://github.com/fnproject/fn/issues/404#issuecomment-377570626 --- api/mqs/bolt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/mqs/bolt.go b/api/mqs/bolt.go index 64b89a0a6..2f51b01cd 100644 --- a/api/mqs/bolt.go +++ b/api/mqs/bolt.go @@ -60,7 +60,7 @@ func NewBoltMQ(url *url.URL) (*BoltDbMQ, error) { log.WithError(err).Errorln("Could not create data directory for mq") return nil, err } - db, err := bolt.Open(url.Path, 0655, &bolt.Options{Timeout: 1 * time.Second}) + db, err := bolt.Open(url.Path, 0666, &bolt.Options{Timeout: 1 * time.Second}) if err != nil { log.WithError(err).Errorln("Could not open BoltDB file for MQ") return nil, err