Skip to content

Commit

Permalink
keep the secrets file mode 600
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com>
  • Loading branch information
fetep authored and lloyd committed Oct 25, 2011
1 parent f5be965 commit c03fa0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/secrets.js
Expand Up @@ -57,6 +57,8 @@ exports.hydrateSecret = function(name, dir) {

if (secret === undefined) {
secret = exports.generate(128);
fs.writeFileSync(p, '');
fs.chmodSync(p, 0600);
fs.writeFileSync(p, secret);
}
return secret;
Expand Down

0 comments on commit c03fa0a

Please sign in to comment.