Who needs n8n credentials kept outside the n8n database and why
n8n can reference external secrets for credential fields only, and using that feature requires an n8n Enterprise license. It fits a security team whose policy says API keys, tokens and passwords must live in a managed secret store with its own access policy, audit trail and rotation schedule, instead of in the database that n8n uses for workflows and credentials. If your policy only asks that secrets be encrypted at rest, the built-in credential store may already meet the requirement, and the Enterprise decision can wait. Confirm with your security team which of these two positions applies before you size the project.
The license context matters early. n8n is licensed under the Sustainable Use License, which is source-available rather than OSI open source. It allows use for your own internal business purposes, and files with .ee in their name or directory are not covered by that license and need a valid Enterprise License. Ask n8n which plans include this feature at the time you buy, since the pricing page changes. On the secret store side, Vault is now under the Business Source License for newer releases, so check the terms of whichever store you choose, including any paid tier you would need for production use.
Before you design the integration, list every credential in scope and the provider it should resolve from, then assign an owner for rotation in each store. Remember that the feature covers credential fields only. Secrets typed into node parameters, expressions or environment variables stay where they are, so a security review should scan workflows for those as well. Ask your secret store team which authentication method n8n will use, how leases or rotation will reach running workflows, and who can read the audit log. Those answers determine whether the Enterprise license is the only cost, or whether the surrounding work grows.
Which secret provider fits which environment
This table compares Vault, its managed and forked variants, three cloud secret managers, Infisical and 1Password against the questions that decide the choice: where the store already runs, what audit tooling exists, and who operates it. Confirm each option's n8n support and the Enterprise plan requirement in n8n's documentation before you commit.
| Provider | Choose it when | License or hosting context | Confirm before deciding |
|---|---|---|---|
| HashiCorp Vault (self-managed) | Vault already runs in your data centers and your team operates its storage and upgrades | BSL 1.1 for Vault 1.15.0 and later, IBM as licensor, Vault 2.2.0 is current | Whether your use fits the BSL terms, reviewed with counsel |
| Vault Enterprise or HCP Vault Dedicated | You need licensed Vault features or a managed service running the same binary | Enterprise features need a license applied to the cluster; HCP Vault Dedicated is managed | Current prices through sales, since HashiCorp does not publish them |
| OpenBao | You want a Vault-derived option under MPL-2.0 in infrastructure you control | Community fork under MPL-2.0, managed under the Linux Foundation's OpenSSF | Its migration guide was tested only against Vault 1.14.1 Community, and n8n support |
| AWS Secrets Manager | Your n8n workers already run in AWS and IAM controls access | Managed service inside your AWS account | n8n support, Enterprise requirement and the IAM policies your workers need |
| Azure Key Vault | Your identity and networking already sit in Microsoft Azure | Managed service inside your Azure subscription | n8n support, Enterprise requirement and the access model for workers |
| Google Cloud Secret Manager | Your platform runs on GCP projects with IAM governing service accounts | Managed service inside your GCP project | n8n support, Enterprise requirement and service account scoping |
| Infisical | You want a secrets platform you can run yourself, with a hosted option | Confirm the license and feature set of the edition you would deploy | n8n support, Enterprise requirement and the self-hosting edition terms |
| 1Password | Your teams already manage shared credentials in 1Password | Commercial service with access from your own network | n8n support, Enterprise requirement and how machine access is deployed |
Setting up an external secret provider in n8n
This sequence connects n8n to a secret provider in seven steps, from confirming the Enterprise license to running a tested credential. Each step closes with a check, so reviewers can see that n8n reads only the secrets it needs and that credential values are no longer stored in the n8n database.
Confirm the Enterprise license on the instance
Confirm that the n8n instance holds a valid Enterprise license before any provider work starts. External secrets are part of the Enterprise plan, and files with .ee in their name or directory require that license under n8n's Sustainable Use License, so a Community edition install cannot use this feature. Ask the instance owner to open the license details in the admin area and record the plan, the license holder and the expiry date. Done when the plan shows Enterprise and the external secrets settings appear in the admin area.
Choose and prepare the secret provider
Pick the provider your security team already operates: HashiCorp Vault, AWS, Azure, GCP, Infisical or 1Password. Confirm the provider's own licensing and hosting model before committing, since Vault moved to the Business Source License 1.1 for releases from 1.15.0 onward and managed options are priced separately. Create one dummy test secret in a non-production path, and keep a production path that the test identity cannot reach. Done when an administrator can read the dummy secret through the provider's own console or CLI.
Grant the n8n instance read-only access
Create a dedicated machine identity for n8n, such as a Vault AppRole or a cloud service principal, and attach a policy that allows reading only the secret paths n8n needs. Leave write, list and administrative permissions out of the policy, and avoid reusing a personal account or a broad admin token. Test the policy by authenticating as the n8n identity: it should read the dummy secret and be denied on the production path and on any write call. Done when both denials appear in the provider's audit log.
Configure the provider connection in n8n
In n8n's external secrets settings, enter the connection details for the chosen provider, such as the Vault address and the n8n identity's credentials, then enable the provider. Store the identity's secret only in your own secrets handling, and keep it out of workflows. Confirm the exact field names in the n8n documentation for your version, since they differ by provider. Done when the connection test reports success and the provider's audit log shows a read from the n8n identity.
Reference secrets from credential fields
Open a credential in a test workflow and replace the typed value in a supported field with a reference to the provider secret, using the expression format n8n documents for that provider. External secrets resolve only inside credential fields, so workflow parameters, expressions in other nodes and Code node logic cannot read them. Save the credential and reopen it. Done when the field displays the reference, the stored value is no longer the plaintext secret and the credential test passes.
Verify workers resolve the same references
If the instance runs in queue mode, confirm that every worker and webhook processor can resolve the same provider references as the main instance. Queue mode already requires the main instance's encryption key on those processes, so check in your version's documentation whether provider configuration must also reach them. Run the test workflow on a worker and read its logs. Done when the execution succeeds on a worker and the logs show no provider authentication errors.
Test the credential in a non-production workflow
Run a test workflow that calls the target system with the credential. Then change the dummy secret in the provider and run the workflow again, confirming whether n8n picks up the new value without a restart, as your version documents. Repeat the run with the identity's read permission removed to see the failure mode. Done when the first run succeeds, the rotation behaves as documented, and the provider audit log matches the runs. Only then promote the credential through your change control process.
Security risks to design for before go-live
Moving n8n credentials out of the database shifts trust to a secret store, a token and a network path that n8n workers must reach. Each risk below is a decision to make and verify before production, because a gap in one area can expose credentials the other controls were meant to protect.
Encryption key still protects stored data
n8n encrypts credentials in its database with the main instance's encryption key, and in queue mode that key must be shared with every worker and webhook processor. External secrets reduce what sits in the database, but credential records and other encrypted data still depend on that key. Confirm where the key is stored, who can read it, how it is rotated, and that workers receive it only through the path you have approved.
Queue mode docsAccess token scope and rotation
The token n8n uses to read from Vault or a cloud secret manager should be limited to the paths and secrets its workflows need, with no write or list rights beyond that. Use a dedicated identity per environment, so a development instance cannot read production secrets. Set a rotation schedule and test that a rotated token is picked up without a restart outage.
Network path from workers to the store
Every worker that resolves a secret must reach the secret store, which widens the set of hosts with a path to it. Restrict egress from worker subnets to the secret endpoint only, use TLS with certificate validation, and keep the store off public networks where your policy requires. Document which workers run in which zones so an incident response team knows where secret reads originate.
Audit logging of secret reads
Reading a secret from n8n does not automatically produce a record in your organization's systems. Enable audit devices or equivalent logging on the secret store and confirm that each read records the calling identity, path and time. Decide who reviews these logs, how long they are kept, and how a read by an unexpected identity triggers an alert.
Fallback when the provider is unreachable
If the secret store is down or slow, a workflow may fail, retry, or in some configurations continue with stale or missing values. Test each workflow class to see what happens during an outage, and decide which ones should stop rather than send data with an empty credential. Set timeouts and alerts so a store outage appears in your monitoring before business users report failures.
Who can change credential references
A credential that points to a secret path can be redirected by anyone who can edit that credential in n8n, which can send a workflow to a different secret without changing the secret itself. Limit credential editing to named owners through n8n roles and projects, and review changes to references the same way you review changes to the secrets. Keep a record of who changed each reference.
Questions buyers ask before hiring help with external secrets
What drives the cost of moving n8n credentials to an external secret manager?
The cost depends on four components: the n8n Enterprise license, the provider setup, network access between n8n and the secret store, and testing. The Enterprise license is required for external secrets in n8n, and n8n prices it through a custom quote for self-hosted deployments, so the license line is quoted by n8n, not by DeployOpen. Provider setup varies with whether the target is HashiCorp Vault, a cloud secret manager, Infisical or 1Password. Network access work covers routing, firewall rules and certificates between the n8n main instance and workers. Testing confirms that every workflow resolves its credentials after a restart and a worker rollout. Ask for a written quote that lists each component separately and states which items are one-time and which recur, such as license renewals and any provider subscription.
How long does an external secrets engagement take?
Duration depends mainly on the provider and the number of credentials to move. A single provider with a small set of credentials and existing network paths is simpler than a multi-environment setup with several providers, queue mode workers and strict change control. Vault adds decisions about storage backend and access policies, while cloud secret managers depend on identity federation and IAM roles already in place. DeployOpen sets the timeline in the written scope after reviewing your provider, credential inventory and environments. Ask any partner to break the schedule into discovery, provider setup, credential migration, testing and cutover, and to state which steps depend on your team's availability.
What does the client need to provide for this work?
Three inputs matter most. First, an n8n Enterprise license applied to the instance, because external secrets require it and the license is not included in any cloud or Community plan. Second, administrative access to the secret provider, such as policy and auth method setup in Vault or IAM and identity configuration in a cloud provider, plus a named owner who can approve changes. Third, a change window for cutover, since credential references must switch over without breaking active workflows. Also prepare a list of credentials, their owners and the environments that use them. Confirm these inputs with your n8n account contact and provider administrators before the scope is signed.
Can an internal team set up external secrets without outside help?
Yes, if the team has n8n administration experience, owns the secret provider and has a license in place. The work is configuration rather than custom code, but it touches credentials, which makes mistakes costly. Teams usually struggle with three areas: auth and policy design in the secret store, network paths for queue mode workers, and verifying that every credential type resolves correctly. External secrets in n8n apply to credential fields only, so the team must also review workflow parameters and node settings that hold secrets and move them by other means. An internal team should test in a non-production environment and document rollback steps before touching production.
Is HashiCorp Vault Enterprise pricing published?
No. HashiCorp does not publish Vault Enterprise prices. Its pricing pages describe pay-as-you-go, flex and Enterprise self-managed commercial models, and direct self-managed Enterprise buyers to sales. If you plan to use Vault, ask HashiCorp or your reseller for a quote for the deployment model you need, and confirm whether your setup uses Vault Community Edition or a licensed Enterprise cluster. Vault Enterprise features such as replication, namespaces and FIPS compliance need a license applied to the cluster. HCP Vault Dedicated is a managed option that runs the same binary as self-managed Vault Enterprise, so ask for its pricing separately.
Does the n8n license cover external secrets for all plans?
No. Files in n8n's source tree with .ee in their name or directory fall outside the Sustainable Use License and require a valid n8n Enterprise License. External secrets sit in that Enterprise territory, so a Community, Starter, Pro or Business setup does not include them. n8n's pricing page lists Enterprise at custom pricing for self-hosted or cloud, so confirm the exact feature set in the Enterprise agreement before planning. Also review the Sustainable Use License terms with your legal team, since it allows use for your own internal business purposes and is not an open source license.
What breaks if external secrets are set up incorrectly in queue mode?
The most common failure is a worker or webhook processor that cannot reach the secret provider, so workflows fail at credential resolution while the main instance still runs. Check that every worker and webhook processor has a network path, identity and provider permissions, and that tokens or role bindings refresh correctly. Another risk is confusing the n8n encryption key with provider secrets, since queue mode requires the main instance's encryption key on all workers to read credentials stored in the database. Test execution from each worker type after cutover, and keep a rollback path for credentials that still live in the n8n database.
How do we confirm the scope covers our provider and credential types?
Ask for the scope to name each provider, each n8n instance and environment, and each credential type in your inventory. Include HashiCorp Vault, AWS, Azure, GCP, Infisical or 1Password only if your team uses them. Confirm whether the work covers credential fields only, and whether node parameters or expressions containing secrets are out of scope. DeployOpen plans, implements and documents this work inside your infrastructure, and the written scope defines the deliverables, testing evidence and acceptance criteria before work begins. Request a credential inventory review as the first milestone so the quote reflects your real count.
How n8n, workers and the secret provider connect
The diagram starts at the main instance and its webhook processors, which receive triggers and place executions on a Redis queue for workers. Workers read and write workflow data in PostgreSQL and need the main instance's encryption key to open credentials stored there. The boundary around the client network separates these components from the external secret provider, which workers reach when they resolve secret references. Check which processes need provider access, where the encryption key is held, and whether the provider endpoint is reachable from each worker's network segment.
Workers reach the secret provider across the client network boundary.
How DeployOpen works on this
DeployOpen plans and implements self-hosted n8n in infrastructure you control, so external secret integration is scoped against your own secret managers, network paths and Enterprise license position before any build starts. The work is delivered as a fixed-scope engagement with written deliverables, and ongoing support is available as a retainer.
How we scope
- Inventory which n8n credentials move to an external store and which stay in the database
- Confirm whether your n8n instance holds an Enterprise License that covers external secrets
- Record which secret manager you run, its version and the network path from n8n workers
- Agree in writing the credential types, environments and workflows included in the engagement
How we build
- Configure the external secret provider connection and test each credential field against it
- Set up authentication from n8n to the secret manager with least-privilege policies and short-lived access
- Confirm queue mode workers and webhook processors resolve secrets without exposing the encryption key
- Test failure behavior when the secret manager is unreachable or a secret path changes
How we hand over
- Deliver a written configuration record covering providers, policies, paths and owners
- Document which credential fields remain limited to the database and why that limit applies
- Provide a runbook for rotating secrets, revoking access and recovering from provider outages
- Walk your platform and security teams through the setup and the evidence they can review
How we support
- Retest external secret access after n8n upgrades and secret manager version changes
- Review policy changes and access grants on a schedule agreed in the retainer
- Confirm vendor licensing and plan terms before any change that affects Enterprise features
- Update documentation and runbooks as your secret stores, environments and owners change

