fix: Restrict JWT key file permissions to 0600

This commit is contained in:
vgoer committed 2026-08-24 09:30:22 +00:00
1 parent ab893706da
commit 29687987b2
1 file changed
+1 -1
+1 -1
View File
@@ -145,7 +145,7 @@ const generateKeys = () => {
// Write keys config // Write keys config
try { try {
fs.writeFileSync(keysFile, JSON.stringify(keys, null, 2)); fs.writeFileSync(keysFile, JSON.stringify(keys, null, 2), { mode: 0o600 });
} catch (err) { } catch (err) {
logger.error(`Could not write JWT key pair to config file: ${keysFile}: ${err.message}`); logger.error(`Could not write JWT key pair to config file: ${keysFile}: ${err.message}`);
process.exit(1); process.exit(1);