From 4e32d0da24e345b3d041612fa08faee0e64027ec Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 16 Mar 2018 14:11:32 -0700 Subject: [PATCH] stricter permissions on shared state file since it now contains a password --- helper/common/shared_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/common/shared_state.go b/helper/common/shared_state.go index 5029bfbab..92ffbaeaf 100644 --- a/helper/common/shared_state.go +++ b/helper/common/shared_state.go @@ -15,7 +15,7 @@ func sharedStateFilename(suffix string) string { } func SetSharedState(key string, value string) error { - return ioutil.WriteFile(sharedStateFilename(key), []byte(value), 0644) + return ioutil.WriteFile(sharedStateFilename(key), []byte(value), 0600) } func RetrieveSharedState(key string) (string, error) {