When n8n source control and environments matter for your team
If your team edits n8n workflows directly in production, with no review step and no record of who changed what, source control and environments are the fix to plan for. n8n's environments with Git feature gives you separate instances for development, staging and production, with workflows moved between them through a Git repository. The pricing page places this capability, listed as environments with Git, in the Business and Enterprise plans, so a team on another plan should not plan around it until the entitlement is confirmed. Check the current plan table on n8n's pricing page and the environments documentation in n8n's own docs before you budget for it.
The feature matters most when more than one person changes workflows, when a broken workflow can disrupt customers or regulated data flows, or when an auditor will ask how a production change was approved. It does not replace a change process. Before you enable it, assign an owner for each branch that maps to an environment, decide who may push to development, who may promote to staging, and who may pull into production, and write those rules down. Without named owners, Git history records changes that nobody reviewed.
Confirm three things with n8n before you commit to the design: which roles can push and pull between instances, how credentials and environment-specific values are handled when a workflow moves between instances, and whether the feature works with your planned deployment, such as queue mode or a restricted network. The answers determine how much of the change process is enforced by n8n and how much your team must enforce by convention and review.
How development, staging and production instances connect through Git
The flow starts with a developer editing workflows on the development instance. Changes are pushed to a Git branch in a repository that every instance shares as a trust boundary. Staging pulls from that branch for testing, and production pulls only from the branch approved for release. Each instance keeps its own database and encryption key, so the repository carries workflow definitions while credentials and execution data stay on each instance. Check who holds push and pull rights at each arrow.
Git branches carry workflow definitions between instances, each with its own data and key.
Which environment setup fits your team size and change risk
A single team that owns most of its automations usually needs the smallest environment setup. The main question is whether a development instance and a production instance are enough, or whether a staging step justifies its running cost. Teams in this position often start with two instances and one Git repository, make changes on feature branches, and merge them into the branch that production reads from. Approval is typically informal, with one peer reviewing each merge and the team lead deciding when to deploy.
- Instance count: Two instances, development and production, is a common starting point. Add staging when a workflow touches systems where a failed run is costly to repair.
- Branch model: Short-lived feature branches merged into one production branch keep the history easy to follow.
- Approvers: One reviewer other than the author is often enough for internal automations with limited data sensitivity.
- Credentials: Confirm whether credentials travel with workflows or stay per instance, since this decides what the repository is allowed to hold.
- Plan: Git-backed environments require the Business or Enterprise plan, and the pricing page lists Business as self-hosted only.
Confirm the plan and the Git hosting you already run before you design the branches, because the plan decides whether this setup is available at all. n8n pricing lists the current plan details.
A regulated team usually needs a separate staging step and a formal approval before any change reaches production. The goal is evidence: who proposed a change, who reviewed it, what was tested, and who released it. Many teams in this position keep three instances, protect the production branch so that merges require approval, and limit push rights to a small group. The production instance then pulls only from that protected branch.
- Instance count: Development, staging and production are typical. Staging holds the test results that reviewers rely on.
- Branch model: A protected production branch, with merges allowed only through reviewed merge requests, creates a traceable change record.
- Approvers: Reviewers should be independent of the author and of the business owner who requested the change. A security or change manager is often added for workflows that handle personal or health data.
- Push and pull rights: Restrict who can push to the production branch and who can trigger a pull on the production instance.
- Evidence: Keep review records and commit history together, and agree with your auditor which artifacts they expect to see.
DeployOpen can prepare the workflow design and evidence for your assessment, but independent auditors decide whether the controls meet your obligations. Ask your compliance lead which change records they need before you define the approval chain.
An organization running many workflows across several business units has to balance shared standards with local ownership. The usual decision is whether each unit gets its own instances and branches, or whether units share a platform with separate projects and a central platform team that sets the rules. Both models need clear ownership of each workflow, because the change risk sits with whichever unit owns the business process.
- Instance count: A shared development instance with per-unit production instances is one option. Fully separate stacks per unit are another, and they multiply patching and backup work.
- Branch model: Each unit can work on its own branch prefix, with a shared main branch that carries approved templates and standards.
- Approvers: Unit owners approve changes to their own workflows, and the central platform team approves changes to shared templates, credentials conventions and promotion rules.
- Scale planning: Growing workflow counts raise questions about instance sizing and scheduling. Confirm with n8n which features apply at your size.
- Plan: Business and Enterprise both include Git-backed environments, so the choice between them depends on your other requirements, such as high availability, which the pricing page ties to Enterprise.
Before you choose a model, map each business unit to its owner and its change risk. The structure that works for one unit can create friction for another, so agree the shared standards in writing first.
Configuration options and when each one fits
This table compares the main design choices for separate n8n environments: instance count, branch mapping, push and pull rights, and where Git is hosted. Read each row against the trade-off columns, which cover review speed, drift risk and admin overhead. The main takeaway is that more instances and stricter promotion rules reduce drift risk but add review and administration work.
| Decision | Option | Fit | Trade-off |
|---|---|---|---|
| Number of instances | Two instances (development and production) | Small teams with few changes and one reviewer who also deploys | Fastest path, but nothing is tested on a production-like instance before release, so drift risk is highest |
| Number of instances | Three instances (development, staging and production) | Teams with regular releases and a tester or change approver separate from the builder | Staging catches issues before production, but each instance needs credentials, data and upgrades kept in step |
| Branch mapping | One Git branch per environment | Teams that want each instance to read its own branch directly | Simple to explain, but changes can land on production branches through shortcuts, and hotfixes must be merged back |
| Branch mapping | Release branch promoted into production | Teams that batch changes and need a clear, reviewable release point | Clean audit trail and fewer surprises, but slower review and more merge conflicts in long-lived branches |
| Push rights | Developers push to development only | Organizations that separate build work from production change | Keeps production clean, but depends on a documented path for urgent fixes |
| Pull rights | Only the production instance pulls from the release branch | Change-controlled environments where production state must match reviewed code | Strong control over what runs live, with more friction when a production fix is needed quickly |
| Git hosting | Self-hosted Git in your own infrastructure | Organizations that keep source code and workflow definitions inside their network | Keeps data under your control, but you own backups, upgrades, access reviews and availability of the Git server |
| Git hosting | Managed Git service | Teams that accept a third-party host for source code | Less administration, but the hosting terms, data location and access model must be reviewed against your policies |
Setting up three n8n environments with Git branches
This sequence sets up development, staging and production n8n instances that share one Git repository, with defined roles for who changes workflows and who promotes them. It ends with a test promotion that shows the path a change takes before it reaches production.
Confirm the plan includes Git environments
Check the n8n pricing page before you provision anything. The page lists environments with Git in the Business and Enterprise plans, and lists Business as self-hosted only at this time. Ask n8n to confirm in writing which plan covers your instances and how many instances it includes. Procurement and legal should review the license terms alongside the platform team. Done when your order names environments with Git and your planned internal use fits the Sustainable Use License.
Provision development, staging and production instances
Deploy three separate n8n instances in infrastructure you control, each with its own database, hostname and configuration. Keep the production database out of reach of development users and their networks. Your platform team does this work using the deployment settings your organization already applies to other services. Done when each instance starts, accepts a sign-in and points at its own database.
Assign a separate encryption key to each instance
Generate a distinct encryption key for each instance and store each one in your secrets manager with a named owner. n8n uses the key to encrypt credentials in its database, so a key shared across environments ties those environments together. Queue mode adds its own rule, because worker and webhook processors must share the key of their main instance, so plan that now if you expect to scale later. Done when no two instances share a key and each key has a recorded owner and backup procedure.
Create the repository and branch model
Choose the Git repository that will hold exported workflows, then define a branch model. One illustrative pattern uses a development branch, a staging branch and a protected production branch, with merges as the only route into production. Write down who approves each merge and how an urgent fix returns to development after it reaches production. Done when production is protected from direct pushes and the team has approved the model in writing.
Connect each instance to its branch
In the source control settings of each instance, point the connection at the repository and the branch that matches its role. Use a dedicated machine account or access token with the smallest repository access that still works, and keep that token out of workflow exports. Confirm the setup steps and token scopes for your n8n version in the current documentation before you configure anything. Done when each instance reports a successful connection and the branch it uses matches your model.
Set push and pull roles per environment
Decide who can push changes from development, who can pull into staging and who can pull into production. Limit production pull rights to a small group, with a named owner who approves each change. Confirm in n8n's documentation which role levels can perform each action on your plan. Done when a test user without the production role is blocked from pulling into production and the permission matrix is written down and approved.
Run a test promotion of one workflow
Pick a low-risk workflow, such as one that posts an internal notice and uses no production credentials. Edit it on development, push it to the repository, pull it into staging and promote the approved version to production. Confirm that the change appears in the repository history at each stage and that production holds only the approved version. Set up each environment's own credentials before the workflow runs there. Done when production runs the workflow and the commit history matches the approval record.
Security risks when promoting workflows between instances
Moving workflows from development to staging to production creates a set of exposure points that a single instance never has. Each card below names one risk, the control to plan for it, and what to confirm with n8n or in your own environment before the first promotion.
Credentials leaking into Git history
Workflow exports can carry credential references, parameters or pasted secrets, and anything committed to a repository stays in its history even after deletion. Plan a review step that scans exports before commit and keep credential values out of workflow JSON. Verify with n8n exactly which credential data the environment feature writes to Git and whether values are ever included. Test this on a sample workflow before relying on it.
Queue mode docsOver-broad push rights to production
If many people can push to the branch that feeds production, one mistaken or compromised account can change live automations. Plan branch protection on the production branch and separate roles so that developers push to development and only a small group merges into production. Confirm which n8n roles can push or pull in your plan tier and whether repository-side protection is enforced in your Git host.
Unreviewed changes reaching production
A workflow edited in development can reach production without a second person reading the diff, especially when promotion is a single click. Plan a required review step in the Git host before any merge to the production branch, and record who approved each change. Ask n8n whether its promotion flow can be gated by an external review, or whether review must happen only in the repository.
Shared or copied encryption keys
Credentials are encrypted with the instance's encryption key, so copying that key between environments means a leaked development key exposes production credentials. Plan a separate key for each instance, stored in a managed secret store with restricted access. Confirm with n8n how credentials move between instances and whether re-entry or a supported transfer path is required, because the answer changes your key handling.
Test data reaching production systems
Workflows built against test endpoints, sandbox accounts or sample databases can write to live systems once promoted if their connection settings are not swapped. Plan separate credentials and endpoints per environment and a checklist that confirms each production connection before activation. Verify in your own environment that development credentials cannot authenticate to production systems at all.
Missing audit trail of changes
Without a record of who changed a workflow, when, and what was promoted, incident response and compliance reviews have no evidence to work from. Plan Git commit history as the change record, retain repository logs and n8n's own audit output for a period your policy sets, and protect them from editing. Confirm with n8n which audit events are recorded for your plan and how long they are kept.
What the Business plan requirement costs and what it covers
n8n's pricing page places environments with Git in the Business and Enterprise plans, so a separate development, staging and production setup with Git-backed promotion requires one of those tiers. The Business plan is listed at 667 euros per month billed annually, and according to the same pricing page it is currently self-hosted only. That licence fee is the largest visible line item, but it is not the only one. The same tier also includes SSO and LDAP and log streaming, so the purchase decision affects identity and audit logging as well as Git. Before committing, confirm with n8n which features on the Business tier you need and whether any of them are already covered by your current plan.
The cost is spread across several components, and the buyer should compare each one. The license tier is a recurring subscription per instance or per agreement, so confirm with n8n whether the price applies once to your organization or per environment. Each instance also needs hosting, compute, a PostgreSQL database and storage, all of which recur. Git hosting is another recurring item, whether you use a self-managed Git server or a hosted service. The largest one-time cost is usually the internal or external effort to design the branch model, configure the promotion pipeline, set up reviews and document the process. Ongoing effort goes to keeping the three instances on matching n8n versions, rotating access and reviewing changes.
Enterprise adds dedicated support with an SLA, which matters when a production workflow failure must be resolved within a defined window. Enterprise pricing is custom, so ask n8n for a written quote for any Enterprise need, including support levels, self-hosted scope and any multi-main high availability requirement. When you request quotes, ask for the cost of each tier separately, the renewal terms, and whether the price changes if you add environments. The n8n pricing page is the starting point for comparing these items against your own estimate of hosting and staffing.
Limits to confirm before you commit to this design
Source control and environments in n8n depend on plan rules, object scope, credential handling, upgrade behavior and access roles that the public documentation does not fully settle. Treat each card below as a question to put to n8n or to test in a non-production instance before you build the design around it.
Business license covers each environment
Ask n8n whether the Business plan license applies to every internal instance in the design, including development, staging and production. Confirm how the plan is counted when non-production instances exist and whether any of them can be run under a different license. The pricing page lists the Business plan at 667 euros per month billed annually and states that it is currently self-hosted only, so the commercial terms for multiple instances need written confirmation before purchase.
n8n pricingObjects that move through Git
Confirm with n8n exactly which object types sync through a Git repository, such as workflows, credentials, variables, tags and projects, and which remain local to each instance. Build a test repository and push a sample of each type between two instances to see what arrives. Items that stay per instance will need a separate process for each environment.
Credential handling between environments
Check whether credentials are exported with the workflows, whether they are encrypted with the key of the source instance, and what happens when the target instance uses a different encryption key. Queue mode adds a constraint, because the main instance's encryption key must be shared with every worker and webhook processor. Verify in a test environment that a credential pulled into staging works without exposing secret values in the repository.
Queue mode docsBehavior across version upgrades
Ask n8n how the Git integration handles workflow JSON and object formats when instances run different n8n versions during an upgrade window. Run a test where staging is upgraded before production and pull the same repository into both. Record any changes to exported files, failed imports and required manual fixes, then plan the upgrade order around the result. n8n ships minor releases roughly weekly, so this check should be repeated for each upgrade cycle.
- Minor release cadence
- Weekly
Instance count and user limits
Ask n8n whether the self-hosted Business plan sets any limit on the number of instances, users, projects or environments. The pricing page states that all plans include unlimited users and workflows, but it does not settle how environments are counted. Get the answer in writing, and confirm whether a separate instance for testing or disaster recovery changes the license position.
n8n pricing pageRoles that can push and pull
Confirm which n8n roles can push changes to the Git repository, pull changes into an instance, and approve a merge into production. Test the role model with a user who holds each role on a staging instance, and check whether project-level permissions limit pushes to specific workflows. Document the result as a control, because the answer determines who can change production logic.
n8n SAML user managementQuestions buyers ask about n8n environments and Git
How much does the n8n Business plan cost for Git-backed environments?
The n8n pricing page lists the Business plan at 667 euros per month billed annually, and it is currently self-hosted only. Environments with Git are included only in the Business and Enterprise plans, so that subscription is the cost that makes the feature available. The subscription is a recurring license fee that pays for the features, while the n8n source code is available under the Sustainable Use License. DeployOpen's setup work is one-time and is quoted from a written scope covering instance layout, branch model and handover. Ask whether the license figure changes as you add instances, and confirm the current price on the pricing page before you budget.
Can our team set up n8n environments with Git without outside help?
Yes, a capable internal team can build this alone if it has the license, the skills and the time. The work needs at least one engineer who understands Git branching, n8n's environment settings and how your instances are hosted. Development, staging and production are separate deployments, each with its own database, encryption key and network rules. Common gaps are the branch model, keeping credentials out of exported workflow files and a rollback plan that has been tested. Teams that manage this well write the runbook before go-live and test one promotion end to end with a sample workflow. Outside help is most useful when your team lacks spare capacity or when reviewers expect an independent design record.
What drives the effort and duration of an n8n environments project?
Effort depends on how many instances you run, how many workflows and credentials must move between them and how strict your review process is. Each added environment adds deployment, networking and access work. The number of teams editing workflows affects how many merge conflicts and review rounds you should expect. Credential handling and identity integration add design time, especially if n8n roles must map to Git branches or approval groups. The branch model, CI/CD tooling and the current state of your existing n8n workflows also change the work. Ask any provider for a timeline tied to a written scope with named milestones, and check that each milestone names the deliverable it produces.
What do we need to provide for an n8n environments project?
The project needs several inputs from your side before work starts:
- A Git repository your organization controls, with branch protection and a named administrator.
- Cloud accounts or data center access, plus the hosts, DNS records and certificates for each environment.
- Named approvers for merges into staging and production.
- Test workflows and sample data that cover representative flows without live customer records.
- Credential owners and a decision on where secrets are stored for each instance.
- Business plan licenses for the instances that use Git environments.
Agree who supplies each input and by which date in the written scope, because delays in approvals or access usually set the schedule more than the build itself.
Can our security team review n8n environments and Git changes?
Yes, if the design is built for review. Git keeps a change history, review records and approvals that security teams can inspect for each promotion. Reviewers can trace which branch fed each environment and who approved each merge. Security teams should confirm which audit events your n8n version records and which logs leave the instance, because the n8n pricing page lists log streaming only in the Business and Enterprise plans. Repository access, the Git provider's audit logs and n8n admin roles are separate controls to review. DeployOpen can prepare the control design, evidence and test results for your reviewers, but it does not issue audit reports or attestations, which independent auditors provide.
Do n8n upgrades change how environments and Git branches work?
Yes, upgrades affect every environment and the promotion path between them, so plan them as a sequence. n8n uses semantic versioning and ships minor releases roughly weekly, and the n8n release notes list each version, including n8n 2.43, released on 6 October 2026. Keep the versions of development, staging and production aligned before you promote workflows between them. Upgrade in the order development, staging and then production, and test a promotion after each step. Record the version in each environment, keep a rollback path and get your change board to approve the schedule. Include upgrade runs in the support scope so someone owns the test results.
How DeployOpen works on this
DeployOpen plans, builds and documents separate n8n development, staging and production instances, with Git-backed promotion, inside infrastructure you control. Engagements are fixed-scope, so the environment model, licensing position and access rules are agreed in writing before any build starts.
How we scope
- Confirm which n8n plan and self-hosted edition your organization holds before choosing a Git-backed environment design
- Map which teams push, pull and approve changes between development, staging and production instances
- Agree the Git repository layout, branch model and credential handling rules in the written scope
- Record which workflows, credentials and projects are excluded from promotion and why
How we build
- Deploy separate n8n instances for each environment with their own databases and encryption keys
- Configure the Git connection per environment and test a push and pull cycle end to end
- Set role-based limits so only approved users can push changes or pull into production
- Test a promotion from staging to production in a non-production copy before go-live
How we hand over
- Deliver a runbook covering the branch model, promotion steps, rollback steps and access roles
- Document the licensing position for each instance, including which features the chosen plan includes
- Provide a verification checklist that confirms each environment points to the correct repository branch
- Walk your platform and security teams through the setup and record their questions and decisions
How we support
- Support upgrades that change how environment sync or Git features behave across n8n releases
- Review access changes and branch protection settings on a schedule agreed in the retainer
- Retest promotion paths after each planned n8n upgrade or change to the Git hosting setup
- Ongoing support, upgrades and continuous testing are available as a retainer after handover

