mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Restrict read/write file paths access (#6582)
This commit is contained in:
@@ -482,6 +482,18 @@ export const schema = {
|
||||
},
|
||||
|
||||
security: {
|
||||
restrictFileAccessTo: {
|
||||
doc: 'If set only files in that directories can be accessed. Multiple directories can be separated by semicolon (";").',
|
||||
format: String,
|
||||
default: '',
|
||||
env: 'N8N_RESTRICT_FILE_ACCESS_TO',
|
||||
},
|
||||
blockFileAccessToN8nFiles: {
|
||||
doc: 'If set to true it will block access to all files in the ".n8n" directory and user defined config files.',
|
||||
format: Boolean,
|
||||
default: true,
|
||||
env: 'N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES',
|
||||
},
|
||||
audit: {
|
||||
daysAbandonedWorkflow: {
|
||||
doc: 'Days for a workflow to be considered abandoned if not executed',
|
||||
|
||||
Reference in New Issue
Block a user