Why an EU MongoDB Atlas alternative must keep data and administrators under your control
For most EU organizations that question Atlas hosting, the main open-source option is self-hosted FerretDB on PostgreSQL in an EU data center, with one caveat: FerretDB is not a full MongoDB replacement, so applications that depend on unimplemented commands need a separate decision before any data moves. The sovereignty question is not answered by a region setting alone. Your compliance team needs to know where the data is stored, which people and systems can reach it, and which legal orders can reach the company operating the service.
An Atlas cluster runs in a hyperscaler region that MongoDB operates, so the operator's staff and support tooling sit outside your administrative control. Under the EDPB's Guidelines 05/2021, remote access from a third country, even only displaying data on a screen for support, counts as a transfer under GDPR Article 44, and storage in a cloud outside the EEA does too. Ask your provider to document every support path that can view or copy your data, and where each one operates.
Self-hosting moves those questions inside your own estate. Decide who holds the PostgreSQL superuser role, the FerretDB service accounts and the backup encryption keys, and confirm that none of them sit with a foreign operator. Then assess the legal exposure of the infrastructure provider you pick for the EU data center. The EDPB's Example 12 says that an EU processor subject to third-country law is not itself a transfer, but complying with a third-country authority request would be, so the assessment should cover the provider's own legal exposure. The EDPB's Recommendations 01/2020 also state that where a provider needs data in the clear and foreign public authority powers go beyond what is necessary and proportionate, no effective technical supplementary measure can be relied on. Ask counsel to confirm which of these risks apply to your provider before you sign.
What GDPR Chapter V and related rules require for hosted operational data
Hosting operational data with a provider outside the EEA, or under a provider that answers to foreign authorities, raises questions under GDPR Chapter V and several related EU and US rules. The cards below set out the rules that shape where data lives, who can reach it and how a foreign disclosure order can be enforced.
Remote access counts as a transfer
EDPB Guidelines 05/2021 state that storage in a cloud outside the EEA is a transfer, and so is remote access from a third country, even when a support engineer only views data on a screen. For an Atlas deployment, this means that operator access from outside the EEA can fall under Chapter V, not only the physical location of the cluster. Ask the provider where administrators sit, where support sessions originate and where backups and logs are stored. A self-hosted FerretDB on PostgreSQL in an EU data center keeps those answers under your own control.
EDPB Guidelines 05/2021Supplementary measures have limits
EDPB Recommendations 01/2020 say that where a cloud provider needs access to data in the clear and the destination's public authority powers go beyond what is necessary and proportionate, the EDPB cannot envision an effective technical supplementary measure. Following the CJEU's Schrems II judgment of 16 July 2020, standard contractual clauses remained valid, but the transfer assessment still has to test real foreign access powers. Encryption that the provider can unlock does not settle that question. Check whether the provider holds the keys and who can decrypt operational data.
EDPB Recommendations 01/2020CLOUD Act reaches data wherever it sits
The US CLOUD Act provision at 18 U.S.C. 2713, added on 23 March 2018, requires electronic communication and remote computing service providers to preserve or disclose data in their possession, custody or control, whether that data is inside or outside the United States. An EU region run by a US-headquartered provider therefore does not remove this exposure. Under the EDPB's Example 12, using an EU processor subject to third-country law is not itself a transfer, but complying with a third-country request would be. Ask your provider how it handles such requests and whether it commits to challenging them.
18 U.S.C. 2713 textForeign disclosure orders need a treaty
GDPR Article 48 allows a third-country court judgment or administrative decision requiring disclosure of personal data to be recognized or enforced only when it rests on an international agreement, such as a mutual legal assistance treaty, in force with the Union or a Member State. Your legal team should confirm which orders could reach your data through a provider and whether a treaty route exists for each. Article 83(5)(c) sets fines for infringements of Articles 44 to 49 of up to EUR 20 million or 4% of worldwide annual turnover, whichever is higher.
GDPR text on EUR-LexData Privacy Framework appeal pending
Commission Implementing Decision (EU) 2023/1795 finds adequate protection only for US organizations on the Data Privacy Framework List. The General Court upheld that decision in September 2025, and an appeal is pending as Case C-703/25 P. Whether your provider is on the list and how the outcome could change are questions to put to counsel and the provider. A decision that falls would move transfers back to other Chapter V tools, so your transfer documentation should not depend on the framework alone.
Appeal notice C/2025/6610Data Act switching and access rights
Article 32 of the EU Data Act (Regulation (EU) 2023/2854) requires data processing service providers to take measures against third-country governmental access to non-personal data held in the Union where that access would conflict with Union or national law. The Data Act has applied since 12 September 2025 and gives customers a right to switch to another provider or to on-premises infrastructure, with switching charges banned from 12 January 2027. Ask your provider for its switching terms and its government access policy in writing.
Data Act textWhere MongoDB Atlas meets and misses the sovereignty requirement
Atlas clusters run in hyperscaler regions operated by MongoDB, so an EU organization cannot treat the Atlas region selector alone as proof of sovereignty. Three questions remain open for each cluster: where the data is stored and backed up, who at MongoDB or its sub-processors can reach the data or the systems that hold it, and which third-country legal orders could reach the provider. Under GDPR Article 44, storage outside the EEA and remote access from a third country both count as transfers according to the EDPB Guidelines 05/2021, so each of these answers matters for personal data.
The supplied facts do not confirm which Atlas regions, support access paths or operator access controls match a given EU requirement, and this page does not claim that Atlas is non-compliant. Before you decide, ask MongoDB in writing which Atlas regions and backup locations are available for your project, how support engineers access customer environments and under what approval, and which sub-processors can touch data or metadata. Also confirm how the data processing agreement and standard contractual clauses cover these points. Your legal team should review the answers against the Chapter V conditions that apply to your organization.
The legal exposure is the part a contract cannot fully settle. The US CLOUD Act provision at 18 U.S.C. 2713 applies to data in a provider's possession, custody or control wherever it is located, and EDPB Recommendations 01/2020 state that where a provider needs access to data in the clear and third-country powers go beyond what is necessary and proportionate, no effective technical supplementary measure can be envisioned. Document this assessment for each Atlas deployment you keep. If the assessment concludes that operator access or foreign legal reach is unacceptable for your data, a self-hosted FerretDB on PostgreSQL deployment in your own EU data center moves those answers under your control.
Which open-source options keep MongoDB-style data under EU control
This table compares FerretDB on PostgreSQL, self-managed MongoDB and a PostgreSQL JSONB rewrite against EU residency, command coverage and licensing. Read each row as a question you need answered before choosing, and treat the licensing row as a prompt for legal review rather than a conclusion.
| Requirement | FerretDB on PostgreSQL | Self-managed MongoDB | PostgreSQL with JSONB |
|---|---|---|---|
| Licence | Apache-2.0 for FerretDB; PostgreSQL uses the PostgreSQL License | SSPL v1.0 for releases after October 16, 2018; AGPLv3 for earlier releases | PostgreSQL License, similar to BSD or MIT |
| Where data and administrators sit | Your EU data center or cloud account, with PostgreSQL and FerretDB operators you control | Your EU hosts, but confirm any MongoDB-provided tooling or support access paths | Your EU hosts, with no vendor-operated database layer |
| Third-country access exposure | Depends on your hosting provider and support model; confirm remote access and backup locations | Depends on your hosting provider and support model; confirm remote access and backup locations | Depends on your hosting provider and support model; confirm remote access and backup locations |
| MongoDB driver compatibility | Targets MongoDB 5.0+ wire protocol; test each application's commands | Full MongoDB feature set for the version you run | Requires application code changes to use SQL and JSONB |
| Transactions | abortTransaction and commitTransaction not implemented yet | Supported by MongoDB server | Full PostgreSQL transactions |
| Bulk writes and role management | bulkWrite and role commands such as createRole and rolesInfo not implemented yet | Supported by MongoDB server | Handled with PostgreSQL roles and grants |
| Version pairing | Each 2.x release needs a matching DocumentDB version; v2.7.0 pairs with v0.107.0-ferretdb-2.7.0 | Upgrade path follows MongoDB release policy | PostgreSQL major versions supported for 5 years each |
| Main trade-off | Lower compatibility surface, so application testing decides feasibility | Keeps full driver behavior but adds SSPL obligations if you offer it as a service | Strong operational fit but a rewrite of data access code |
Which application features FerretDB does not cover yet
Before you commit to FerretDB, confirm that your application only uses commands FerretDB implements. The documented supported set includes aggregate, count, distinct, find, insert, update, delete, findAndModify and getMore. The compatibility documentation lists abortTransaction and commitTransaction as not implemented yet, along with bulkWrite, killOp, shutdown, profile and role management commands such as createRole and rolesInfo. Walk through every driver call in your codebase, including background jobs, migrations and admin scripts, and match each one against the FerretDB compatibility list in a staging environment before you plan the cutover.
Two differences affect error handling and data rules. FerretDB states that its error names and codes match MongoDB's, but exact error messages may differ. If your code parses message text, for example to detect duplicate keys or retry on specific failures, switch that logic to error names and codes and test each path. Also, collection names must be valid UTF-8. Audit collection names created by your applications and any legacy data, because a name that works on Atlas may be rejected during mongorestore. Rename or map those collections before the dump, and record the change in your migration runbook so compliance reviewers can trace it.
Treat the gaps as a go or no-go decision per application. Services that depend on multi-document transactions to keep financial or personal records consistent need a redesign, such as moving the workflow to PostgreSQL transactions or splitting writes into idempotent steps, before they can run on FerretDB. Applications that manage database users and roles through the driver should keep role administration on MongoDB or move it to infrastructure tooling. Where a service cannot change, it should stay on MongoDB, and you should confirm with your security team how that exception is documented, since it sits outside the EU-hosted setup this page describes.
How to deploy FerretDB on PostgreSQL in an EU data center
This sequence produces a FerretDB 2.x service backed by PostgreSQL with the DocumentDB extension, running in an EU facility or cloud region your organization controls, with access, replication and failover handled by people you can name and audit.
Choose the EU facility and operating boundary
Your compliance and infrastructure leads select a data center or EU cloud region where your organization holds the account, the administrator credentials and the physical or contractual control. Confirm in writing with each provider where backups, snapshots, logs and support tickets are stored, and which legal entity operates the infrastructure. Done when the boundary, the data locations and the list of parties with infrastructure access are documented and signed off by your data protection officer.
Match PostgreSQL and DocumentDB versions to FerretDB
Your platform engineers pick the FerretDB 2.x release they will run, then install the DocumentDB extension version that the FerretDB release notes name for it, since each 2.x release requires a matching DocumentDB version. Choose a supported PostgreSQL major version from the PostgreSQL versioning policy, with its end-of-support date recorded in your patch calendar. Done when a test instance starts, the extension loads, and the version pair is written into your configuration baseline.
Build the PostgreSQL cluster with a separate test path
Your database team installs PostgreSQL on dedicated hosts or virtual machines in the chosen location, with storage encryption, time synchronization and host hardening applied by your own standards. Use
ferretdb-evalonly for local experiments, because it bundles PostgreSQL with DocumentDB and mongosh but loses data on shutdown, so it is not for production. Done when a staging cluster with the DocumentDB extension passes your restore and connection tests.Configure PostgreSQL authentication and encryption
Your security engineers set
password_encryptionto SCRAM and disable MD5 password authentication, then choose the methods your directory supports, such as certificates, GSSAPI, LDAP or PAM, as documented in the PostgreSQL client authentication methods. Restrict each role inpg_hba.confto specific source networks and require TLS for every connection. Confirm which methods your chosen version supports before you rely on them. Done when a connection attempt without a valid certificate or password is refused in your test.Deploy FerretDB behind TLS with controlled access
Your platform team runs FerretDB from its Linux package, Docker image or embedded build, pointed at PostgreSQL with a dedicated least-privilege role. Terminate TLS in front of FerretDB or on its listener, and place it on an internal network reachable only from approved application subnets. Align application access with your identity provider through the controls your application layer provides, and confirm how FerretDB authenticates clients for your version. Done when an application connects through the TLS endpoint and direct database access from outside the network fails.
Add synchronous or asynchronous replicas
Your database team adds hot standby servers that serve read-only queries. Choose synchronous replication when a commit must wait for the standby, which protects data at the cost of write latency, or asynchronous replication when some data loss on failover is acceptable under your recovery objectives. Keep replicas in the same EU boundary as the primary. Done when replication lag is monitored, and a test write on the primary appears on each standby.
Plan failover with external tooling
PostgreSQL does not detect a primary failure or notify the standby itself, so your team selects an external failover tool, such as a cluster manager or consensus-based orchestrator that runs inside the EU boundary, and tests promotion in a controlled drill. Document who may approve a promotion, how application connection targets change, and how the old primary is fenced. Done when a drill promotes a standby, the application reconnects, and the failover runbook is approved by the operations owner.
Restrict administrator and support access to EU staff
Your security team limits database superuser, host root and backup-key access to named EU-based staff under your control, with each grant recorded and reviewed. Ask any external support provider to confirm in writing that remote sessions originate from the EU, that displaying data on screen from a third country is excluded, and that no operator outside the EU can reach backups or logs. Done when the access register lists each person, their location and their approved role, and remote access logs are retained in the EU.
How the EU trust boundary separates applications, FerretDB and administrators
The diagram starts with application servers in the EU data center, which connect to FerretDB over the MongoDB wire protocol. FerretDB translates those requests into SQL for PostgreSQL with the DocumentDB extension, which holds the primary data, a replica and the backups, all kept inside the EU boundary. Administrators reach the database only through the EU administration path. The red dashed path marks third-country access, including remote viewing from outside the EEA, which the trust boundary is meant to exclude. Check that every administrator account, support tunnel and backup copy sits inside the boundary.
Data, replicas and administrator access stay inside the EU boundary; third-country paths are excluded.
How PostgreSQL operations and exit paths protect sovereignty over time
Sovereignty over an EU database is not settled on the day of deployment. It depends on whether your team can keep the PostgreSQL layer patched, upgraded, recoverable and movable without help from the vendor that originally set it up. PostgreSQL helps here because minor releases never change the internal storage format, so a minor update means replacing executables and restarting the server. Plan a recurring minor-update window in your change calendar, and confirm that your DeployOpen or internal runbook records who approves it and how a failed restart is rolled back.
Major upgrades need more planning. The supported versions are 14 through 18, with end dates of November 12, 2026 for 14, November 11, 2027 for 15, November 9, 2028 for 16, November 8, 2029 for 17 and November 14, 2030 for 18, according to the PostgreSQL versioning policy. Before any of those dates, choose between pg_upgrade, a dump and restore, or logical replication. Logical replication works across major versions and, as the upgrade documentation describes, can cut the switchover to several seconds of downtime, but it needs a rehearsal against a copy of production. Keep the FerretDB and DocumentDB versions in the same plan, because a FerretDB 2.x release must match its DocumentDB version.
Exit planning belongs in the same runbook. Continuous archiving with point-in-time recovery lets you restore to a chosen moment, which matters for both ransomware recovery and a disputed deletion. Put the base backups and WAL archive in storage located in the EU, under keys your team controls, and test a restore into a separate host at least on a set schedule. PgBouncer can pool connections in front of the database, which helps when the application or FerretDB opens many sessions, but its configuration should be version controlled like any other part of the stack.
The EU Data Act gives customers of data processing services a right to switch to another provider or to on-premises infrastructure, applicable since September 12, 2025, with a maximum two-month notice period and a 30-day transition under Articles 25 and 29. Switching charges are banned from January 12, 2027. Read your hosting and support contracts for how these terms apply to your arrangement, and confirm with counsel which services count as data processing services. Treat the exit path as a tested procedure, not a clause in a contract.
What auditors and regulators ask to see for EU hosting
Auditors and data protection authorities rarely accept a statement that data stays in the EU. They ask for dated records that show where data sits, who can reach it from outside the EEA, and how access is controlled and tested. The cards below list the evidence DeployOpen can help you prepare for an assessment.
Processing locations and transfer assessments
Keep a register that names each data center, cloud region, backup site and support location holding FerretDB and PostgreSQL data, with the legal entity that operates it. Pair it with a transfer assessment for every location outside the EEA. EDPB Guidelines 05/2021 treat storage in a cloud outside the EEA as a transfer, so the register must show where copies and logs also land. Confirm the hosting location and every sub-processor with your provider in writing before the register is final.
EDPB transfer guidelinesArticle 44 analysis for remote access
Document every path by which someone outside the EU can view or change data, including vendor support sessions and screen sharing. Under Article 44, remote access from a third country is a transfer even when no data is copied. Record who may connect, from where, through which bastion, and under what approval. Ask your MongoDB-to-FerretDB operators and any managed hosting provider to confirm their support access model.
GDPR textAdministrator access logs and role inventories
Produce a current list of database administrators, PostgreSQL roles and FerretDB users, with the date each was granted. Pair it with logs of administrative sessions, schema changes and privilege grants. FerretDB does not yet implement role management commands such as createRole and rolesInfo, so role evidence must come from the PostgreSQL layer and your identity system. Confirm which logs your PostgreSQL configuration writes and where they are retained.
Encryption and authentication configuration
Assessors look for configuration evidence, not promises. Capture the TLS settings on client and replication connections, the storage encryption method for data volumes and backups, and the PostgreSQL authentication method in pg_hba.conf. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so a current file should show SCRAM or certificate-based methods. Keep exported configuration files with dates and the person who approved them.
Backup location and restore test records
Record where base backups and WAL archives are written, which jurisdiction holds them, and who can restore them. Point-in-time recovery depends on continuous archiving, so the archive location is part of the transfer picture. Auditors also expect proof that a restore has been tested, so keep dated restore logs showing the time taken and the data checked. Ask for these records from any backup provider you use.
PostgreSQL archiving docsProcessor contracts and Article 32 measures
If a hosting company, managed FerretDB provider or support firm handles personal data, you need a processing agreement and records of the security measures under Article 32. Check that the contract covers the processing locations, sub-processors, breach notice and deletion at exit. Where a processor is subject to third-country law with extraterritorial reach, EDPB Guidelines 05/2021 (Example 12) advise assessing the risk of a foreign authority request before engaging it. Ask counsel to review these clauses.
Questions EU buyers ask before hiring help with an Atlas exit
Does FerretDB fully replace MongoDB Atlas for our application?
Not automatically. FerretDB speaks the MongoDB 5.0+ wire protocol and supports commands such as aggregate, count, distinct, find, insert, update, delete, findAndModify and getMore, so many applications run unchanged. The gaps matter: abortTransaction and commitTransaction are listed as not implemented yet, along with bulkWrite, killOp, shutdown, profile and role management commands such as createRole and rolesInfo. Atlas features such as its managed backups, search indexes and cluster automation are not part of FerretDB, so you must map each one your application or operations team relies on. Test your own driver calls against the compatibility list before committing to a date. Confirm current command coverage against the release you plan to run, since each FerretDB 2.x release requires a matching DocumentDB version.
What drives the cost of self-hosting FerretDB compared with Atlas?
Self-hosting moves cost from a single vendor invoice into components you pay for separately: the servers or virtual machines in your EU data center, storage, high availability with standby capacity, backups and their storage, monitoring, patching, and staff time. FerretDB and PostgreSQL carry no license fee, but the DocumentDB extension and the PostgreSQL operations behind it still need an owner. Atlas pricing is tied to its cluster tiers, so your Atlas bill is a reference point, not a like-for-like figure. The main cost drivers are data volume, required availability, backup retention, the number of environments and the amount of application testing needed. When you ask for a quote, request each component priced separately, one-time work (assessment, testing, migration, hardening) apart from recurring work (upgrades, monitoring, support), and the assumptions behind each line.
How long does an Atlas to FerretDB migration take?
The duration depends on the number of commands your application uses that need changes, the data volume, the downtime window you can accept and how many environments must be validated. The documented method is a dump with mongodump and a restore with mongorestore against the FerretDB URI, or mongoexport and mongoimport collection by collection, preceded by a pre-migration testing step. A small dataset with a narrow command set is a short exercise; a large dataset with transactions in the application code, or with features still missing in FerretDB, needs redesign and retesting first. Ask any provider for a written scope that lists the test cases, the cutover plan and the rollback path, since those items set the timeline more than the copy itself.
Can our internal team run a FerretDB migration without outside help?
Yes, if the team has the skills to match the work. A capable internal team needs people who can test the application's MongoDB calls against the compatibility list, run dumps and restores, operate PostgreSQL (backups, point-in-time recovery, replication, upgrades) and plan the cutover. PostgreSQL does not detect a primary failure or perform automatic failover on its own, so you also need a failover tool and someone who can run it. Check your team's experience with each of these areas before you decide. Many organizations use outside help for a fixed-scope assessment and testing, then run the platform themselves. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted platforms in your own infrastructure, and engagements are fixed-scope with the deliverables agreed in writing first.
Can we keep some workloads on Atlas during the transition?
Yes, a split is common, but it has to be designed. Keep in mind that data a workload stores in Atlas is held in a hyperscaler region operated by MongoDB, so for EU personal data the storage location and the operator's access are the questions to settle first. For GDPR purposes, storing personal data in a cloud outside the EEA, or allowing remote access from a third country even only to display data, counts as a transfer under the EDPB Guidelines 05/2021, so any remaining Atlas workload must be assessed on that basis. Separate the workloads by data category, document the transfer assessment for each, and confirm with your data protection officer or counsel which ones may stay. Plan the connection between the two environments, since a split adds latency, credentials and monitoring to maintain.
Does self-managed MongoDB avoid the SSPL?
Not on the basis of self-hosting alone. MongoDB states that its server and tools released after October 16, 2018, including patch fixes for earlier versions, are licensed under the Server Side Public License v1.0, while earlier versions are under the GNU AGPL v3.0. Whether the SSPL restricts your use depends on how you offer the software to others, and that question belongs with your legal counsel and, where needed, MongoDB's licensing terms. FerretDB is Apache-2.0 licensed, and PostgreSQL is under the PostgreSQL License, which is why this option is often chosen for licensing clarity. Ask counsel to review the licenses of every component in the final stack, including the DocumentDB extension, before you rely on that conclusion.
What should an EU buyer ask a provider before signing a migration scope?
Ask for the data location of every environment, including backups, logs and monitoring data, and for the named operators who can reach production. Ask which FerretDB and DocumentDB versions will be deployed and how upgrades will be handled, since each FerretDB 2.x release requires a matching DocumentDB version. Request a written list of the application commands that will be tested, the migration method, the cutover and rollback plan, and the handover of runbooks. Ask how the provider documents evidence for your compliance team, and confirm that the provider does not issue audit reports or certifications, which must come from independent auditors or certification bodies. Confirm the terms for support after handover in writing.
How DeployOpen deploys FerretDB under EU sovereignty requirements
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including EU data centers. For an EU sovereignty requirement, we start by mapping where personal data, backups, logs and administrator access sit, then deploy FerretDB on PostgreSQL under the client's own controls.
How we scope
- Written scope lists the applications, collections and data categories that will move off Atlas and where they will be hosted.
- Scope records which EU data center, cloud account or on-premises facility holds data, backups and logs.
- Scope names who holds administrator, support and break-glass access, including any non-EU personnel or vendors.
How we build
- We deploy FerretDB with its matching DocumentDB extension version on PostgreSQL in the client's chosen EU environment.
- We configure SSO, role-based access, audit logging and encrypted connections so the client's security team can review them.
- We test application commands against FerretDB's compatibility list and document unsupported commands such as multi-document transactions before cutover.
How we hand over
- Deliverables include architecture, data flow and access documentation that compliance and legal teams can review against their transfer analysis.
- We document backup, restore and PostgreSQL upgrade runbooks, including the version support windows the client must plan around.
- We prepare the controls and evidence for a compliance assessment, while independent auditors and certification bodies issue any audit report or certification.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retainers can cover FerretDB and DocumentDB version matching, PostgreSQL minor updates and periodic restore tests.
- Ask any provider, including DeployOpen, to confirm in writing who can access the data and where support is performed.
Sources and further reading
- Regulation (EU) 2016/679 (GDPR) ↗
- EDPB Guidelines 05/2021 on the interplay between Article 3 and Chapter V of the GDPR (version 2.0) ↗
- EDPB Recommendations 01/2020 on measures that supplement transfer tools (version 2.0) ↗
- 18 U.S.C. 2713, Required preservation and disclosure of communications and records ↗
- FerretDB GitHub repository ↗
- FerretDB docs: Compatibility ↗

