mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Enforce config file permissions on startup (#11328)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
This commit is contained in:
@@ -14,5 +14,8 @@ process.env.N8N_USER_FOLDER = testDir;
|
||||
writeFileSync(
|
||||
join(testDir, '.n8n/config'),
|
||||
JSON.stringify({ encryptionKey: 'test_key', instanceId: '123' }),
|
||||
'utf-8',
|
||||
{
|
||||
encoding: 'utf-8',
|
||||
mode: 0o600,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user