Skip to content

Commit

Permalink
fix(core): improve security of mongodb setup script (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddneilson authored May 27, 2021
1 parent e7eddea commit 9148f25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def main():
if not os.path.isdir(storage_path):
raise Exception("ERROR -- {storage_path} is not a directory.".format(storage_path=storage_path))

mongod_conf = yaml.load(sys.stdin)
mongod_conf = yaml.safe_load(sys.stdin)
modify_storage_path(mongod_conf, storage_path)
print(yaml.dump(mongod_conf, default_flow_style=False))

Expand Down

0 comments on commit 9148f25

Please sign in to comment.