Storing n8n binary data in S3 starts with a sizing decision
Teams usually look at external storage after workflows that pass PDFs, images or exports through n8n start filling the database or local disk faster than pruning can keep up. External S3-compatible storage moves those files out of the execution path, so the n8n database keeps a reference to each file instead of its contents. Before choosing that path, separate two sources of growth: many small executions that fill execution history, or a few large files that inflate every run. Pruning addresses the first, and external storage addresses the second. Count executions per day that carry binary data, record typical and largest file sizes, and note how long each file must remain available after its run finishes. Those three numbers set the bucket size, request volume and retention window you need to plan.
The sizing answers then drive the design choices you must settle before setup. Plan one bucket per environment, a prefix that separates n8n data from other workloads, and an IAM role limited to that bucket with only the object actions n8n needs. Decide who owns lifecycle rules, because an expiry rule that runs on a different schedule than n8n pruning can delete files that executions still reference, or leave objects that no record points to. Settle encryption at rest, TLS for storage traffic and access logging for the bucket. Confirm with n8n whether external storage is included in your plan, since the pricing page ties several features to the Business and Enterprise tiers and this setting may follow the same split.
The store you pick changes what you can support and what you can fix yourself. MinIO is a widely known option for self-hosted S3 APIs, but its public position has changed: the minio/minio README says the repository is no longer maintained, the minio, operator and mc repositories are archived, and community binaries are no longer published, so you would build from source with Go 1.24 or later. Community support is best effort, and SLA-backed support runs only through its commercial AIStor product. Before you design around MinIO, check the MinIO README for current status, review AGPLv3 obligations with counsel, and ask n8n whether it supports your chosen S3-compatible store for binary data.
Which n8n binary data storage fits your deployment
This table compares the three places n8n can keep binary data (filesystem, database, and S3 or MinIO) across instance count, queue mode, data volume, and pruning. Use it to shortlist a mode, then confirm the exact behavior for your n8n version in the n8n documentation before changing anything in production.
| Storage mode | Best fit | Queue mode and scale | Pruning and switching |
|---|---|---|---|
| Filesystem | One instance with modest file volumes | Confirm whether every worker can reach the same files before relying on this mode | Switching away can leave existing files in the old location, so plan their move |
| Database | Queue mode deployments with moderate file sizes | Built for workers that need shared access to files; confirm size limits for your version | Database growth needs pruning; confirm how space is reclaimed on your database |
| S3 or MinIO | Large files or high volumes the database should not hold | Main and worker processes need credentials for the same bucket; confirm each process's settings | Bucket lifecycle rules can prune old objects; coordinate them with execution pruning settings |
| MinIO community edition | Teams already running MinIO on infrastructure they control | Works as any S3-compatible store; confirm n8n's support position for this server | Repository is archived; last tagged release was published October 16, 2025, so confirm maintenance status |
| Switching storage modes | Any change after files already exist | Workers must see the same storage target before and after the change | Confirm the behavior for your n8n version and test the move on a copy first |
Only the workers that write binary files need access to the bucket
The diagram starts at a webhook or trigger, which reaches the main instance. The main instance hands each execution to a worker through Redis in queue mode. Workers write execution metadata to PostgreSQL and send binary files to the S3 bucket. Access to the bucket runs through an IAM role that is scoped to that bucket alone. Check that the trust boundary holds: only the workers should carry S3 credentials, and the main instance and PostgreSQL should not.
Binary files reach the bucket from workers only, through a scoped IAM role.
Setting up n8n binary data in an S3 bucket, step by step
This sequence moves n8n binary data out of local storage and into a bucket you control, with access limited to one identity. It ends with tested writes, reads and restarts across every n8n process, so you know the storage works before production workflows depend on it.
Create the storage bucket
Create a dedicated bucket in the region your data residency rules require, or on your MinIO server if you have confirmed its support position. The MinIO community repository is archived and its last tagged release is RELEASE.2025-10-15T17-29-55Z, so plan support before you rely on it. Keep the bucket separate from backups and other application files so lifecycle rules cannot reach them. Leave public access blocked. Done when the bucket appears in the console or CLI and a test upload with admin credentials succeeds.
Apply a least-privilege bucket policy
Write a bucket policy that grants access only to the identity n8n will use and refuses anonymous reads and writes. Scope it to this bucket and, if you use one, to a dedicated prefix for n8n objects. Have your security team review the policy before it goes live, and store the reviewed version in your configuration repository. Done when an unauthenticated request to an object URL is refused and the saved policy matches the reviewed version.
Create an identity with minimal permissions
Create a dedicated identity for n8n, such as an IAM role or a MinIO service account, and attach only the object actions n8n needs on this bucket: writing, reading, listing and deleting objects. Confirm the exact action list against n8n's external storage documentation before you apply it. Generate the credentials through your normal secrets process. Done when a test with that identity can write and read an object in the bucket and is refused on any other bucket.
Configure n8n external storage settings
Set n8n's external storage mode, endpoint, bucket, region and credentials using the setting names in n8n's documentation for your installed version. Inject the credentials from your secrets store, not from workflow content. In queue mode, apply identical storage settings to the main instance and to every worker and webhook processor, since each process must read the same objects. Done when all processes start without storage errors in their logs.
Add lifecycle rules for pruning
Add a lifecycle rule that expires objects after a retention period you choose, as a backstop for files n8n does not remove itself. First confirm how n8n deletes binary objects when executions are pruned, so the rule does not remove files a live workflow still needs. Record the retention period and who approves changes to it. Done when a test object within the rule's scope is removed within the window your provider documents, and no live execution loses its data.
Test a large file write and read
Build a test workflow that generates or downloads a large binary file, writes it through n8n, then reads it back in a later node and compares a checksum with the original. Use a file size well above what your production workflows handle, and record the size you tested. Check the bucket for an object with the expected size and a key linked to the execution. Done when the checksums match and the object appears in the bucket.
Run a restart test in queue mode
Restart the main instance, then each worker and webhook processor, and run the read-back workflow against a binary file written before the restart. Make sure the execution is picked up by a worker rather than the main process, so cross-process access is proven. Confirm the read succeeds, the checksum still matches and the logs show no credential or decryption errors. Done when every process restarts cleanly and the earlier file is readable from a worker.
Whether n8n S3 binary storage needs a paid license
Before you build S3 or MinIO binary storage for n8n, confirm whether the code paths you will run fall under the .ee rule in n8n's license. n8n is licensed under the Sustainable Use License, which permits use or modification for your own internal business purposes or for non-commercial or personal use. Files with .ee in their name or directory are not covered by that license and require a valid n8n Enterprise License. The license does not name external binary storage as a feature, so the answer depends on which files your exact version loads, and you should not assume either way from the feature list alone.
Check the licensing documentation and the LICENSE.md file in the source tree for the n8n version you plan to deploy, then search that version's code for .ee paths tied to binary data handling. Record the version, the file paths and the date you checked, because the answer can change between releases. Ask the reviewing team to confirm two things: whether the S3 storage mode is loaded from a file outside the .ee rule, and whether your intended use, including any commercial or customer-facing workflows, stays within the internal business purposes the Sustainable Use License allows. Note that n8n's pricing page separately describes Enterprise as custom pricing, so the licensing answer also shapes the commercial conversation.
If the documentation and the code leave the answer unclear, put the question to n8n in writing before go-live and keep the reply with your deployment records. Ask which files implement external binary storage, whether any of them carry the .ee marking, and what license the organization needs for your planned use. Plan for the possibility that the answer requires an Enterprise License, since that cost recurs annually and changes your budget and your build sequence. A written answer from the vendor is the evidence your compliance team will ask for, and a quote from a partner should follow from the answer rather than precede it.
Securing the S3 bucket and IAM role behind n8n binary data
Binary data stored by n8n often holds the files workflows process: scanned forms, exported records, attachments and images that may contain personal or health data. The controls below limit who and what can reach that bucket, how it is protected, and how access is recorded, so the store is reviewable before it goes live.
Least-privilege IAM role
Create a dedicated identity for n8n whose policy allows object reads, writes and deletes only on the n8n bucket and its binary data prefix. Deny list and access to other buckets, and keep administrative actions out of the role. Confirm that the role cannot be assumed by other workloads on the same account. Ask the team to show the policy document as part of the review, not a summary of it.
n8n queue mode docsBucket policy blocking public access
Enable the bucket-level block on public access and reject any policy statement that grants anonymous or wildcard principals. Binary files are often copies of customer or patient documents, so one permissive ACL can expose a whole prefix. Check the policy after every change, and confirm that presigned links, if used, have short lifetimes and are not written into workflow output that leaves the network.
Credentials kept out of workflows
Store the access key or role configuration in n8n's credential store or the host's secret manager, never in node parameters, Code node scripts or expressions. Workflows are exported, shared and copied between environments, so a key embedded there travels with them. Ask who can open the credential record in n8n and confirm that those people are the same ones allowed to administer the bucket.
Encryption at rest and in transit
Enable server-side encryption on the bucket and require TLS for every request by denying calls that arrive without a secure transport condition. Confirm how the chosen store manages its keys, and whether the key service sits inside your control boundary. Encrypted files are still readable by any role that holds decrypt permission, so pair this control with the IAM scoping above.
Access logging and retention review
Turn on server access logging or the audit trail the store provides, and send the records to a location the n8n administrators cannot edit. Logs show which identity read or deleted which object, which is what a reviewer asks for when files contain personal data. Agree on how long logs are kept and who reviews them, since binary pruning deletes objects but does not remove the record that they existed.
Key and credential rotation
Set a rotation schedule for the access key or role session settings used by n8n, and rehearse a rotation on a test instance before the first production cycle. A rotation that breaks workers leaves binary reads failing in the middle of runs. Confirm that rotated values are written to the credential store in every n8n instance that uses the bucket, including webhook processors and workers in queue mode.
What the archived MinIO repository means for n8n storage
The minio/minio repository is archived and no longer maintained, so any MinIO server you deploy for n8n binary data will not receive new community releases from the project. The MinIO README points to two alternatives: AIStor Free, a standalone edition under a free license, and AIStor Enterprise, a distributed edition with commercial support. The community server is released under the GNU AGPL v3.0, and the README states that any commercial or proprietary use must be validated against AGPLv3 obligations. Before you choose MinIO, have your legal team confirm how AGPLv3 applies to your use and whether you would modify the server or expose it to users over a network. The community edition is also distributed as source code only, with no further pre-compiled binaries, and legacy binaries will not receive updates. Your team would therefore build and patch the server itself, and the last tagged community release, RELEASE.2025-10-15T17-29-55Z, is the newest version you can pin to.
Community support for the AGPLv3 software is best effort through GitHub and Slack, and SLA-backed support is available only through AIStor. Choosing between AIStor Free and AIStor Enterprise is therefore a support decision as much as a licensing one. AIStor Free suits a single-node or small deployment where your team can carry patching and incident response. AIStor Enterprise, the distributed edition with commercial support, fits a larger volume where you need a contractual response path. Ask MinIO for current pricing, license terms and support scope in writing, because this page does not state them.
n8n's support position on S3-compatible stores such as MinIO must be confirmed with n8n in writing before you build on one. Check the current n8n documentation for the binary data S3 settings, then ask n8n whether it supports and tests the specific S3-compatible product and version you plan to run, and what it will do when a storage issue affects executions. Record the answer in your design file alongside the MinIO edition you selected, so the decision can be reviewed when either project changes.
Lifecycle rules for pruning n8n binary data by deployment shape
On a single n8n instance, one process writes binary data to the bucket and also prunes execution records, so the first job is to find out how much of that cleanup n8n already performs for binary files. Confirm in n8n's documentation how pruning treats binary data before you write any expiry rule, because an S3 lifecycle rule runs on its own clock and deletes objects whether or not n8n still references them. Keep the bucket dedicated to this instance so a rule cannot remove files belonging to another system.
- Pruning first: Set execution pruning age and count in n8n, then choose a lifecycle window that is longer than the longest execution retention you intend to keep.
- Dedicated bucket: Use a bucket or prefix only this instance can write to, so lifecycle rules have a narrow blast radius.
- Prefix scoping: Apply the expiry rule to the n8n binary prefix only, not to the whole bucket.
- Test deletion: Run the rule against a test prefix and confirm that a workflow can still open a binary file it expects to retain.
- Record the rule: Store the lifecycle configuration in version control with the n8n configuration so reviewers can see the retention decision.
Before enabling any rule in production, confirm the expiry window against the pruning settings in your deployed n8n version.
In queue mode, the main instance, webhook processors and workers all need access to the same binary store, so the lifecycle rule must account for every component that can read or write those objects. Pruning of execution records happens in the main process, while workers may still be processing an execution whose binary files are about to expire. Align the expiry window with the longest time an execution can remain queued or running, not only with the retention you planned for finished runs.
- Shared store: Confirm that the main instance, webhook processors and every worker point at the same bucket and prefix in their configuration.
- Queue backlog: Add the expected worst-case backlog to the expiry window so that a delayed worker does not read a deleted file.
- Single owner: Assign one team to own the lifecycle policy, since several processes depend on it.
- Failure drill: Pause workers in a test environment for longer than the expiry window and check how failed executions behave.
- Change control: Treat any change to the expiry window as a configuration change that requires review across all instances.
Before you finalize the window, check how your queue backlog behaves under load and confirm the binary pruning behavior in n8n's queue mode documentation.
On Kubernetes, the lifecycle policy lives outside the cluster in the object store, while n8n pods come and go with rollouts, autoscaling and node drains. A lifecycle rule does not know about pod restarts, so an expiry window that looks safe for steady traffic can still delete files needed by a job that is retried after a rollout. Keep the bucket configuration in infrastructure code, separate from Helm values that change often, and confirm the object store endpoint and credentials are the same across every replica.
- Credentials: Provide S3 credentials through a Kubernetes secret or workload identity, scoped to the n8n prefix and the actions it needs.
- Rollout timing: Check that the expiry window is longer than the longest rollout plus the retry period for failed executions.
- Autoscaling: Recognize that scaling workers up or down does not change the lifecycle rule, but it changes how long queued work may wait.
- Multiple clusters: If more than one cluster uses the same bucket, define which one owns the rule and document it.
- Object store choice: Confirm the S3-compatible store you deploy supports the lifecycle features you plan to use, since support varies by product.
Before relying on a rule, verify the expiry behavior in a non-production cluster and confirm how your object store reports lifecycle actions in its own documentation.
Limits to confirm before you store n8n binary data in S3
Storing binary data externally adds a second system that your n8n instance depends on. The cards below cover the version, storage build, feature, network, recovery and failure questions to answer in your own environment before you point n8n at a bucket. Most of the answers depend on your n8n release and the MinIO build you plan to run.
n8n version compatibility with the chosen storage
Confirm that the n8n release you run supports external S3 binary storage in the mode you plan to use, and that your target version behaves the same way. Release behavior for binary data has changed across recent versions, so the upgrade path matters as much as the day-one setup. Record the exact n8n version in your change plan and retest storage after every upgrade. The version you deploy must be checked against the release notes, not against older guides.
- Latest release cited
- 2.43
MinIO release and build path
The MinIO community repository is archived and no longer ships pre-compiled binaries, so you must decide how you will build, patch and track the server yourself. Confirm which build path your team will own: building from source with a supported Go toolchain or a Docker image built from the provided Dockerfile. Ask who issues security fixes for the build you choose, because community support is best effort. The archived status is the first fact to confirm with your security team.
- Last tagged community release
- RELEASE.2025-10-15
Supported S3 features for lifecycle and versioning
Pruning binary data depends on lifecycle rules, and recovery depends on versioning. Test each S3 feature you plan to rely on, including expiration rules, noncurrent version handling and object tagging, against the exact storage product and version you run. Do not assume that a feature listed for AWS S3 works the same on an S3-compatible store. Write a test that creates, expires and restores a sample object before you rely on any rule in production.
Network latency between workers and storage
Every worker or webhook processor that reads or writes binary data calls the bucket, so latency and bandwidth between those nodes and the storage endpoint affect execution time. Measure round-trip time and throughput from each worker subnet to the storage endpoint, including any TLS termination or load balancer in the path. Consider placing storage in the same network zone as the workers. Ask your network team to confirm the path before you size the worker pool.
Backup and restore of bucket contents
Object storage is not a backup of your n8n database, and the database is not a backup of your bucket. Confirm how you will back up bucket contents, whether through replication to a second site, versioned snapshots or a separate backup tool, and test a restore into a clean environment. Check that the restored objects match the file references stored in the n8n database, because a mismatch leaves executions pointing at missing files. Write the restore runbook before go-live.
How a bucket outage affects running executions
Find out what n8n does when a write or read to the bucket fails during an execution. Test a planned outage in a staging environment with a live workflow that handles a file, and record whether the execution fails, retries or stalls. Confirm how long the storage endpoint can be unavailable before workflows that depend on it start failing, and set alerts on storage errors in your monitoring stack. Agree with the process owners how failed executions will be replayed.
Questions about cost, effort and ownership for S3 binary storage
What drives the effort of moving n8n binary data to S3 or MinIO?
The effort is driven less by the upload itself and more by the design decisions around it: how many buckets you create, how IAM roles and bucket policies are scoped, how lifecycle rules for pruning line up with n8n's own execution pruning, and how thoroughly the setup is tested in queue mode with main, worker and webhook processor instances. Each of these adds review and test cycles. A written scope should list the number of environments, the number of buckets, the IAM model and the test cases for queue mode, so you can compare quotes on the same basis.
Can our own team set up S3 external storage for n8n without a partner?
Often yes, if you already run object storage and have someone who owns IAM policy and n8n administration. The work is not exotic, but it touches three areas that are easy to get wrong: the bucket policy and credentials that n8n uses, lifecycle rules that delete objects on a schedule, and the behavior of binary data when you change storage modes. Teams with these skills in-house usually handle the build themselves and bring in outside help for testing, review or a second pair of eyes on retention. Confirm your team's skills against those three areas before deciding.
What do we need to provide during the engagement?
You need four roles filled. A storage administrator owns the S3 or MinIO service and its capacity. An IAM owner approves the roles and bucket policies n8n will use. An n8n administrator provides access to the instances, the database and the current binary data settings. A data or compliance owner signs off on how long binary files are kept before lifecycle rules delete them. Without the last sign-off, lifecycle rules can remove files a business process still needs, so agree the retention period in writing before any rule is applied.
Does the n8n license affect how we set up S3 storage?
Your license affects what you may run, not the storage configuration itself. n8n is licensed under the Sustainable Use License, which allows use for your own internal business purposes, and files with .ee in their name or directory require a valid n8n Enterprise License. Confirm with n8n which features your planned setup depends on and which plan includes them before you finalize the design, because a plan change later can alter the work. Ask for that license check to be a named item in the scope.
Does MinIO support change the plan for our storage choice?
Yes, it changes both cost and risk. The MinIO community repositories are archived and the community server is distributed as source code only, with support for the AGPLv3 community software described as best effort through GitHub and Slack. Commercial or proprietary use must be validated against AGPLv3 obligations, and SLA-backed support is available only through the commercial AIStor editions. If you choose MinIO, ask the vendor to confirm which edition you will run, who supports it and what the license review covers. If you choose a managed or enterprise S3 service, the support terms will differ and should be written into the scope.
What should a written quote for S3 binary storage include?
A useful quote lists the scope in concrete terms: the storage platform and edition, the number of n8n instances and environments covered, the number of buckets, the IAM roles and bucket policies to design, the lifecycle rules and the retention period they enforce, and the queue mode test plan with main, worker and webhook processor instances. It should separate one-time work such as design, build and testing from recurring work such as retention reviews, upgrades and monitoring. It should name the deliverables, the acceptance checks and what is excluded. Ask whether a retest is included after changes.
Who pays for ongoing storage and upkeep after go-live?
You pay for the storage capacity, the infrastructure that hosts it and the staff time that keeps permissions, retention and n8n versions aligned. Recurring costs grow with the volume of binary data and the number of instances, while one-time costs come from design and testing. Upgrades of n8n or the storage platform can change bucket behavior, so plan a regular review. Ongoing support and upgrades are available as retainers, and the scope for that should state what is covered and how often reviews happen.
How DeployOpen scopes an n8n S3 binary storage setup
DeployOpen starts with a written scope that records where n8n binary data is used today, which object store your organization runs and who owns its keys, buckets and retention rules. The work then moves through build, testing, documentation and handover inside your own infrastructure, with optional ongoing support.
How we scope
- Inventory which workflows create binary files and how large and how long-lived those files are.
- Confirm whether the target is AWS S3, a self-hosted S3-compatible store or another vendor's service, and the license position for that store.
- Agree in writing the bucket layout, IAM or access policy model, lifecycle pruning rules and the migration path from existing filesystem or database storage.
How we build
- Create buckets, access policies and least-privilege credentials in your accounts or data center, with secrets kept out of workflow definitions.
- Configure n8n's external storage settings in the test environment and verify that binary files write, read and prune as the scope describes.
- Test failure paths such as an unreachable bucket, expired credentials and a full store, and record how n8n reports each one.
How we hand over
- Document the bucket policy, lifecycle rules, key rotation steps and the encryption key handling that queue mode workers also need.
- Provide a runbook for pruning checks, restore steps and what to do when the object store version changes or is retired.
- Walk your platform, security and compliance teams through the evidence so they can review the setup without relying on DeployOpen.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Ask any partner, including DeployOpen, to confirm the object store vendor's current support terms and license obligations in writing before go-live.

