diff --git a/storage/v1/stream_store.go b/storage/v1/stream_store.go index 8801676..9ec8e99 100644 --- a/storage/v1/stream_store.go +++ b/storage/v1/stream_store.go @@ -94,7 +94,7 @@ func (ss *streamStore) updateFile() error { return err } - ioutil.WriteFile(path.Join(ss.storeDirectory, fmt.Sprintf("%s.%d", ss.filenameBase, 0)), encryptedMsgs, 0700) + ioutil.WriteFile(path.Join(ss.storeDirectory, fmt.Sprintf("%s.%d", ss.filenameBase, 0)), encryptedMsgs, 0600) return nil }