Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit efb130c5ed5f71db3ea4dca6400f61714ac249e0 1 parent 30e72a4
@jtriley authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  starcluster/exception.py
View
1  starcluster/exception.py
@@ -239,6 +239,7 @@ def create_config(self):
cfg_file = open(self.cfg, 'w')
cfg_file.write(config.config_template)
cfg_file.close()
+ os.chmod(self.cfg, 0600)
log.info("Config template written to %s" % self.cfg)
log.info("Please customize the config template")
Please sign in to comment.
Something went wrong with that request. Please try again.