n8n/packages/@n8n/task-runner-python/src/config/security_config.py
Emilia 95a81ed219
feat(core): Add N8N_RUNNERS_ALLOW_TRANSITIVE_IMPORTS for the Python task runner (#33130)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 08:20:12 +00:00

11 lines
222 B
Python

from dataclasses import dataclass
@dataclass
class SecurityConfig:
stdlib_allow: set[str]
external_allow: set[str]
builtins_deny: set[str]
runner_env_deny: bool
allow_transitive_imports: bool = False