-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/security env vars config #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…to Docker Compose files - Add N8N_BLOCK_ENV_ACCESS_IN_NODE=true to docker-compose.yml for enhanced security - Add N8N_ENV_ACCESS_ALLOWED with ASSEMBLY_USER and ASSEMBLY_PASS to docker-compose.prod.yml - Add ASSEMBLY_USER and ASSEMBLY_PASS environment variables to both compose files
…nodes - Remove invalid N8N_ENV_ACCESS_ALLOWED configuration from docker-compose.prod.yml - Set N8N_BLOCK_ENV_ACCESS_IN_NODE=false in docker-compose.yml to allow environment variable access in nodes
WalkthroughUpdated n8n configuration in Docker Compose files: removed N8N_ENV_ACCESS_ALLOWED from production, changed N8N_BLOCK_ENV_ACCESS_IN_NODE from true to false in default compose, and added a persistent volume mount n8n_data:/data/n8n in the production compose. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ironment configuration - Updated the npm install command to install packages directly into n8n's app directory, enhancing organization and ownership management. - Replaced N8N_EXTERNAL_MODULES_ALLOWLIST with NODE_FUNCTION_ALLOW_EXTERNAL for better clarity in external module configuration. These changes streamline the Docker build process and improve the overall setup for the n8n service.
|
🔍 Vulnerabilities of
|
| digest | sha256:0d42ca4f40c825d9c5ce19ae7695967036c86e6ed58db88609d4547f1f22c145 |
| vulnerabilities | |
| platform | linux/amd64 |
| size | 335 MB |
| packages | 1844 |
📦 Base Image node:22-alpine
Description
| ||||||||||||
Description
| ||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docker-compose.prod.yml (1)
7-15: Harden prod: explicitly block env access in nodes.Because docker-compose.yml doesn’t override this in prod, env access would remain allowed after merge. Set it to true here. (docs.n8n.io)
- N8N_SMTP_TLS=${N8N_SMTP_TLS:-true} + - N8N_BLOCK_ENV_ACCESS_IN_NODE=trueAlso applies to: 21-25, 27-28
🧹 Nitpick comments (1)
docker-compose.prod.yml (1)
112-119: Align volume persistence with repo standards.Bind the n8n_data volume to a local ./volumes/n8n_data directory (tracked/backed up consistently with other services), instead of a host-absolute /data/n8n path. [Policy: volumes/**/* should live under ./volumes/]
volumes: n8n_data: - driver: local - driver_opts: - type: none - o: bind - device: /data/n8n + driver: local + driver_opts: + type: none + o: bind + device: ./volumes/n8n_data
📜 Review details
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
docker-compose.prod.yml(1 hunks)docker-compose.yml(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docker-compose.yml
📄 CodeRabbit inference engine (.cursor/rules/docker-configuration.mdc)
docker-compose.yml: All service configurations, including service dependencies, volume mounts, network configuration, environment variables, and port mappings, must be defined in docker-compose.yml
Services must communicate over an internal Docker network with only the specified ports exposed: n8n (5678), Temporal (7233), Temporal UI (8080), PostgreSQL (5432), and OpenSearch (9200)The repository must include a docker-compose.yml file as the main service orchestration configuration.
Use docker compose up -d to start all services
Files:
docker-compose.yml
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: speedandfunction/automatization#0
File: .cursor/rules/project-structure.mdc:0-0
Timestamp: 2025-07-28T16:44:50.073Z
Learning: Applies to Dockerfile.n8n : Use Dockerfile.n8n for custom n8n image configuration.
Learnt from: CR
PR: speedandfunction/automatization#0
File: .cursor/rules/docker-configuration.mdc:0-0
Timestamp: 2025-07-28T16:44:24.081Z
Learning: Applies to docker-compose.yml : Services must communicate over an internal Docker network with only the specified ports exposed: n8n (5678), Temporal (7233), Temporal UI (8080), PostgreSQL (5432), and OpenSearch (9200)
Learnt from: CR
PR: speedandfunction/automatization#0
File: .cursor/rules/docker-configuration.mdc:0-0
Timestamp: 2025-07-28T16:44:24.081Z
Learning: Applies to volumes/**/* : All service data must be persisted in Docker volumes mapped to the local volumes/ directory, such as ./volumes/n8n_data, ./volumes/opensearch-data, and ./volumes/postgresql-data
Learnt from: CR
PR: speedandfunction/automatization#0
File: .cursor/rules/project-structure.mdc:0-0
Timestamp: 2025-07-28T16:44:50.073Z
Learning: Applies to volumes/{n8n_data,opensearch-data,postgresql-data}/ : Persistent data for all services must be stored in the volumes/ directory, with subdirectories for n8n_data, opensearch-data, and postgresql-data.
📚 Learning: 2025-07-28T16:44:24.081Z
Learnt from: CR
PR: speedandfunction/automatization#0
File: .cursor/rules/docker-configuration.mdc:0-0
Timestamp: 2025-07-28T16:44:24.081Z
Learning: Applies to docker-compose.yml : Services must communicate over an internal Docker network with only the specified ports exposed: n8n (5678), Temporal (7233), Temporal UI (8080), PostgreSQL (5432), and OpenSearch (9200)
Applied to files:
docker-compose.prod.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Docker Security Scanning (n8n, Dockerfile.n8n, n8n-test:latest)
- GitHub Check: Service Availability Check



Summary by CodeRabbit
New Features
Chores