Odoo password policy: what the defaults leave open on a self-hosted server
If your Odoo database is reachable from the internet or by partners, staff and portal logins are the first target. Before go-live, review four controls: minimum password length, the cooldown applied after failed login attempts, CAPTCHA on login and signup, and the rate limits at your reverse proxy. These settings sit alongside the database manager controls, two-factor authentication and fail2ban, so none of them should be judged alone. The exact parameter names, defaults and behavior differ between releases, so confirm each setting in the documentation for the Odoo version you run before you rely on it, and test it against your own login flow.
The Community and Enterprise editions both run on Odoo's open source core, so the login behavior you test is the same codebase in either case. What changes is who controls the server-side configuration. On a self-hosted server, your team or your partner edits the configuration file, the proxy and the process limits, and owns the result. On Odoo.sh, the platform hosts the server and you control the application settings you are permitted to change. On Odoo Online, the vendor operates the environment and you control only what the web interface exposes. Write down which of these layers you own before you start, because a protection you assume is enforced at the proxy may not exist at all on a hosting type where you cannot edit the proxy.
Odoo's defaults do not enforce character-class rules such as mandatory symbols or digits, so password strength depends on the length you require and on the policy you set for users. Ask your team to confirm the minimum length and any complexity requirement in the documentation for your version, then decide whether your identity provider or single sign-on will carry the policy for staff. Record the decision, the test cases you ran (failed logins, cooldown behavior, CAPTCHA on signup) and the owner of each setting, so the configuration can be reviewed during an audit or after an upgrade.
Which login protection setting fits which exposure
This table compares Odoo's login protection controls and the reverse proxy layer by what each one limits and when it fits. Read it by matching your deployment's exposure, such as internal-only access or an internet-facing portal, to the control that addresses it. Every parameter name, default and menu location must be confirmed in the Odoo documentation for your deployed version before you rely on it.
| Setting or control | What it limits | When it fits | What to confirm |
|---|---|---|---|
| Minimum password length | Shortest password a user can set in Odoo, which reduces easy guessing of weak credentials | Every deployment, especially where some accounts are reachable from the internet or through portal signup | The minimum length parameter, its default value and where it is set in the deployed version |
| Character-class or complexity rules | Required mixes of uppercase, lowercase, digits and symbols in passwords | Only where your password standard or assessor requires them and you accept the added support burden | Whether Odoo enables such rules by default, whether they exist in your version, and whether an add-on is needed |
| Login cooldown after failed attempts | Repeated sign-in attempts for a period after failures, slowing password guessing against a single account | Internet-facing instances where brute force attempts are expected | The cooldown parameters, their default values and whether the cooldown is per account, per address or both |
| CAPTCHA on login | Automated sign-in attempts that cannot pass a human challenge | Public login pages where bots or credential stuffing are observed in logs | Whether the option exists in your version, how it is enabled, which CAPTCHA provider it uses and any external service it requires |
| CAPTCHA on signup | Automated account creation through public registration or portal signup | Sites that allow self-registration for portal or customer accounts | Whether signup is enabled in your configuration, whether CAPTCHA applies to it, and the menu or setting that controls it |
| Reverse proxy rate limits | Request volume to the login route from each client address, applied before requests reach Odoo | Any internet-facing deployment, and useful even when Odoo's own controls are enabled | The proxy product's syntax, the login and database routes it should cover, and how it treats clients behind shared addresses |
| Two-factor authentication | Use of a stolen or guessed password alone, since a second factor is also required | Staff and privileged accounts, and portal accounts with access to sensitive records | The version's 2FA settings, supported authenticator apps and how lockout recovery is handled |
How a login attempt passes through the protections
The diagram starts at the browser and follows a login POST through the TLS reverse proxy, where request rate limits apply, into the Odoo web server. Odoo's own password and cooldown check decides whether the attempt is accepted, and a CAPTCHA challenge appears only when it is enabled. Each failed attempt is written to the login log, which fail2ban reads and uses to block the source address at the firewall. Note that the proxy and fail2ban see request volume and log lines, while Odoo's internal cooldown sees account-level attempts. Check that each layer receives the client address it needs.
Login requests pass four controls, and fail2ban acts on the log, not on Odoo's internal state.
Why Odoo does not enable character-class rules by default
A default Odoo install does not force uppercase letters, digits or symbols in passwords, and the practical reason is that composition rules are a weak control on their own. Rules that require a mix of character classes tend to produce predictable patterns such as a capitalized word, a number at the end and an exclamation mark, and they push users toward small, repeated changes when a forced reset arrives. Length, screening of passwords that already appear in breach data, multi-factor authentication and lockout controls address the risks that actually lead to account takeover, which is why they are usually weighed more heavily than composition. Odoo's own login protections, covered elsewhere on this page, are the layer you configure directly.
Treat this as a policy decision, not a default you inherit. Start by reading the password rules your identity policy already requires, because those rules usually govern how Odoo users set and change passwords. Then confirm in the Odoo documentation for your exact version whether any password rule is configurable in the application, or whether password requirements must come from the identity provider. For organizations that sign users in through LDAP or a single sign-on provider, the policy you enforce there may matter more than anything set inside Odoo, so check where each user's password is actually stored and changed before you write the rule into your standard.
The practical test is whether your chosen policy can be explained, audited and enforced across every login path, including API access and portal accounts. Record the decision, the minimum length you require, the breached-password approach and the second factor you enforce, so an assessor or a new administrator can see why composition rules were not added.
How to configure password length, cooldown and CAPTCHA in order
This sequence records the starting state, agrees the policy, and then changes Odoo's login protections in a fixed order. Each change is checked on a staging copy before it reaches production.
Record the current settings and Odoo version
The administrator who owns the server exports the current configuration file, notes the exact Odoo version and edition, and lists the authentication modules and reverse proxy rules in use. Keep this snapshot with the change record so the original values can be restored. Confirm that a staging copy of the production database exists, with neutralized outgoing email, before any setting is changed. The step is complete when the snapshot is stored and the staging target is identified.
Confirm the password policy the organization must meet
The security or compliance owner writes down the minimum password length, any character-class requirements, the number of failed attempts before a cooldown, and whether CAPTCHA is required on login and signup. Odoo does not enable character-class rules by default, so the team must decide whether to enforce them through settings the version provides or through another control such as single sign-on or mandatory two-factor authentication. The step is complete when the requirements are signed off in writing and each one is mapped to a setting or a compensating control.
Set the minimum password length and composition rules
On the staging copy, the administrator sets the minimum password length and any composition rule that the installed version exposes, using the password settings documented for that version. Where the version offers no composition rule, the team records the compensating control from the previous step. The check is a test user who attempts a password below the minimum: the change must be rejected with a clear message, and a compliant password must be accepted.
Configure the login cooldown or rate limit
The administrator sets the cooldown or rate limiting option that the version provides, using the number of failed attempts agreed in the policy. Confirm the values against the version's own documentation rather than copying them from another deployment. The check is a scripted series of failed logins with a test account: after the threshold, further attempts must be delayed or blocked, and the server log must show the failed attempts with the expected line format.
Enable CAPTCHA on login and signup where supported
If the installed version and its enabled modules support CAPTCHA on the login and signup pages, the administrator turns it on for both screens. If support is missing or depends on a module, the team records that gap and confirms the approach with the vendor or the version documentation. The check is a browser test: the CAPTCHA must appear on the login page after the configured number of failed attempts and on the signup page, and a form submitted without solving it must fail.
Apply reverse proxy limits on login routes
The network or platform engineer adds request limits on the login and authentication routes at the reverse proxy, so that bursts of requests are throttled before they reach Odoo. The limits must match the policy and the proxy product's own syntax. The check is a load test from one source address against a staging login route: requests above the limit must receive a rejection status, and the Odoo log must still show the failed attempts that got through.
Restart or reload according to the documentation
The administrator applies the configuration changes by the restart or reload method the version documentation describes for the deployment type, whether packaged install, source install or Docker. Services are then checked for normal startup in the service log. The check is that the Odoo service reports healthy, the login page loads, and the password, cooldown and CAPTCHA settings still show the staging values after the restart.
Verify the protections with test accounts
Using test accounts on staging, the tester runs a failed-login test, a CAPTCHA appearance test and a password length test, and records the result of each against the signed policy. The tester also confirms that the login log lines match the pattern that the fail2ban filter expects, so the later jail can read them. Failed items return to the earlier steps. The sequence is complete when all results are recorded, and the same steps are then repeated on production in a planned window.
Who controls each login setting on each hosting type
On servers you run, your administrators or your partner control the Odoo configuration, the reverse proxy and the firewall, so enforcement can sit in any of those three layers. Community and Enterprise both run this way, but an Enterprise database must be activated with its subscription code before the enterprise features are available. Odoo's own login options are set in the server configuration and the Settings screens of the version you run, while request limits and blocking are often easier to enforce outside Odoo.
- Odoo application. Password length, cooldown and CAPTCHA options are set in Odoo's configuration and Settings screens. Confirm the exact keys for your version in the on-premise documentation before you write them into the server configuration.
- Reverse proxy. Request limits and blocking of login paths can be set in the proxy in front of Odoo, independent of Odoo's own counter.
- Firewall and log-based banning. Network rules and tools such as fail2ban act outside Odoo, so they keep working if an application setting is changed by mistake.
- Change control. Whoever edits the configuration file or the proxy owns that setting, so keep changes in version control and review them before deployment.
- Partner scope. Ask who holds root access, who approves changes to login settings and whether each change is tested on staging before production.
After every change, test a failed login from outside your network to confirm the control is enforced where you expect.
Odoo.sh is a hosted platform where the platform operator manages the infrastructure layer, and your team usually manages the application code and project configuration. According to Odoo's pricing page, Odoo.sh hosting is available only on the Custom plan. Settings that sit at the platform edge, such as rate limiting, may not be yours to change, so confirm the division of responsibility before you design the login policy.
- Plan requirement. Odoo.sh is listed only under the Custom plan on the Odoo pricing page. Confirm your plan before you plan around this hosting type.
- Project configuration. Settings your team can keep in the project repository can be versioned and reviewed, within what the platform accepts.
- Platform edge. Ask which request limits, filtering rules and blocking features the platform enforces, and whether your team can request changes.
- Custom modules. Login behavior changed by your own code remains your responsibility, so test it on staging branches before it reaches production.
- Written commitments. Ask the platform for a written list of enforced controls, the process for change requests and where blocked logins appear in logs.
Get that list in writing before you commit to a login policy on this hosting type.
Odoo Online is software as a service operated by Odoo, so the infrastructure, proxy and edge protections are managed by Odoo. Your administrators can change only the options the application exposes in its settings. According to Odoo's pricing page, Odoo Online is the only hosting option for the One App Free and Standard plans, so customers on those plans should expect the narrowest set of controls.
- Plan check. Confirm which login options your plan includes before you assume a control is available.
- Application settings. Administrators can change only the login-related options that appear in the Settings screens of your version, if any.
- Edge controls. Odoo operates rate limiting and CAPTCHA infrastructure, so you cannot add your own proxy or firewall rules in front of the service.
- Release cadence. Odoo Online receives updates on the SaaS release schedule, so a setting may move or change between releases. Recheck your configuration after each update.
- Questions for Odoo. Ask for the current list of login protections, their default values and how a customer changes them before you write the policy.
Record the answers in your security policy so an auditor can see which controls you manage and which Odoo manages.
Layering login controls so one gap does not open the door
Odoo's built-in login settings are one layer, not a complete defense. The cards below cover what each layer stops, what it cannot stop, and what it costs to run, so a gap in one layer does not leave the login page open.
Odoo password length and cooldown
Odoo sets a minimum password length and slows repeated failed sign-ins through its own login cooldown. Together they make simple guessing slower, but they do not stop a distributed attack that spreads attempts across many addresses. Check the current minimum length and cooldown behavior for your Odoo version in the documentation or your own test instance, and record the values you chose. A stricter cooldown raises the chance of users locking themselves out and filing support tickets, so agree on a support path before you tighten it.
CAPTCHA on login and signup
CAPTCHA makes automated guessing and bulk account creation more expensive, since a script must solve or bypass a challenge on each attempt. It does not protect accounts that an attacker has already reached through phishing or leaked credentials, and determined attackers may route around it. Confirm which CAPTCHA provider and keys your Odoo version supports, and test the flow with screen readers and mobile browsers, because a broken challenge blocks legitimate staff.
Reverse proxy rate limits
Rate limits at the proxy, such as in Nginx or a load balancer, cap request volume to the login path before requests reach Odoo or PostgreSQL. They protect the application from floods and cost little to run. They cannot see which Odoo account is being targeted, and a single shared proxy address can hit limits meant for attackers, so offices behind one NAT may be blocked together. Set the limits on the login and session paths specifically, and watch the proxy logs after each change.
Fail2ban on the login log
Fail2ban reads Odoo's login failure lines and bans source addresses that repeat them, which blocks attackers across all protocols on the host. It depends on a correct filter regex, correct timezone handling, and a log path that survives rotation, so it needs testing against real failure lines. Misconfigured filters can ban the proxy address itself or miss failures entirely. Run it on the host that sees the real client address, which may require proxy header configuration.
Two-factor authentication for staff and portal
Two-factor authentication stops an attacker who has a stolen password from signing in as that user without the second factor. It does not stop session theft after sign-in, phishing that relays one-time codes, or abuse of API keys, which bypass interactive login. Decide whether to enforce it for employees only or for portal accounts as well, and plan recovery for users who lose their device, since lockouts become help desk work.
Network limits on admin paths
Restricting the database manager, admin routes and back-office access to specific IP ranges or a VPN removes those paths from the public internet entirely. This is often the strongest single control for administrative functions. It does not protect the public login page that customers and portal users need, and it adds operational work when staff travel or work remotely. List the paths you restrict, confirm that automation such as integrations still reaches the API, and keep an emergency access route documented.
Testing lockout and CAPTCHA settings without locking out staff
Test cooldown and CAPTCHA on a staging copy of the database, never on production, and build the test around dedicated test accounts so that a failed run cannot lock out a real employee. Duplicate the production database, neutralize it so that outgoing email, scheduled actions and payment or API connectors cannot reach live services, and create a few named test users with known passwords for each role that signs in. Then trigger failed logins deliberately, from the same network path your users will use, and record what happens at each step. The test copy must not be used with production credentials, because a password reused from live accounts turns a lockout test into a real exposure and a credential store you no longer control.
Next, confirm that the three layers agree on who is counting failures. The reverse proxy may apply its own rate limits, Odoo applies its login cooldown and CAPTCHA settings, and fail2ban reads the Odoo login log lines and bans source addresses. Each layer keeps its own counter, so one failed attempt can be counted twice, and a proxy in front of Odoo can make every client look like the same address. Send a fixed number of failures from one test address and from a second address, then check the proxy access log, the Odoo server log and the fail2ban status for the jail. Confirm the timezone offset in the log parsing matches the server, and note any gap where a ban does not trigger or triggers too early.
Plan the unlock path before the first live change. Name which administrators can clear a cooldown, reset a password or disable a ban, and confirm they can do it outside the locked account, for example through a separate admin account or a documented shell command on the server. Write down how a locked-out user proves identity to the service desk. Keep the test results in a short internal record covering the settings tested, the test accounts used, the expected and observed outcome for each step, the log evidence and the owner of each open issue. Confirm with your own security team what evidence the internal review requires, because the format varies by organization and no independent assessment is implied by these tests.
What to confirm in your environment before relying on these settings
Odoo's login protections depend on the version you run, the edition and plan you hold, how users sign in, and whether your server and proxy can apply the changes. The cards below list the points to verify before you treat any of these settings as a control you can rely on.
Version-specific settings and defaults
Parameter names, defaults and behavior for cooldown, CAPTCHA and password length can differ between Odoo releases. Confirm the exact settings and default values in the documentation for the version you run, not for the version in a blog post or an older install guide. Record the version you tested against, because a later upgrade may change what the settings do. Ask the partner which settings they verified on your exact version and how they will recheck them after each upgrade.
- Current documented version
- 19.0
Support windows and patch coverage
Security patches are only provided during standard support, so a settings baseline on an out-of-window version carries unpatched risk regardless of how well the login controls are configured. Odoo 17.0 standard support ended in September 2026, Odoo 18.0 runs to September 2027 and Odoo 19.0 to September 2028. Map your version against these dates and plan the next upgrade before the window closes. Ask the vendor whether your version is still in standard support and when it ends for your hosting type.
SaaS release cadence
Odoo SaaS versions are released every two to three months and cannot use extended support. If you run Odoo Online or a SaaS-hosted instance, login behavior and setting names can change on a faster schedule than an on-premise install, and you may not control the timing of those changes. Track release notes and retest your login protections after each update window. Ask the provider how far in advance they announce changes to authentication behavior and whether a staging copy is available before each release.
Where SSO or LDAP changes password enforcement
When users sign in through LDAP, Google Sign-In, Microsoft Azure OAuth or another external provider, the password policy and lockout rules of that provider may apply instead of Odoo's own settings. Odoo's built-in minimum length and cooldown then protect only local accounts, such as administrators or fallback users. Identify which accounts still authenticate against Odoo and document who owns the policy for each path. Ask the partner which accounts can still log in with a local Odoo password and which identity system enforces their password rules.
Odoo LDAP docsAPI keys and login control bypass
API keys authenticate scripts and integrations without going through the interactive login form, so cooldowns and CAPTCHA on the login page do not apply to them. An exposed key can be used at any rate the server allows. Confirm which keys exist, who issued them, what access they carry and how they are rotated or revoked, and check whether your rate limits at the reverse proxy cover API paths as well. Ask the partner to show how API key use is logged, limited and revoked in your version, and which layer enforces a request rate for API calls.
Server and proxy changes your plan allows
Some protections depend on changes outside the Odoo login screen, such as proxy rate limits, HTTPS settings and access restrictions on the database manager. Whether you can make these changes depends on your hosting type and plan. Confirm that your plan and hosting arrangement let you edit the server configuration and reverse proxy, and who is responsible for applying and testing those changes. Ask the vendor which login-related settings you can change on your plan and which must be requested from support.
Questions buyers ask about Odoo login hardening
How much effort does Odoo login hardening take, and what drives it?
Most of the work is configuration and verification rather than new software, so the effort depends on how many entry points the database exposes and how many environments need the same settings. The main drivers are whether the instance is internet-facing, how many databases run on it, whether a reverse proxy already applies rate limits, and whether the team must document the change for an assessor. Login cooldown and CAPTCHA settings are quick to change, but testing them against real user flows, including mobile clients, API access and staging copies, takes most of the time. Ask the partner to break the effort into configuration, testing and handover so you can see which parts scale with your environment.
Can our own team configure Odoo login protections without a partner?
Yes, a team with Linux, PostgreSQL and Odoo administration skills can change these settings directly, since they live in the Odoo configuration and the database itself. The risk lies in side effects: a stricter policy can lock out administrators, break integration accounts or leave the login log without the lines that fail2ban or a SIEM needs. A partner adds value when you want an independent review of the settings, a written test plan, and evidence that the controls work as described. Decide based on whether your team can test failed-login behavior on a staging copy and keep the change documented for the next upgrade.
What does the client need to provide for a login hardening project?
Plan to provide administrative access to the Odoo servers and the PostgreSQL host, a named admin team that can approve changes, and a staging copy of the production database. Confirm that the staging copy is neutralized before testing, as described in Odoo's on-premise documentation, so test logins cannot reach real customers or email. You will also need a written log retention policy, because failed-login evidence is only useful if it is kept long enough for your security team to review it. Finally, provide the list of integrations, service accounts and API users, since these are the accounts most likely to break when limits change.
How long does a login hardening review take, and what sets the duration?
No duration is fixed for this work, so ask for one in the written scope rather than relying on a general figure. The duration depends on the number of Odoo databases, the number of login paths (web client, portal, API, SSO and LDAP), whether a reverse proxy and fail2ban are already in place, and how many approval cycles your change process requires. Testing with real user groups often takes longer than the configuration itself. A clear test matrix and an agreed staging environment shorten the review more than any other input.
How do the password, cooldown and CAPTCHA settings interact with 2FA, SSO and API keys?
Odoo's built-in protections apply to the password login form, so they do not replace two-factor authentication and they do not govern accounts that sign in through an external identity provider. Login through LDAP, Google, Microsoft or other OAuth providers moves the password check to that provider, so your password policy must be set there as well. API keys bypass the interactive login form, which means a cooldown on the web form does not limit API abuse; those calls need their own controls at the proxy or in the application. Test each path separately and confirm the behavior in the Odoo LDAP authentication documentation and your identity provider's settings.
What should we ask for in a written quote for login hardening?
Ask for a scope that lists each setting in scope, the Odoo version and deployment type, and the environments covered, including production, staging and any test databases. The quote should state which login paths are tested (web login, portal, signup, SSO, LDAP and API), what evidence is delivered, such as a configuration record and test results, and whether retesting after fixes is included. Ask which costs are one-time and which recur, for example, retesting after each Odoo update or security advisory. Also ask who performs the work, who approves changes, and what the client must provide before the start date. Engagements at DeployOpen are fixed-scope, so these items should be written into the agreed scope before work begins.
How DeployOpen works on this
DeployOpen plans and implements Odoo login protections inside your own infrastructure, from the password policy and cooldown settings to CAPTCHA and proxy-level limits. Each change is scoped in writing, tested on a copy of your database and handed over with documentation your security and compliance teams can review.
How we scope
- Review the current login settings, reverse proxy rules and existing SSO or LDAP sign-in paths before any change.
- Agree in writing which Odoo versions, databases and user types (employees and portal users) the work covers.
- Record which protections are set in Odoo and which are left to fail2ban, proxy limits or your identity provider.
How we build
- Set the minimum password length and any extra password rules in Odoo's configuration, with each choice documented.
- Configure login cooldown and CAPTCHA settings on a staging copy created from production, with personal data handled under your controls.
- Test failed-login behavior, lockout recovery and signup flows for each user type before applying changes to production.
How we hand over
- Deliver a written configuration record listing every setting, its value, its owner and the reason for it.
- Document how administrators unlock accounts and where login events appear in the logs your team reviews.
- Walk your administrators through the settings and retest any item your reviewers flag before closing the engagement.
How we support
- Engagements are fixed-scope, so changes after handover are agreed as a new written scope.
- Ongoing support, upgrades and continuous testing are available as a retainer, including rechecks after Odoo version upgrades.
- Confirm with your team which settings change when you move between Odoo versions or hosting types before planning a retest.

