mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-23 16:31:48 -04:00
stricter permissions on shared state file since it now contains a password
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user