How OpenProject login rate limiting works by default
A self-hosted OpenProject instance that is reachable from the internet or a partner network needs to slow password guessing and API abuse before anyone asks for it. OpenProject handles this with Rack::Attack, and the login brute-force protection is on by default. You do not need to switch it on to get basic protection against repeated sign-in attempts. The lost-password, registration, mail-recipient and API v3 limits are off by default, so a fresh install does not throttle those paths until an administrator enables them in the advanced configuration. Confirm the exact setting names and thresholds for your release in the OpenProject advanced configuration docs before you rely on them.
Turn on the off-by-default limits when the exposure justifies it. A public instance that accepts self-service registration should limit registration. An instance where people can request password resets from anywhere should limit lost-password requests, because each request can trigger mail and reveal which accounts exist. Mail-recipient limits matter where users can invite or notify many addresses, since an open instance can otherwise be used to send mail through your server. API v3 limits matter when automation, mobile clients or integrations call the API at high volume or when a token is leaked. Plan these changes with the people who run your SMTP relay and identity provider, because a limit that is too tight will block legitimate integrations and sign-ins from shared offices or proxies.
Decide early whether the application-level limits are enough for your network. Rack::Attack counts requests as seen by the application, so if all traffic arrives through one reverse proxy or load balancer, the client address it sees may be the proxy itself. Check how forwarded client addresses are passed through, and test that failed sign-ins from different sources are counted separately. Where your organization already runs a web application firewall or proxy with rate limits, those layers still help with volumetric abuse and with traffic that never reaches OpenProject. They do not replace the application checks, which know about accounts and login attempts. Ask your team to document which layer owns each limit and how an administrator unblocks a locked-out user.
Which rate limits and sign-in controls fit which risk
This table compares each sign-in and API control OpenProject offers against the abuse it addresses, its default state, and the cost to users or operators. Read it as a menu: the first row is already active, and the rest need deliberate enabling and testing before you rely on them.
| Control | Abuse it addresses | Default state and trade-off |
|---|---|---|
| Login brute-force limit (Rack::Attack) | Repeated password guessing against a known account from one client | On by default. Shared office or NAT addresses can trigger lockouts for several users at once. |
| Lost-password limit | Flooding password reset emails or probing which accounts exist | Off by default. Enabling it protects mailboxes but can slow legitimate users who request resets repeatedly. |
| Registration limit | Bulk creation of accounts on instances where self-registration is open | Off by default. Relevant only if self-registration is enabled; confirm your registration settings first. |
| Mail-recipient limit | Abusing the instance to send mail to many addresses | Off by default. Tune it against normal notification volume for large projects to avoid blocking real work. |
| API v3 limit | Scripted scraping or request floods against the API | Off by default. Integrations with heavy polling, such as sync jobs, may hit thresholds; test them before enabling. |
| reCAPTCHA on login | Automated credential stuffing that a rate limit alone does not stop | Optional, configured separately. Adds friction at sign-in and depends on an external service; confirm data handling with your privacy team. |
| BCrypt cost factor 12 | Offline cracking if password hashes are ever exposed | Default cost factor 12. Higher cost slows every login and needs load testing before you change it. |
| Proxy or WAF rate limits | Volumetric abuse and traffic floods before requests reach the application | Configured outside OpenProject. Useful as a first layer, but per-account lockout logic still needs the application limits. |
Configuring and verifying rate limits on a self-hosted instance
This sequence moves a self-hosted OpenProject from its default abuse protection to a documented, tested set of limits on sign-in, password recovery and API traffic. The output is a change record that shows each setting, the reason for it, and the test results that confirm the limits block abuse without blocking normal use.
Record the current rate limit settings
A system administrator reviews the rate limit keys in the advanced configuration reference and records the current value of each one. Confirm which keys your release exposes and whether your install reads them from the configuration file or from environment variables, as Docker and Helm installs often do. Login brute-force protection should already be on. Done when the change record lists every rate limit key, its current value and where it is set, including the lost-password, registration, mail-recipient and API v3 limits that are off by default.
Enable the off-by-default limits that match your risk
Decide each limit from exposure rather than enabling everything at once. Public registration and lost-password forms matter most if the instance is reachable from the internet. API v3 limits matter when token-based clients or scripts send traffic you do not control. Mail-recipient limits matter when users can trigger email to addresses they choose. Set only the keys you chose, leave the rest unchanged, and write the reason next to each one. Done when every enabled limit has a stated risk and an owner in the change record.
Add reCAPTCHA to login if needed
If brute-force limits alone do not meet your policy, enable reCAPTCHA on the login form through the authentication settings described in the authentication documentation. Use site and secret keys issued for your own domain, and confirm which reCAPTCHA version your release supports before you request keys. Keep the keys out of shared configuration files. Done when a private browser session shows the challenge on the login page and the server accepts a valid response.
Restart and confirm the change took effect
Restart OpenProject using your install method, such as the packaged service, Docker Compose or Helm, so the new settings load. Check that the application comes back healthy and scan the startup logs for configuration errors that could disable a limit without warning. Then compare the live values with the list recorded in the first step. Done when the restart completes without configuration errors and every changed key shows the value you set. A setting that does not match means the change did not load and the tests in the next steps would not prove anything.
Test failed logins from a test client
From a client outside your production user base, use a dedicated test account and submit wrong passwords until the login limit applies. Confirm that the lockout or throttling message appears, that the correct password is refused while the block is active, and that sign-in works again once the block period ends. Confirm the exact message text and block duration in your release, since the documentation you check may differ by version. Done when the observed behavior matches the expected behavior written in the change record.
Test password reset and API requests
Send repeated requests from the test client to the lost-password form and to an API v3 endpoint using a test token. Confirm the status code and response body your release returns when a limit applies, and check that the endpoint answers normally again after the limit clears. Repeat the test only with test accounts, because a successful block will lock out whatever identity you use. Done when each enabled limit has a recorded request count that triggered it and a recorded response for the blocked request.
Review logs for blocked requests
Open the application log and find the entries written for each blocked test request, matching them by timestamp to your test run. Confirm that the entries identify the limit that fired and that they reach your log collector or SIEM if you forward logs. Check that no ordinary traffic from other users or services was blocked during the test window. Done when every test block has a matching log entry and the review finds no unplanned blocks. Record the log location and the search you used so operations staff can repeat the check.
Why reverse proxy and WAF limits still matter
Application-level limits in Rack::Attack only work if OpenProject sees the real client address, and behind a reverse proxy it sees the proxy unless the proxy forwards the original address correctly. Confirm that your proxy sets the forwarded client address header that OpenProject trusts, and that the trusted proxy addresses are restricted to your own proxy hosts. If this is wrong, every user appears to come from one address, so a single attacker can lock out the whole organization or, worse, the limit never trips for a specific attacker. Test this with a deliberate run of failed sign-ins from two different networks and check the address recorded in the logs before you rely on the application limit.
Edge controls cover what the application cannot see or should not spend resources on. A reverse proxy or web application firewall can apply connection and request rate limits before traffic reaches the Rails stack, filter traffic by geography where your user base is known, and apply bot management to distinguish scripted credential stuffing from normal browsers. These layers also absorb floods that would otherwise tie up application workers, which matters more than the login counter itself. Decide which of these your organization already runs, who owns the rules, and whether the edge team can produce logs that the application team can correlate with OpenProject's own sign-in events.
The two layers need a shared policy so that a single user is not blocked twice with different windows and no one can explain the lockout. Choose one layer as the owner for each path, for example the edge for broad request floods and the application for per-account sign-in failures, and document the thresholds and reset times for both. Then run a lockout drill with a test account and confirm which layer blocked it, how long the block lasts, and how an administrator clears it. This is a planning decision for your team, and the exact configuration should be confirmed against the current OpenProject advanced configuration documentation and your proxy vendor's guidance.
How a sign-in request passes through the limits
The flow starts at the client, which sends a sign-in request through an optional edge WAF or reverse proxy that can apply its own rate limits. OpenProject's Rack::Attack layer then checks the login brute-force limit, which is on by default, before any password is verified. If reCAPTCHA is enabled, the request must pass the challenge, and only then does BCrypt check the password at the configured cost factor. When SSO is in use, the credential check moves to the identity provider. Check that blocked requests return a clear refusal and that the proxy and application limits agree.
Sign-in requests pass through edge, application and credential checks in order.
Security and operational risks of abuse controls
Rate limits and password hashing protect sign-in and the API, but each one has a cost on users, capacity and operations. The cards below cover the trade-offs an operator should review before turning controls on, changing them, or relying on them as the only line of defense.
False lockouts behind shared addresses
Many users behind one corporate NAT, VPN exit or reverse proxy can appear to OpenProject as a single client address. A burst of failed logins from one colleague can then throttle everyone on that address. Check how your network presents client addresses, decide whether throttling should key on the account as well as the address, and test lockout behavior with a shared test address before go-live. Confirm the exact keying and thresholds in the advanced configuration docs for your release.
Advanced configuration docsLimiter storage across instances
Rack::Attack counts requests in the cache store it is configured to use. If OpenProject runs several application containers or pods and each keeps its own counters, an attacker gets a higher effective limit than the number you configured. Confirm which cache backend your deployment shares between instances, and check that counters survive a restart if you rely on them. Include this in your load balancer and Kubernetes design, not only the application config.
Password hashing cost and capacity
OpenProject hashes passwords with BCrypt at a default cost factor of 12. Each login attempt, including failed ones that an attacker sends, consumes CPU on the application servers, so hashing cost and rate limits interact. Raising the cost makes stolen hashes harder to crack but slows every sign-in. Load test login peaks on your sizing before changing the factor, and keep the limits low enough that a flood of guesses cannot exhaust your CPU.
Scraping through API v3
The API v3 limit is off by default, so a valid token or a session with broad read access can be used to enumerate work packages, users and project data at machine speed. Decide whether your API consumers need a request ceiling, and set one per token or per client address. Review which accounts can call the API at all, because a limit does not stop a legitimate-looking account from reading everything it is allowed to see.
Logging and alerting on blocked requests
A limit that blocks silently cannot tell you that someone is guessing passwords. Send throttled and blocked requests to your log pipeline, and alert on sustained blocks against the same account or address. Confirm what OpenProject writes to its logs for throttled requests in your release, and whether the blocked client address and the target account are both recorded. Agree who responds to alerts and what they do before enabling notifications.
Forwarded address settings at the proxy
Rate limits key on the client address that OpenProject sees. Behind a reverse proxy or load balancer, that address is the proxy unless forwarded headers are read and trusted correctly. If the trusted proxy list is too broad, a client can spoof its address and escape its limit. If it is too narrow, every user shares the proxy address and gets locked out together. Verify the forwarded-address configuration with a test request from two different clients after each proxy change.
Questions buyers ask about OpenProject brute-force protection
Is the default OpenProject brute-force protection enough?
For many installs, the login brute-force limit is a useful baseline, but it is not a complete control on its own. OpenProject uses Rack::Attack and turns login brute-force protection on by default, while lost-password, registration, mail-recipient and API v3 limits are off by default. That means password guessing against the sign-in form is throttled out of the box, but password reset abuse, account enumeration through forms and heavy API traffic are not limited until you enable those rules. Check the current values in the advanced configuration documentation and decide per endpoint, based on your exposure to the internet and your identity provider setup.
How much effort does enabling more rate limits take, and what drives it?
The effort depends mainly on how many endpoints you expose, how your users and integrations really call OpenProject, and how much testing you need before enabling limits in production. Enabling a limit is a configuration change, but choosing thresholds that do not block legitimate traffic (such as Nextcloud or CI integrations polling the API v3) takes traffic analysis and a staging test. Cost comes from the internal or partner time spent on that analysis, the test plan, and the change window. Ask for a written scope that lists each limit you want enabled, the environments covered, and who signs off on threshold values.
What does the internal team need to provide for this work?
Your team needs to supply access to the OpenProject configuration, a staging copy that matches production, and a list of integrations and automated clients that call the instance. You also need someone who owns the reverse proxy and network layer, because many limits are easier to tune and verify there. Finally, assign a decision owner for threshold values and for how lockouts are handled by the help desk. Without these inputs, thresholds are guesses and the first week of production usually produces support tickets from blocked services.
Do we need a partner for a WAF or SSO setup around OpenProject?
Not always. Your own team can configure OpenProject limits and reCAPTCHA if it has the skills, but a partner adds value when the work spans several layers at once. Typical examples include a web application firewall in front of the proxy, SSO through an identity provider where login throttling belongs to the identity provider rather than OpenProject, and reCAPTCHA integration that must match your privacy review. OpenProject SSO options are described in its authentication documentation. Check which layer owns each control before you split the work.
How long does a typical configuration and test cycle take?
No duration is fixed here, because the cycle depends on the number of limits, the layers involved and how many integrations must be retested. Ask any provider for a written scope that states the timeline, the test cases for each limit, the rollback plan, and the number of staging review rounds. A well-defined scope lets you compare internal and partner estimates on the same terms. Confirm the OpenProject version you run before planning, since configuration keys can change between releases.
Do these controls satisfy our audit requirements?
Rate limits, password hashing and reCAPTCHA support evidence for access control and authentication controls, but they do not make an environment compliant by themselves. Auditors decide whether a control is sufficient for your framework, and DeployOpen prepares systems, configurations and evidence for assessments without issuing audit reports or certifications. Keep records of the configured values, the change approvals, the test results and the review dates. Ask your auditor which evidence they expect for login protection before the assessment begins.
What does BCrypt cost 12 change for our users?
OpenProject hashes passwords with BCrypt at a default cost factor of 12, which makes offline guessing of a stolen password database slower than a low cost setting would. The trade-off is that each password check takes more CPU time, so heavy login bursts need enough capacity on the application servers. Do not change the cost factor without testing, because existing hashes stay valid but new work factors affect login latency. Ask your engineers to measure login response time under expected peak load before deciding.
How DeployOpen scopes and tests sign-in protection
DeployOpen treats OpenProject login rate limiting and brute-force protection as a scoped change to a self-hosted instance, not a checkbox. We confirm which Rack::Attack limits are active in your configuration, decide which off-by-default limits to enable, and test the result against your identity setup and reverse proxy before handing it over.
How we scope
- We inventory your current sign-in path, including any reverse proxy, WAF or SSO provider in front of OpenProject.
- We confirm which Rack::Attack limits are on by default and which optional limits your team wants to switch on.
- The written scope names the environments, configuration changes, test cases and documents, and engagements are fixed-scope.
How we build
- We apply the agreed limit settings, password hashing and reCAPTCHA choices in your own infrastructure, with changes recorded.
- We test failed-login lockout behavior, API v3 throttling and lost-password limits against your real user flows in a staging instance first.
- We check that legitimate users, SSO logins and internal automation are not blocked by the limits chosen.
How we hand over
- You receive a configuration record listing each limit, its value, its purpose and the file or setting where it lives.
- You receive a test report with reproduced abuse scenarios, the results observed and the retest outcome after fixes.
- You receive operator notes on where proxy or WAF limits still add value and what to confirm with your network team.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so limits are rechecked after each OpenProject release.
- We can retest after upgrades or configuration changes to confirm that protections still apply as written.
- Support scope and frequency are agreed in writing, and a quote follows from that agreed scope.

