What the Odoo production security checklist covers before internet exposure
An Odoo server is about to be published to employees, customers or the public web, and the team needs to know what must be true before that happens. The production security checklist is a set of configuration and infrastructure checks completed before exposure, not a one-time scan run after launch. Each check either closes a path an outsider could use or confirms that a control exists and works. Nothing on the list is optional once the server answers requests from the internet.
The checklist covers the database manager at /web/database, the admin_passwd master password, database listing and dbfilter so that a visitor sees only the database they should, and a PostgreSQL role that is not a superuser. It also covers removing demo data, HTTPS with HSTS, limits set at the reverse proxy, SSH key access, firewall rules that expose only the ports you intend, and backups stored off the server. Each item has a verifiable end state, so the person signing off can check it on the running system rather than trust the install notes.
Odoo's own login protections are a separate layer and are not part of this checklist. Password rules, login cooldown, CAPTCHA and brute force blocking are covered on the sibling pages for those topics, and they assume the server-level checks above are already in place. Before you start, confirm which Odoo version and hosting method you run, since the file locations and settings depend on them, and ask your partner or internal team to record who owns each check and how it is retested after changes.
Checklist items, what each one prevents and when it applies
This table maps each check on the production checklist to the attack or failure it prevents, the configuration or evidence to look for, and whether it applies to every deployment or only some. Use it as a sign-off sheet before any Odoo instance accepts traffic from the internet. Key names and default behavior change between versions, so confirm each setting against the Odoo documentation for the version you run.
| Check | What it prevents | Configuration or evidence to look for | When it applies |
|---|---|---|---|
| Strong master password (admin_passwd) | Anyone who guesses or finds the database manager password can create, copy, restore or drop databases. | A long random value set in the server configuration file, not the default. Confirm the key name and how the master password is stored for your version. | Every internet-facing instance, including those where the database manager is disabled later. |
| list_db and db_name | Visitors enumerating database names from the login screen, or landing on the wrong database. | Database listing turned off in the configuration, and db_name set when only one database is served. Confirm how each key interacts with dbfilter. | Every production instance. Single-database deployments benefit most. |
| dbfilter | Requests for one customer's hostname reaching another customer's database on a shared server. | A regular expression tied to the host name the proxy forwards, tested with a request for an unknown host. | Multi-database servers, and any server where the proxy forwards more than one hostname. |
| Non-superuser PostgreSQL role | A compromised Odoo process or SQL injection in a module gaining control of the whole PostgreSQL cluster. | The Odoo database role owns only its databases and has no superuser or createrole privilege. Check with a catalog query after setup. | Every deployment. Confirm which role must create extensions or databases during installation and upgrades. |
| Demo data removed | Demo accounts, sample records and known default logins being available to outsiders. | Installed databases created without demo data, and no demo users left in the user list. | Every production database. Demo data may be present in copies made for testing, so check those too. |
| HTTPS with HSTS | Credentials and session cookies sent in clear text, and downgrade to plain HTTP after the first visit. | Valid certificate chain, HTTP redirected to HTTPS, and a Strict-Transport-Security header in responses. Confirm the header values with your security standard. | Every internet-facing instance. Internal-only instances still need a plan for encrypted access. |
| Proxy request limits | Oversized uploads, slow request floods and abuse of expensive endpoints reaching the application workers. | Limits on request body size, timeouts and connection rates at the reverse proxy, with the matching Odoo worker settings. Confirm the exact directives for your proxy and Odoo version. | Every internet-facing instance. Limits must be tested against large imports and report downloads that users need. |
| SSH key-only access | Password guessing against the server login and use of shared or default administrator accounts. | Password authentication disabled in the SSH daemon configuration, named administrator accounts, and keys reviewed when staff change. | Every server hosting Odoo, including containers that expose SSH on the host. |
| Firewall rules for database and admin ports | Direct connections to PostgreSQL, the Odoo longpolling or HTTP ports and admin tools from networks that should not reach them. | Firewall policy that allows only the proxy and administrator networks to reach the Odoo and database ports. Verify with a scan from outside the trusted network. | Every deployment. Rules must cover container and cloud security groups as well as the host firewall. |
| Off-server backups | Losing the database and filestore together with the server, or a ransomware event that encrypts the only copy. | Scheduled database and filestore backups stored off the server, with a tested restore to a separate host. Ask for the restore record, not only the backup job log. | Every production instance. Confirm retention, encryption and access rules with your recovery requirements. |
Odoo production security checklist steps in the order to run them
This sequence takes a self-hosted Odoo server from a version check to a tested, off-server backup, with each step closed by a check you can repeat. Run in this order, each control protects the next one, so nothing is exposed to the internet before the database manager, database access and transport are locked down.
Confirm the Odoo version and support window
Before changing anything, record the exact Odoo version in use and its support end date from Odoo's standard and extended support documentation. Odoo 17.0 standard support ended in September 2026, and security patches are only provided during standard support, so an out-of-support version needs an upgrade plan before it is exposed. Confirm whether your edition is Community or Enterprise, because that decides whether you can use the upgrade service. Done when you have a written version, edition and support end date that the owner signs off on.
Lock down the database manager and master password
Set a long, randomly generated admin_passwd in the Odoo configuration file so the master password cannot be guessed, and store it in your secrets vault rather than in a shared document. Turn off database listing and database management screens for production, so /web/database is not an open door for anyone who finds the URL. Done when the configuration file holds the new master password, the database manager is disabled, and a second person has confirmed the value is recorded in the vault.
Set dbfilter and disable database listing
Set list_db to False and set dbfilter so that Odoo only answers for the one database the hostname should reach, for example a pattern tied to your production domain. This stops Odoo from presenting other databases on the same PostgreSQL cluster to visitors. Test by requesting the site with the production hostname and with an unrelated hostname, and confirm the second request gets no database content. Done when the production host loads, the unrelated host fails, and the database selector no longer appears.
Create a non-superuser PostgreSQL role
Create a dedicated PostgreSQL role for Odoo that owns or can write only its database, and do not give it superuser rights. Odoo needs to create and alter its own tables during install and upgrades, so a DBA should confirm the exact privileges the role needs and no more. Keep the postgres superuser for administration only, and restrict the role to connections from the Odoo host in pg_hba.conf. Done when the Odoo service connects with the new role, a query for superuser status returns false for that role, and connections from other hosts are refused.
Remove demo data
Check that the database was created without demo data, or remove it if it was loaded during a test install. Demo users and sample records carry well-known credentials and fixtures that attackers try first. Review the user list for any account with a default or blank password and disable it. Done when a search of users shows no demo accounts, no account with a known default password remains, and the only administrator accounts are the named people who need them.
Place the reverse proxy with HTTPS and HSTS
Put Odoo behind a reverse proxy that terminates TLS, redirects plain HTTP to HTTPS, and sends a Strict-Transport-Security header with a max-age your security team approves. Set proxy_mode in the Odoo configuration so Odoo trusts the forwarded headers, and make sure Odoo listens only on the local interface, not the public one. Confirm the certificate chain with an external scanner or openssl. Done when the site serves only over HTTPS, the HSTS header appears in responses, and a direct request to the Odoo port from outside the host fails.
Set proxy limits and block the database manager path
At the proxy, return a refusal for any request to /web/database so the database manager stays unreachable even if a setting is changed later. Set request body size and timeout limits that suit your largest expected upload, and apply rate limits to the login path, pairing them with the login protections your team configures in Odoo. Done when a request to /web/database from outside the network returns a refusal from the proxy, a large test upload is rejected above your limit, and a burst of login attempts is throttled in the proxy logs.
Restrict SSH and the firewall
Allow SSH only with key-based authentication, disable password login and direct root login, and limit the source addresses that can reach SSH to your administration network. Open only the public HTTPS port on the host and keep PostgreSQL and the Odoo worker ports closed to the internet. Verify from an outside network that the database port and the Odoo application port are closed, and that SSH refuses password logins. Done when a port scan from outside shows only the intended public ports and your team can log in with a key.
Configure off-server backups and test a restore
Schedule database and filestore backups that are copied to storage outside the Odoo server, with encryption and a retention period your records policy requires. A backup has not been proven until it is restored, so restore the most recent copy to a separate host with no connection to production, start Odoo there, and confirm that logins and key records load. Record the time taken and any errors as your baseline. Done when a restore completes on the separate host, Odoo starts with the restored data, and the result is written into the runbook for the next review.
How requests and administrative access reach Odoo and PostgreSQL
The diagram starts with internet clients, who reach only the firewall and then the reverse proxy, where HTTPS and request limits are enforced. The proxy hands traffic to the Odoo server, which connects to PostgreSQL through a non-superuser role rather than a superuser account. Administrators never reach the host directly from the internet: they connect over SSH with keys, only from inside the firewall boundary. Backups leave the server for separate off-server storage, so a compromise of the host does not also destroy the copies. Check each boundary against the checklist before exposing the server.
Trust boundaries from internet clients and administrators to Odoo, PostgreSQL and off-server backups.
Why the database manager and PostgreSQL role are the first gates to close
Before any other control matters, the database manager and the PostgreSQL role decide how much an outside party can do to an exposed Odoo server. The database manager screens, reachable under /web/database, let a visitor who reaches them try to create, duplicate, back up, restore, drop or list databases, and they are protected only by the master password defined in admin_passwd in the Odoo configuration file. If that password is weak, shared, left at a default, or never set, the attacker does not need to exploit an application flaw to reach the data of every database on the instance. The practical checks are to confirm that the screens are disabled or blocked at the reverse proxy, that list_db is turned off so database names are not disclosed, that dbfilter or db_name pins each hostname to the correct database, and that a random master password is set and stored in your secrets process. Confirm how your version handles each of these settings, because the defaults and the exact behavior of the database manager have changed over time and should be checked against the documentation for the release you run.
The database role Odoo uses to connect to PostgreSQL is the second gate. Odoo needs to own and modify its own databases, but it does not need superuser rights on the PostgreSQL cluster, and a superuser role lets any code path that runs inside Odoo read or change other databases on the same server, alter roles, or reach the operating system through functions that a superuser can call. A flaw in a standard module, a custom module, or a third-party app then carries far more risk than it would under a limited role. Ask your database administrator to create a dedicated role without superuser or CREATEROLE rights, confirm that it can create databases only if your database manager workflow needs that, and confirm that the role can reach only the databases it must use. Record the role name, the privileges granted, and who approved them, because this is the setting auditors and penetration testers usually ask about first.
Treat these two gates as a pair. Turning off the database manager removes the easiest route to the database list, and a restricted PostgreSQL role limits what remains reachable if an application-level weakness is found later. Plan both changes in the same change window and test the Odoo login, the database selector and any scheduled jobs afterward. If your team needs the database manager for restores or new instances, decide in advance how it will be reached (for example, from a management network only), since that decision determines the proxy rules you write in the rest of the checklist.
Risks that stay open when a checklist item is skipped
Each item on the production checklist closes a specific path into a self-hosted Odoo database. Skipping one does not break the site visibly, which is why these gaps often survive until someone looks for them. The cards below name the control, then the exposure that remains without it.
Exposed database manager
Odoo's database manager lets anyone who can reach the login pages list, create, back up, restore or drop databases, provided they know the master password. If list_db is left on, the database names are also visible to any visitor. Before go-live, confirm that list_db is set to False, that db_name pins the database for each instance, and that the /web/database paths are blocked at the reverse proxy if they must stay reachable.
Guessable or missing master password
The master password (admin_passwd) is the key to the database manager, so a default, reused or short value turns every other control into a formality. Check that the value in the configuration file is long, random and stored outside the shared repository. Record where the password is kept and who can retrieve it, because a lost value is a recovery task that needs its own procedure.
Superuser database role
If the Odoo connection uses a PostgreSQL role with superuser rights, a compromise of the application can extend to the whole database server, including other databases on it. Confirm that the role Odoo uses owns only what it needs, and that administrative tasks run under a separate account. Ask your DBA to confirm the grants, since the checklist alone does not show what the role can reach.
Demo data in production
Demo databases ship with sample partners, users and records that are publicly documented and easy to guess. Leaving demo data loaded in a production database means known accounts and sample content sit beside real customer records. Confirm that the database was created without demo data, and that any test copy used for staging is neutralized before anyone logs in to it.
Traffic without HTTPS or HSTS
Without HTTPS, login credentials, session cookies and business records cross the network in readable form. Without HTTP Strict Transport Security (HSTS), a browser may still make an initial plain request before it is redirected, which leaves a window for interception. Check that the proxy redirects all HTTP traffic to HTTPS and sends the HSTS header, and that the Odoo instance is not reachable on its plain port from outside.
Unlimited proxy requests
A reverse proxy with no request or connection limits passes every login attempt and API call straight to the Odoo workers. A small number of clients can then tie up the workers and slow the application for everyone. Confirm that the proxy sets rate limits on the login and database paths, and that timeouts and body size limits are set, so that a flood of requests is refused at the edge instead of at the application.
Password-based SSH access
Servers that accept password logins over SSH can be targeted by repeated guessing against any account that has a shell, including the account that runs Odoo. Key-only access with password authentication disabled removes that route. Confirm that root login is disabled, that each administrator has a personal key, and that the list of keys is reviewed when people leave the team.
Backups kept only on the same host
A backup stored only on the Odoo server is lost with the server, whether the cause is a failed disk, a ransomware event or an accidental deletion. Off-server copies of both the PostgreSQL database and the filestore are needed to restore a working instance. Ask the team to show a restore into a separate environment, not just a backup job that reports success.
How the Odoo support window sets the patching deadline
Your patching deadline is set by your Odoo version's support window, not by the date you last updated the server. Security patches are only provided during standard support, which covers the first three years after a major release on Odoo Online, Odoo.sh and on-premise. Once standard support ends, a version stops receiving security fixes unless it falls under paid extended support, and that option is limited to Odoo.sh for select versions and to on-premise installs. Check the dates for your exact version before you schedule the next change window, because a checklist that is correct today can go stale within a single release cycle.
The documented dates show how quickly the window can close. Odoo 19.0 (September 2025) has standard support until September 2028, Odoo 18.0 (October 2024) until September 2027, and Odoo 17.0 standard support ended in September 2026. A server still running 17.0 is therefore outside security patching, and the internet-facing controls in this checklist will not compensate for unpatched core code. SaaS versions are released every two to three months and cannot use extended support, so Odoo Online and Odoo.sh users should plan for regular version movement. On Odoo Online and Odoo.sh, major upgrades are mandatory every two years, which means the upgrade is a scheduled event, not an optional project.
Ask Odoo or your partner three things before you set the deadline: which version and hosting type you run, the exact end date of standard support for that version, and whether extended support is available for your plan. Then add the upgrade to your roadmap with time for testing on an upgraded copy of the database, since Odoo's upgrade service is designed to be checked before production. Confirm your own version and plan with Odoo directly, using the Odoo standard and extended support documentation as the starting reference.
Where the checks change between a Linux server and a Docker host
On a Linux server or virtual machine, Odoo runs as a system service under a dedicated account, reads its settings from a configuration file on the host, and connects to a PostgreSQL instance on the same machine or on a database host you manage. Each check touches files and services you can inspect directly, so the verification is a set of host-level reviews.
- Master password and config file: Set
admin_passwdin the server configuration file, commonlyodoo.conf, at the location your install method documents. Restrict read access to the Odoo service account and root, because the file holds the master password and database credentials. - PostgreSQL access: Confirm the Odoo role is not a superuser and that
pg_hba.confallows connections only from the Odoo host or its local socket. Check that the role cannot create databases beyond what your setup requires. - Proxy and firewall: Bind Odoo to localhost or a private interface, let the reverse proxy terminate HTTPS, and apply host firewall rules with a tool such as nftables, firewalld or ufw. Only HTTP, HTTPS and your administrative SSH source should be reachable from outside, and the application port must not be exposed directly.
- SSH access: SSH is configured on the same machine that runs Odoo. Key-only login and disabled root login in the SSH daemon settings cover the whole host in one pass.
- Backups: Schedule database dumps and filestore copies from the host to storage outside it, and test a restore on a separate machine.
Confirm the configuration file path, service name and PostgreSQL authentication method against the Odoo on-premise documentation for your version before you change anything.
In a Docker deployment, Odoo runs inside a container built from an image. The configuration file, filestore and secrets usually come from mounted volumes, environment variables or a secrets mechanism defined in a compose file or orchestrator. The checks remain the same, but you verify them in the container definitions, the Docker network and the host.
- Master password and config: The admin password and database settings reach the container through a mounted configuration file or environment variables. Search the compose file for plaintext values, move them into Docker secrets or an external secrets store, and confirm no other container can read the configuration directory.
- PostgreSQL reach: The database is usually a separate container or host on a Docker network. Confirm it is not published on a host interface, that the Odoo role is non-superuser, and that the network links only the Odoo container to the database.
- Proxy and firewall: Docker writes its own iptables rules, so a host firewall can be bypassed when a port is published with the
-pflag. Publish only the proxy container's ports, bind them to specific addresses, and test from outside the host after each change. - SSH access: SSH is configured on the Docker host, not in the container, and containers should not run an SSH service. Limit who belongs to the
dockergroup, because membership in that group gives effective root control of the host. - Backups and volumes: Back up the named volumes or bind-mounted directories that hold the filestore and the database, and copy them off the host. Confirm the backup job reads the correct volumes.
Confirm image tags, volume paths and how the database container is networked against the Odoo documentation for your version and your compose or orchestrator documentation.
Limits to confirm in your own environment before go-live
The checklist covers what you configure on the server, but several conditions sit outside it: the Odoo version, the subscription, the modules installed and the infrastructure around the server. Confirm each one with your team or vendor before the server is exposed to the internet.
Odoo version and edition
Confirm which Odoo major version and whether Community or Enterprise is running. Standard support covers the first three years after a major release, and security patches are only provided during standard support, so the version sets how long your server stays patchable. Ask the team for the exact version and the date its standard support ends. Ask whether the server runs a supported release or one that has already passed its window.
- Standard support window
- 3 years
Enterprise subscription status
Check whether the Enterprise subscription is active and tied to this database. Enterprise databases are activated with a subscription code, and the upgrade service and security advisories for on-premise use depend on that subscription. Community installs have no access to the upgrade service. Ask for the subscription record and the list of databases it covers.
Custom and Apps Store modules
List every custom module, OCA module and Apps Store module installed on the server. Each one adds code that runs on the internet-facing server and may use sudo calls, public controllers or raw SQL that bypass access rules. Ask the team for the module list with versions, the source of each module and who maintains it after go-live.
Hosting firewall and network controls
Compare the cloud security groups, network access lists or data center firewall with the rules in your design. Confirm that only the reverse proxy ports are open to the internet, that PostgreSQL and the Odoo worker ports are not reachable from outside, and that SSH is limited to approved addresses. Ask for an exported rule set and a test from outside the network showing which ports answer.
Off-server backup restore
Confirm that backups are stored on a separate system or account and that a full restore has been tested into a clean environment. A backup that sits on the same host or in the same account protects against few failures. Ask for the backup location, retention settings, the date of the last successful restore test and the time it took to bring the database back online.
Penetration test or internal review
Confirm whether an independent penetration test or internal security review has covered the server, the reverse proxy and the Odoo web client, including the database manager exposure. Ask for the scope, the date, the findings list and proof that the fixes were retested. A review that only covered the application may miss weaknesses in the proxy or the host operating system.
On-premise docsQuestions buyers ask about the Odoo production security checklist
Can our own team complete the Odoo production security checklist without a partner?
Yes, a team with Linux, PostgreSQL, reverse proxy and firewall skills can work through the checklist alone, and the items themselves are configuration changes rather than new software. The harder part is verification: confirming that the database manager is unreachable from the internet, that the PostgreSQL role cannot act as a superuser, and that backups restore somewhere other than the production server. Teams without someone who has run Odoo in production often miss the proxy and dbfilter details, so ask a partner to review the result against the written checklist if you want an independent check.
What drives the effort of hardening an Odoo server?
The main drivers are the number of databases and companies on the server, how the reverse proxy is already set up, whether your firewall and backup tooling exist and are managed, and whether custom modules expose public controllers that need review. Each additional database multiplies the dbfilter and access checks, and a server with no proxy in front of Odoo needs more work than one that already terminates HTTPS. Ask for the effort to be split by these areas so you can see which parts you already have covered.
What does the work need from our infrastructure and security teams?
Infrastructure staff need to provide access to the Odoo host, the database server, the proxy and the firewall, plus change windows for restarts and certificate changes. Security staff should confirm the target exposure model, which paths must stay reachable, how SSH keys are issued and revoked, and where off-server backups are stored and who can restore them. Agree in advance who approves firewall rule changes, since several checklist items depend on them.
How long does it take to schedule, and does it depend on the go-live date?
Scheduling depends on partner availability, access approvals and change windows, and it is usually tied to the go-live date because the checklist must be complete before the server is exposed to the internet. Hardening is best finished on a staging copy and then applied to production during an agreed window, so allow time for a test restart and a restore test. Ask the partner to state the start date, the change windows they need, and what happens if go-live moves.
What should a written quote for this work list?
A quote should list each checklist item in scope, including the master password, database listing, dbfilter, PostgreSQL role, demo data, HTTPS with HSTS, proxy limits, SSH key access, firewall rules and off-server backups. It should name the servers and databases covered, the environments where changes are tested, the verification steps and the evidence you receive, such as a before and after configuration record. Also ask what is excluded, whether custom modules and the operating system are in scope, and how retesting after changes is handled.
Do we need to pay for ongoing work after the checklist is complete?
The checklist is a one-time hardening effort, but the configuration it creates needs upkeep. Odoo security updates are only provided during standard support for each version, and the support windows for each release are set by Odoo, so you will need a plan for patching and version upgrades. Certificates, SSH keys, firewall rules and backup restore tests also need regular review. Ask whether the quote includes this ongoing work or whether a support retainer is a separate scope.
Does the checklist make an Odoo server compliant with a security standard?
No, completing the checklist reduces exposure but does not make a server compliant with any standard, and only an independent auditor or certification body can issue an assessment or certification. The checklist can, however, produce the configuration records and evidence that a compliance team needs for its review. If you have a specific framework in mind, confirm with your assessor which controls they expect to see and ask the partner to map the evidence to those controls.
How DeployOpen scopes and delivers the Odoo security checklist
DeployOpen works through this checklist inside your own cloud accounts, data centers or private networks, so every control is set on the servers you run. We agree the scope in writing first, then build, test, document and hand over each item so your security and operations teams can verify it themselves.
How we scope
- Inventory the Odoo version, hosting type, proxy layout, database names and any public routes before any change is made.
- Agree in writing which checklist items apply, including the database manager, PostgreSQL role, HTTPS and off-server backups.
- Confirm who owns the firewall, DNS, certificates and SSH access, and record the sign-off steps for each item.
How we build
- Set the master password, list_db, dbfilter and PostgreSQL role in configuration, then confirm each value on a staging copy.
- Configure HTTPS with HSTS, proxy request limits and firewall rules, and test that blocked paths return the expected responses.
- Remove demo data from the production database and verify SSH key access and backup jobs with a documented restore test.
How we hand over
- Deliver a written configuration record listing each setting, its value, the file it lives in and the reason for it.
- Provide a verification report showing the test performed for each checklist item and the result observed.
- Walk your administrators through the runbook for changing the master password, adding databases and restoring backups.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep these controls current.
- Review the checklist again when you move to a new Odoo major version, since support windows set when patches stop arriving.
- Retest after any change to the proxy, firewall, database layout or Odoo configuration, and agree the retest scope in writing.

