Browse files

config: use chmod 600 when writing config template

Updated exception.ConfigNotFound.create_config to call chmod 600 after
writing the config template. This makes it so that only the owner of the
file can view its contents which is important given that the config
template will eventually contain AWS security credentials.

closes gh-144
  • Loading branch information...
jtriley committed Jan 4, 2013
1 parent 30e72a4 commit efb130c5ed5f71db3ea4dca6400f61714ac249e0
Showing with 1 addition and 0 deletions.
  1. +1 −0 starcluster/
@@ -239,6 +239,7 @@ def create_config(self):
cfg_file = open(self.cfg, 'w')
+ os.chmod(self.cfg, 0600)"Config template written to %s" % self.cfg)"Please customize the config template")

0 comments on commit efb130c

Please sign in to comment.