Why Odoo security hardening starts before go-live
Hardening an on-premise Odoo means controlling a short list of decisions from day one: the master password, the database manager, the TLS entry point, access rights, third-party code, backups and patch level. An on-premise Odoo instance typically holds financial, HR and customer records, and a default installation is a starting point, not a hardened configuration. Each of those controls has to be set deliberately before the first production user signs in, because fixing them after go-live usually means touching live data and users.
The difficulty is that the security boundary is not one application. It spans the Odoo server, the PostgreSQL database behind it, the reverse proxy that terminates TLS, every custom and third-party module loaded into the server, and the backup jobs that copy all of it. Each layer has its own settings and its own owner, and a gap in one can expose the others. Your team should confirm who owns each layer, who reviews module code before it is installed, and how the database manager is restricted and disabled in production.
The version you run also sets the hardening scope. Security patches are only provided during standard support, so the release you choose determines how long you receive fixes without paid extended support. The Odoo support documentation sets out the standard support windows for each release, and Odoo's standard and extended support documentation explains what extended support covers. Confirm the end-of-support date for your chosen release before go-live, and plan the upgrade calendar alongside the hardening work.
Which Odoo components carry the security boundary
An on-premise Odoo deployment is only as strong as the weakest of six connected parts: the database manager, the reverse proxy, the permission model, sign-in, the modules you add, and the backup path. Each card below names what that component protects and where it is configured, so your team knows what to review before go-live.
Master password and database manager
The master password protects the database manager, which can create, duplicate, restore and drop databases. Odoo stores it in the server configuration file, so it should be long, unique and not left at a default value. Confirm how the database manager is exposed, whether it is reachable only from administrative networks, and whether it can be disabled in your version. Check the exact configuration keys against the Odoo on-premise documentation for your version.
On-premise docsReverse proxy and TLS termination
Odoo's application server should not face the internet directly. A reverse proxy terminates TLS, enforces HTTPS redirects, sets security headers and limits which paths and long-polling endpoints are reachable. Confirm that the proxy blocks the database manager paths, that proxy mode is enabled in the Odoo configuration so client addresses are read correctly, and that certificates renew automatically. Verify the exact settings against the on-premise documentation for your version.
Access rights and record rules
Access rights decide which models a group can read, write, create or delete, while record rules limit which rows of those models a user sees. Together they are the main control against internal data exposure, so they should be reviewed for each app and each group, not only for administrators. Test with real low-privilege accounts, because a menu being hidden does not stop access through direct URLs or the external API.
Authentication options: local, LDAP, OAuth and 2FA
Odoo documents sign-in through LDAP, with optional user creation on first login from a template, and through Google Sign-In, Microsoft Azure OAuth and Facebook sign-in, plus two-factor authentication. Decide which method is the source of truth for each user, how leavers are removed, and whether local password accounts remain for break-glass access. Confirm which methods your edition and version support before designing the flow.
LDAP docsThird-party and custom modules
Every module you install runs with the same database and Python process privileges as core Odoo, so an unreviewed add-on can expose data or execute unsafe code. Keep an inventory of each module, its source, its version and its maintainer, and review custom code for access checks, SQL construction and file handling. Ask whether any module has a known vulnerability, and plan how it will be ported at each upgrade.
Backup and restore path
Backups protect against loss, ransomware and failed upgrades, but only if restores are tested. A complete backup needs the PostgreSQL database and the filestore together, taken consistently, stored encrypted and separated from the production hosts and credentials. Confirm retention, who can access backup copies, and how long a restore takes. Record a restore test on a copy of production, using database duplication with neutralization so test data cannot send email or call live integrations.
Source install docsWhich hardening decisions shape the rest of the build
This table compares the early hardening decisions for a self-hosted Odoo, the options available for each, when each fits and what it costs to run. Read it before the build starts, because several choices limit the others, especially the edition, the target version and how third-party modules are handled.
| Decision | Options | When it fits and operating cost |
|---|---|---|
| Database manager | Leave it enabled with a strong master password, or disable it and manage databases through the server | Keep it off the public internet either way. An enabled manager lets anyone with the master password create, drop or back up databases, so the master password must be stored outside the server and rotated under your own process. |
| User sign-in | Local passwords, or LDAP, Azure OAuth or Google sign-in with two-factor authentication | Central identity fits organizations already running a directory. Odoo documents LDAP with optional user creation on first login from a template, so access reviews must cover both the directory and Odoo's own access groups. |
| TLS termination | Terminate at a reverse proxy in front of Odoo, or terminate at a load balancer with internal re-encryption | A reverse proxy is the common single-server pattern. Certificate renewal, proxy header settings and the forwarding rules for the longpolling path become recurring tasks owned by your operations team. |
| Third-party modules | Allow only Odoo-published apps, allow vetted third-party modules under review, or allow any module | Each extra module adds code you must review, patch and port at every version change. Ask for a written review record per module, and confirm whether its vendor still supports your target version. |
| Edition | Community (LGPL-3.0 source) or Enterprise under subscription | On-premise Enterprise needs a subscription code to activate. The upgrade service requires Enterprise, so Community deployments must plan upgrades manually. Confirm current subscription terms with Odoo before committing. |
| Target version | Latest supported release, or an older release still inside standard support | Standard support covers three years after a major release, and security patches come only within that window. Odoo 18.0 is documented as supported until September 2027, so pick a target with enough runway before the next upgrade is due. |
How a user request crosses the trust boundaries
A user's browser starts the request on the internet side, where it meets the TLS reverse proxy, the first trust boundary. The proxy passes the request across the application network to the Odoo application, which checks sign-in and access rules before touching data. The application to database boundary is the second check point: Odoo reads and writes PostgreSQL and the filestore, and backups copy both to a separate target. Admin access takes its own path, so review who can reach it and what each path is allowed to do.
Request path and trust boundaries for a self-hosted Odoo deployment.
How to harden an on-premise Odoo in sequence
This sequence takes a self-hosted Odoo from an unreviewed install to a documented baseline, with each step closed by a check and the evidence to keep. The order matters: the version and support window come first, because security patches only ship during standard support, and access controls are tested before the system goes live.
Confirm the target version and support window
Before any configuration work, confirm which Odoo major version you will run and when its standard support ends, using Odoo's standard and extended support documentation. Security patches are only provided during standard support on on-premise installs, so a version that is near the end of that window is a hardening risk in itself. Decide whether an Enterprise subscription is needed for the upgrade service, since the Community edition has no access to it. Close the step with a signed version record that names the release, its support end date and the upgrade owner.
Set and store the master password outside the codebase
Set a strong master password in the server configuration, and keep the value in your secrets store rather than in the source repository, deployment scripts or shared chat. Restrict read access to the configuration file on the host to the service account and a small operations group. Confirm the value is not written into logs or backups in plain text. The check is a configuration review showing the master password is absent from version control and that access to the secret is recorded, with the secret owner named in the baseline document.
Restrict or disable the database manager
The database manager lets anyone with the master password create, duplicate, drop or back up databases from a web page. Disable it in production if your process does not need it, or restrict it so it is only reachable from an administrative network and never through the public reverse proxy path. Test that the database manager pages do not respond from an external address. Keep the evidence as the configuration setting, the proxy rule that blocks the path, and the result of an external test request.
Deploy the reverse proxy with TLS and limited paths
Place Odoo behind a reverse proxy that terminates TLS, enforces current protocol versions and redirects plain HTTP. Expose only the paths users and integrations need, and block administrative and database manager paths at the proxy as well as in Odoo. Set the proxy to Odoo's proxy mode setting so client addresses and schemes are handled correctly, and confirm that Odoo is not reachable directly on its internal port from outside the network. The closing check is a TLS scan of the public hostname, a list of exposed paths, and a failed direct connection to the application port.
Configure authentication and two-factor authentication
Choose the sign-in method that matches your identity provider. Odoo documents LDAP sign-in with optional user creation on first login from a template, as well as Google Sign-In, Microsoft Azure OAuth and two-factor authentication. Disable sign-in methods you do not use, enforce two-factor authentication for administrative and finance roles, and decide how accounts are disabled when someone leaves. Confirm with your identity team how the provider handles lockout and password policy, since those controls sit outside Odoo. The check is a sign-in test for each enabled method and a record of which accounts require two-factor authentication.
Define groups, access rights and record rules, then test them
Map job roles to Odoo security groups, then assign access rights per model and record rules for records that must be limited by company, team or owner. Keep administrator rights to a named, small set of accounts. Test each role by signing in as a non-admin test user and attempting to read, edit and export records outside that role, including through reports and API calls. Repeat the test after every module installation. The evidence is a permission matrix per role, the test script and results, and a list of any exceptions with the person who approved each one.
Review and pin third-party modules
Inventory every installed module, its source, its version and its author, then remove modules that are not used. For each remaining third-party module, review the code for access checks, outbound network calls, use of sudo or elevated execution, and handling of credentials, and confirm it is maintained for your Odoo version. Pin the exact version and record the checksum in your deployment repository so a change requires review. The closing evidence is the module inventory with review notes, the approved version list, and a record of who signed off each module.
Set up backups and prove a restore
Back up the PostgreSQL database and the filestore together, store copies off the application host, and encrypt them at rest. Schedule the backups, set retention to match your recovery and records obligations, and restrict who can read or restore them. A backup that has not been restored is not evidence of recoverability, so restore a copy into a separate environment, then duplicate the database with neutralization for test use if needed. The closing check is a restore log showing the time taken, the record counts compared with production, and the name of the person who ran it.
Document the baseline and schedule patching
Write a baseline document that records the version, configuration decisions, exposed paths, authentication methods, role matrix, module list, backup schedule and the owner of each control. Schedule a regular review of Odoo and module updates, and assign who applies security patches and how quickly they must be tested. Plan the next major upgrade before the current version reaches the end of standard support. The closing evidence is the approved baseline, a patching calendar with named owners, and a change log that links each change to a review.
Hardening controls to verify on every release
Odoo hardening is a set of controls that has to hold after every upgrade, module install and configuration change, not just at go-live. The cards below cover secrets, access, third-party code, network exposure and logging, and each one names the settings to confirm in the Odoo version you run.
Secrets for master password and credentials
The master password protects database management actions, and the database user, TLS private keys and any API or SMTP credentials sit alongside it. Confirm that the master password is set in the configuration file rather than left at any default, that the file is readable only by the service account, and that the database role used by Odoo cannot create or drop databases. Check that TLS private keys are stored outside the web root and that rotation of each secret has a named owner.
On-premise docsLeast-privilege access rights and record rules
Access rights grant model-level permissions, and record rules limit which records a group can see, so both must be tested together. For each sensitive model, confirm that a standard user cannot read records from another company or department by changing a URL or using the API. Review groups that were granted broad rights during a project and remove them once the work is done. Keep a short test matrix of users and roles that you rerun after each upgrade.
Third-party module review
Every module added beyond the official apps is code that runs with the same database access as Odoo itself. Before installing, check the source, the maintainer's recent activity and whether the module is tied to a version you will support. For security-sensitive models such as sales, accounting, payroll and portal access, read the code for raw SQL, sudo calls, unchecked user input and overridden access checks. Record the review and repeat it when the module is updated.
Network exposure and admin path restriction
Odoo should be reachable only through a reverse proxy that terminates TLS, and the database manager should not be reachable from the public internet. Confirm that the proxy forwards only the paths Odoo needs, that the database selector and management screens are blocked or restricted by network address, and that the Odoo service port is not open to external traffic. Verify the TLS configuration with an external scan after each change to the proxy or certificates.
Logging of sign-ins and admin actions
Logs have to answer who signed in, from where, and who changed access rights, modules or configuration. Confirm that failed and successful sign-ins are recorded, that the Odoo and proxy logs are shipped to storage that administrators cannot quietly edit, and that retention matches your policy. Test the logs by making a sample rights change in a test database and confirming that the entry can be found and attributed to a user.
How to test that the hardening holds and fails safely
Testing a hardened Odoo comes down to proving that each control blocks what it should and that a failure leaves data intact. Start with access. Sign in as one user from each role you defined, then try to reach records that belong to another company in a multi-company database. The record rules should return no rows or deny the action, and the check should be repeated for read, write, create and delete. Run the same tests through the API if external access is enabled, because API calls use the same access rules but are easy to forget. Record the result for each role so the evidence can be reused after upgrades and module changes.
Next, test the perimeter from outside. Request the database manager path and the admin paths without signing in, and confirm they are refused or redirected to sign-in. Confirm that the database manager is not reachable at all if your master password control is meant to restrict it. Request the application over plain HTTP and check that it redirects to HTTPS or does not respond, and inspect the certificate chain and protocol versions from a machine outside your network. Confirm the reverse proxy is the only public entry point by attempting a direct connection to the Odoo port from outside.
For sign-in, test the failure paths for the method you chose: a wrong password, an unknown user, an expired or disabled account, and a user removed from the directory group. Confirm that error messages do not reveal whether an account exists. Check how many failed attempts are tolerated and what happens afterwards, and confirm the behavior with the directory team, because lockout for LDAP accounts usually sits in the directory, not in Odoo. Verify that two-factor authentication cannot be skipped by going directly to a later page.
Failing safely means deciding in advance what each dependency outage does. If the proxy is down, the application should be unreachable, not reachable over an unencrypted path. If the LDAP server is unavailable, confirm with a test that existing sessions and local administrator access behave as your design says, and that no account is silently created. If the backup target is unavailable, confirm that backup jobs fail loudly and alert someone. Run these tests in a neutralized copy made by database duplication, never against production. Finally, restore a recent backup into a separate environment, confirm the neutralized copy starts and that a sample of records and attachments matches the source, and time the restore so you know what recovery really takes.
What drives the effort of hardening a given Odoo
This table compares the factors that raise or lower the effort of hardening a self-hosted Odoo, and what each one asks of the team. Use it to scope a written request and to see which inputs a partner will need before quoting. Effort rises with every item in the left column, so the right column lists how to keep each one contained.
| Driver | Why it raises effort | How to keep it down |
|---|---|---|
| Number of apps and custom modules | Each installed app adds models, access rules, menus and default settings to review, and each custom module needs its own access and record rule check. | Limit installed apps to the processes in scope and prefer configuration over custom code, so the review covers less surface. |
| User roles and companies needing record rules | Every role and every company in a multi-company database multiplies the access combinations that must be tested for leakage between records. | Define a short, documented set of access groups and confirm which companies truly need data isolation before the review starts. |
| Identity integration (LDAP or OAuth versus local accounts) | Local accounts need password policy, two-factor setup and offboarding checks inside Odoo, while LDAP, Microsoft Azure or Google sign-in adds directory mapping, group sync and failure handling to test. | Decide the identity source early and document how users map to access groups, so the reviewer tests one model rather than several. |
| Number of environments (production, test copies, backup targets) | Each environment needs its own configuration review, master password and database manager settings, and secrets handling, and test copies must be checked for neutralized data and disabled outbound mail. | Keep environments built from the same scripted configuration and confirm which copies hold real personal data before they are created. |
| Compliance evidence requirements | An assessor may ask for dated configuration exports, access reviews, change records and backup restore results, which must be produced and kept, not just configured. | Agree the evidence list in writing up front and set up logging and export routines during the build instead of reconstructing them later. |
| Number of third-party modules | Modules from outside the Odoo publisher need source review, dependency checks, and a decision on whether each is still maintained for the target version. | Remove unused modules and keep the approved list short, so each remaining module has a named owner and a documented reason to stay. |
| Edition and hosting model | On-premise hosting, which the Custom plan allows, leaves the team responsible for TLS, reverse proxy, database access, patching and backups, all of which must be reviewed. | Confirm the edition, plan and hosting model in the written scope, and ask the partner to separate what they test from what your own team operates. |
How hardening differs by deployment model
On a single node, Odoo, the reverse proxy, PostgreSQL and the filestore share one host, so the same team usually administers all of them. Hardening is mostly about closing the gaps that a shared host creates: local database access, file permissions on the filestore and configuration, and a single point of failure for backups. Certificates and the proxy normally belong to the same administrators who run the Odoo service, which keeps change control simple but concentrates risk.
- Proxy and TLS: Terminate TLS on the same host with a proxy configured to forward to Odoo only on the loopback interface, so the application port is never exposed directly.
- Master password: Set a strong
admin_passwdin the configuration file, restrict the file to the Odoo service account, and disable the database manager on production once databases are created. - Patches: Your team applies operating system and Odoo updates on the same host, so schedule them within the standard support window for your Odoo version.
- Module sources: Custom and third-party modules are copied in from a repository you control, and each one should be reviewed before it reaches the addons path.
- Backups: Dumps and filestore copies are usually written to a separate disk or network location, and you should confirm that the copy is encrypted and that a restore has been tested.
Check whether a single host still meets your recovery and separation expectations, and confirm high availability specifics in the separate high availability topic.
In a split deployment, the reverse proxy, the Odoo application servers and the PostgreSQL host sit on separate machines or network segments. Each boundary needs its own rules: the proxy should reach Odoo only on the application port, and Odoo should reach PostgreSQL only on the database port from its own subnet. Ownership often divides here, with a network or security team running the proxy and certificates while the application team runs Odoo.
- Proxy and certificates: Agree in writing who issues, renews and stores the TLS certificates, and who owns the proxy configuration, since a split makes unclear ownership a common failure point.
- Database exposure: Restrict PostgreSQL to the Odoo hosts with host-based rules and strong credentials, and confirm that no database port is reachable from user networks.
- Patches: Each host has its own patch cycle, so track proxy, application and database versions separately against your Odoo version's support dates.
- Module sources: Application servers should pull approved modules from an internal source, not from the open internet, with changes reviewed before deployment.
- Backups: Database dumps run from the database host or a dedicated backup host, and filestore copies come from the application tier, so both paths need to be included in the backup design.
Confirm which team holds each control, and verify that the boundaries you rely on are tested rather than assumed.
In an air-gapped or restricted network, the Odoo host has no direct route to the internet, so updates, module sources and license activation all arrive through a controlled transfer process. The hardening goals stay the same, but the evidence trail matters more because every file that crosses the boundary must be traceable. Enterprise activation with a subscription code and any online services will need an approved path, so confirm this with the vendor before the design is fixed.
- Proxy and certificates: Use an internal certificate authority or approved certificates, and document who can issue them, since public certificate automation may not be available.
- Patches: Download packages on a staging system outside the boundary, verify checksums, and transfer them through an approved media or data diode process before installation.
- Module sources: Maintain an internal, versioned copy of every custom and third-party module, with a review record for each import.
- Backups: Backups stay inside the boundary, so plan for offline or separately secured copies and test restores on an isolated system.
- Licensing and sign-in: Confirm how subscription activation and any external identity provider work without outbound access, and record the decision.
Confirm each transfer path, the approval owner and the restore test with your security team before go-live.
What to monitor, back up, patch and document after go-live
Hardening decays after go-live unless someone owns the routine. Monitor sign-in failures, administrator actions and reverse proxy logs on a schedule that someone reviews, not only when an incident occurs. Failed sign-ins against the Odoo login, changes to users, access groups, and record rules, and unusual activity from administrator accounts should reach a named owner. Proxy logs show TLS errors, blocked requests and traffic to paths that should never be public, so they belong in the same review. Confirm with your security team where these logs are shipped, how long they are retained, and who can alter them. Ask your platform team whether Odoo's own logging covers the events you need for your regulator or auditor, because gaps found during an assessment are expensive to fix retroactively.
Backups and restore tests are the control most often assumed rather than proven. Run scheduled backups of the PostgreSQL database and the filestore together, store copies outside the Odoo host, and encrypt them. Set a restore cadence and test it against a neutralized copy so production data is not exposed in a test environment. Record the time each restore took and whether the restored instance logged in and reconciled. Patching follows the same discipline. Track each installed version against its standard support end date: Odoo 18.0 is documented to receive standard support until September 2027 and Odoo 19.0 until September 2028. Security patches stop when standard support ends, and extended support for on-premise deployments is a separate paid option, not an extension of the standard plan. SaaS versions cannot use extended support, so the on-premise decision is the only one available to you. Plan the upgrade with enough lead time to test it before the cutoff.
Re-review third-party and custom modules after every upgrade, since a module that passed review on one version may break access rules or expose new fields on the next. Keep a hardening baseline document that lists each setting, its intended value, its owner, and the evidence that it is in place, such as configuration exports, screenshots, or test results. Include master password handling, database manager restrictions, reverse proxy and TLS settings, authentication method, access groups and record rules, backup schedule and restore test dates, and the support end date for the running version. Review the baseline at each upgrade and after any change to sign-in or hosting. Ask your implementation partner to deliver this document as part of the handover, with the owner for each line named in writing.
What buyers and engineers ask before hardening Odoo
What does Odoo security hardening cost, and what drives the price?
The cost depends on the size of the in-scope environment and how much of the work is new, so it follows from a written scope rather than a list rate. The main drivers are the number of databases and environments (production, test and any staging copies), how many custom or third-party modules must be reviewed, how complex the access model is across companies and departments, and how many infrastructure components (reverse proxy, TLS, backups, PostgreSQL) must be configured from scratch. Ask for a quote that separates the review, the configuration changes, the testing and the handover, and states which items are one-time and which need recurring patching or upgrade work. DeployOpen does not publish a price list; a quote follows from the written scope.
How long does hardening an on-premise Odoo take?
Duration is set by how many components are in scope and how much of the environment already exists. Work usually moves through a review of the current setup, changes to the master password, database manager and reverse proxy, a pass over access rights and record rules, a review of each third-party module, and a backup and restore test. Each stage waits on the client's change windows, test copies and sign-off, so the calendar often runs longer than the technical work. Confirm the timeline in the written scope, including which environments are changed first and how production cutover is scheduled.
What does the client team need to provide for hardening work?
Hardening needs access and decisions from the client, not only from the implementation team. Expect to provide:
- Infrastructure access to the servers, reverse proxy, PostgreSQL host and backup storage, through an agreed change process
- A current list of installed modules, including custom and third-party ones, with their sources
- Role lists and the business owners who define who may see or change which records
- Named sign-off owners for access decisions, change windows and the final acceptance of test results
Agree these owners before work starts, because access rules that nobody approves tend to be reopened later.
Can our internal team harden Odoo without an outside partner?
Yes, a capable internal team can do the work, provided it has the time and the skills across Linux administration, PostgreSQL, reverse proxy and TLS configuration, Odoo access rights and Python code review. The common gap is not the configuration itself but the independent review: teams that built a system often miss their own access and module risks. Decide early who owns each control after handover, who reviews changes, and how the work will be repeated at each upgrade. A partner is most useful where an outside review, a retest or a documented evidence trail is required.
Can Odoo Community edition be hardened the same way as Enterprise?
Most hardening steps apply to both editions, because they concern the self-hosted server, the database, the reverse proxy, access rights and backups. The differences lie in what the edition provides. Odoo's documentation ties upgrade service access and standard support for on-premise use to an Enterprise subscription, and Community has no access to the upgrade service. Enterprise also has its own activation through a subscription code. Confirm with the vendor which security updates and support paths apply to your edition and version before you plan a hardening baseline.
Does hardening make us audit ready, and who issues the report?
Hardening helps prepare for an audit, but it does not certify anything. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records, access reviews, backup restore results and patch history. Independent auditors and certification bodies issue audit reports, attestations and certifications. Before the work starts, ask your auditor which controls they expect to see, which evidence formats they accept, and how long they want records retained, then build the evidence collection around those answers.
How DeployOpen scopes, hardens and hands over Odoo security work
DeployOpen plans, implements, hardens, documents and supports self-hosted Odoo inside your own infrastructure, with the scope agreed in writing before work starts. The work follows a fixed sequence so that your security and compliance teams can review each control, its configuration and its evidence.
How we scope
- Review the Odoo edition, plan and hosting model to confirm which hardening options are available to you
- Inventory installed apps, third-party modules, database managers, proxies and sign-in methods in scope
- Agree in writing which controls, environments and deliverables are included, with a quote that follows from that scope
How we build
- Configure the master password, database manager and reverse proxy with TLS according to your agreed standard
- Tune access rights, groups and record rules against the roles your business process defines
- Review third-party modules for code quality, permissions and update history before they reach production
How we hand over
- Deliver a configuration record, access model and module review documented for your security team
- Set up backup and restore procedures, and test a restore against a non-production copy before handover
- Provide a patching runbook tied to the Odoo version's standard support dates so your team knows what to apply
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after go-live
- Retest hardened settings after each Odoo update, module change or infrastructure change
- Confirm with your team which support window applies to your version before planning the next upgrade

