From 8d5d611783842d3d67604eca0fa17d24120333c0 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 13 May 2022 17:27:04 +0200 Subject: Config: Store with 600 permissions --- internal/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/config.go b/internal/config.go index a135ac6..0f13165 100644 --- a/internal/config.go +++ b/internal/config.go @@ -31,7 +31,7 @@ func (config *Config) Save(readStruct interface{}) error { if marshalErr != nil { return &ConfigSaveError{Err: marshalErr} } - return ioutil.WriteFile(config.GetFilename(), jsonString, 0o644) + return ioutil.WriteFile(config.GetFilename(), jsonString, 0o600) } func (config *Config) Load(writeStruct interface{}) error { -- cgit v1.2.3