Enforcing two-factor authentication in Redmine

Two-factor authentication in Redmine protects web sign-in for the accounts that matter most. This page explains how to choose a rollout mode, enroll users and plan for lockouts and API clients.

On this page

Why teams enforce two-factor authentication in Redmine

A production Redmine holds issues, wiki pages, time entries and attachments, and it is often reachable from the internet or from many networks. Administrators can change roles, users, projects and settings across the whole instance. Two-factor authentication adds a second proof of identity to the password, so a stolen or guessed password alone does not open the account. For an instance with that exposure, enforcing 2FA is one of the most direct ways to reduce the risk of account takeover, and it matters most for administrator accounts, where one compromised login can reach everything.

Two-factor authentication stops at the edges of the login form. It does not protect an API key that a user has already copied into a script, a session cookie that remains valid after sign-in, or an account whose password is checked by an LDAP directory rather than by Redmine itself. Each of those paths needs its own control, such as session lifetime limits, careful API key handling and directory-side policy. Some of these interactions depend on the Redmine release, so the reader should review how 2FA interacts with the REST API and with LDAP-backed accounts before deciding who must enroll.

The exact 2FA settings, enrollment screens, recovery steps and API behavior must be confirmed against the Redmine documentation for the release you install, since this topic was not backed by a researched source in this brief. Check the Redmine download page for the supported release line before you plan the rollout, and test the enrollment and recovery flow on a staging copy of your instance first.

Optional, administrator-only or mandatory: which 2FA mode fits your risk

This table compares the three 2FA rollout modes against the drivers that usually decide between them: who each mode protects, enrollment effort, lockout risk, external and LDAP-backed accounts, and API use. Read each column as a separate rollout choice, then confirm the setting names in the Redmine version you run, because authentication options change between releases. The main takeaway is that the broader the mode, the more enrollment and recovery work you need ready before go-live.

Decision driverOptional for all usersAdministrators onlyRequired for everyone
Who it protectsOnly users who choose to enroll. Other accounts stay password-only.Accounts with administrator rights, which carry the highest impact if compromised.Every account, including users who can see project data but change little.
Enrollment burdenLow at launch, but coverage depends on user choice and follow-up.A small group to enroll and support before go-live.One enrollment per user, plus help desk time for lost devices and backup codes.
Lockout riskNo lockout from the policy itself. Account recovery still needs a process.Administrators without an enrolled device or backup codes can be locked out of admin tasks.Any user can be locked out, so the help desk needs a verified recovery path first.
External and contractor accountsContractors may stay unenrolled, which leaves their access uncovered.Contractors without admin rights stay password-only, so review their access separately.Contractors must enroll, so confirm they can use an authenticator app on their own devices.
LDAP-backed accountsConfirm whether the setting applies to directory logins in your version.Confirm whether administrators who sign in through LDAP are challenged for a second factor.Confirm whether directory users are challenged, since your directory may already enforce MFA.
API useUsers on API keys are unaffected by enrollment choices. Confirm this for your version.Non-admin API clients may keep working, so test them before the change.Scripts that use basic authentication for enrolled users may fail. Move them to API keys and test.
Setting to confirm in your versionFind the 2FA option in the authentication settings, and confirm the default state.Check whether this mode is a separate setting, a plugin option or a group-based rule.Confirm the setting name, whether it can be scoped to groups, and whether it covers existing sessions.
When it fitsA pilot, a low-risk internal team or a staged rollout with a set enrollment date.A small internal user base with few external accounts and a clear admin population.Regulated data, many external accounts, or a written policy that requires MFA for all users.

How a two-factor sign-in and an API request pass through Redmine

The diagram starts with a browser user who submits a password at the reverse proxy, which sits at the trust boundary between the internet and the Redmine application. Once the password is accepted, Redmine asks for a second factor, and a user who has not yet enrolled is sent to enrollment before reaching the application. An administrator recovers a locked account through a separate path, and an API client skips the interactive login by presenting a key or basic credentials. Check that every path reaches Redmine only through the proxy and that the API path is tested against your chosen 2FA settings.

Sign-in, enrollment, administrator recovery and API authentication paths through the reverse proxy.

What changes for users, administrators and API clients

Most people will meet two-factor authentication as a one-time enrollment step followed by an extra code at sign-in. The change is small for them, but it lands on their working day, so the rollout should tell them what to expect, which device to use and what to do if they lose it. Enrollment is done by each user in their own account, which means you cannot finish it on their behalf.

  • Enrollment: Users open their account settings, start two-factor setup, scan the code with an authenticator app and confirm with a generated code.
  • Daily sign-in: After the password, users enter a time-based code from the app before the session starts. Confirm how long a trusted browser stays signed in under your session settings.
  • Backup codes: Users should save the one-time backup codes at enrollment and store them somewhere other than the phone that holds the authenticator.
  • Lost device: Decide in advance who users contact when they lose their phone, and what identity check the help desk uses before resetting a second factor.
  • Sign-in for LDAP accounts: Confirm with your team whether accounts that authenticate against a directory follow the same 2FA flow in the release you run.

Before switching on a required policy, run a pilot with a small group and check that the enrollment steps match your published guidance.

How to roll out two-factor authentication in Redmine

This sequence moves Redmine from no second factor to enforced two-factor authentication without locking out administrators or breaking API clients. Each step ends with a check, and each change has a rollback path.

  1. Confirm the installed version and support status

    Record the exact Redmine version from the administration information page and compare it with the Redmine download page. The page lists 7.0.x as the fully supported line, 6.1.x as receiving bug and security fixes, 6.0.x as receiving important security fixes only, and 5.1.x and older as unsupported. Settings and 2FA behavior vary by release, so confirm the options in your own version before planning. If you run an unsupported branch, schedule the upgrade first. Done when the version and support status are written into the change record.

  2. Back up the database and uploaded files

    Take a database dump, a copy of the files directory, the configuration file and your installed plugins, following the backup steps in the Redmine upgrade guide. Store the copy outside the Redmine server. Restore the backup to a scratch host and confirm that Redmine starts and an existing test user can sign in with a password. If the restore fails, stop the rollout and fix the backup process before changing any setting. Done when the restore test passes and the backup location is recorded.

  3. Inventory every account and its sign-in method

    List all human users, all administrators, accounts that authenticate against LDAP, and service accounts used by scripts, CI jobs, or integrations. For each account, record the owner, the sign-in method, and whether it uses the web login or only the REST API. Confirm with your Redmine version how two-factor authentication applies to LDAP-authenticated accounts and whether it applies to API key or basic authentication requests, and ask the directory team to confirm any account policy that overlaps. Done when every account has a named owner and a recorded sign-in method.

  4. Choose the enforcement mode

    Select one of the modes your version offers in the authentication settings, confirming the exact labels in the administration interface. Optional mode lets users enroll at their own pace. Required for administrators protects the accounts with the most privilege first. Required for everyone gives the strongest coverage but affects every web user and any integration that depends on password-based sign-in. Record the chosen mode, the reason for it, and the approver. Done when the security owner has signed off the decision in writing.

  5. Enable the setting on a staging copy

    Restore the verified backup to a staging instance, apply the chosen mode, and test the full path with a dedicated test account. Enroll an authenticator app, save the backup codes, sign out, sign in with a one-time code, and then sign in with a backup code. Confirm the behavior of backup codes after use in your version. Then make one REST API call with an API key and one with basic authentication to see how each behaves. Done when the test account completes every step. If enrollment fails, check clock synchronization on the server and the device, revert the setting on staging, and retest.

  6. Pilot with named administrators

    Enable the setting in production for a small group of named administrators, not for all users. Each pilot administrator enrolls, saves backup codes in a password manager or sealed record, and signs in from a fresh browser session. Confirm the recovery path your version provides for a user who loses the authenticator, and confirm whether another administrator can reset enrollment. Done when every pilot administrator has signed in with a second factor and the recovery path has been tested once. If a pilot account is locked out, revert the mode to optional and resolve the access problem before continuing.

  7. Communicate the enrollment window and API impact

    Send users a notice that states the enforcement date you set, which authenticator apps are supported in your version, how to store backup codes, and who to contact for help. Ask owners of API clients and integrations to confirm which of them use password-based or key-based access, and to test them before enforcement. Brief the help desk on the enrollment steps and the recovery procedure. Done when the notice has been sent, the help desk has its script, and each integration owner has confirmed their test result.

  8. Enforce in production and review results

    Apply the agreed mode in production during an approved change window. Sign in with a test account to confirm that the second factor is requested. Keep a documented break-glass procedure for administrators who lose both the device and the backup codes, and confirm who can carry it out and how it is logged. After enforcement, review the enrollment status of every account, the failed sign-in records, and any integration errors, and assign an owner to each exception. Done when the enrollment review is complete and every exception has an owner and a closure date.

Enrolling existing users and avoiding admin lockouts

Enroll existing users in waves before enforcement switches on. A Redmine instance with active accounts cannot require two-factor authentication overnight without stopping work, so plan the rollout as staged groups: administrators first, then a pilot team of ordinary users, then the rest of the organization in batches. Name one support contact for each wave who can walk users through setup and reset enrollment when a phone is replaced. Publish a deadline that gives every group a realistic window to enroll before the requirement applies to them, and confirm with your Redmine version's documentation how an optional period, a mandatory period and a per-role requirement behave in practice, since enforcement behavior is the part most likely to differ between releases. Test the full sequence on a staging copy first, including a user who logs in from the API, so the support contact knows what a blocked user will see.

Treat backup codes as the recovery path for lost devices. Users who lose their authenticator app need a way back in that does not depend on an administrator, so decide whether backup codes are issued during enrollment, how many a user receives, and how they are regenerated. Assign ownership clearly: each user holds their own codes in a password manager or sealed offline store, the support contact never keeps a copy of a user's codes, and the security team holds only the procedure for resetting enrollment. Codes are secrets equal to a password for the account they open, so instruct users not to store them in tickets, wiki pages or email, and check that your enrollment guidance says so in plain terms.

Plan for the administrator who is locked out. The most damaging case is an administrator who forgets a password and has also lost the device holding the second factor, because no one else can reset the account. Keep at least two named administrator accounts, each enrolled in two-factor authentication, held by different people, and never shared. Write a recovery procedure that states who may approve a reset, which console commands or database steps the operator uses, and where the change is logged, then confirm every recovery action against the Redmine documentation for your release before relying on it. Finally, test an out-of-band access method, such as shell access to the application server through a separate privileged path, so the procedure works when the web login does not. A recovery path that has never been exercised is not a recovery path.

Security controls that work alongside two-factor authentication

Two-factor authentication protects the sign-in step, but it does not cover what happens after someone is inside. The controls below limit what a signed-in administrator can do, how long sessions last, where the admin interface is reachable and what sensitive data leaks out through keys, logs and backups. Confirm each setting in the Redmine release you run, since defaults and option names change between lines.

Sudo mode for admin actions

Sudo mode asks users to re-authenticate before sensitive administrative and account actions. It matters for 2FA because a stolen session that already passed the second factor can still change settings or accounts without it. Check whether sudo mode is enabled on your release, how it interacts with 2FA and LDAP-managed accounts, and which settings to review after an upgrade. See the sibling topic on sudo mode.

Password policy and expiry

2FA does not replace a password policy. Passwords still gate the first factor and the recovery paths, including lost-password email. Set minimum length, character rules and rejection of name-based passwords to match your policy, and decide whether LDAP-backed accounts follow the directory rules instead. Confirm which options your release exposes in the administration settings before you write the policy down.

Session lifetime and upgrade path

Session length determines how long a stolen or unattended browser stays signed in after the second factor was passed. Pick a maximum lifetime and an inactivity timeout, and review how autologin is handled. The security fixes that matter most are in the supported lines, so confirm you are on 7.0.x. The fully supported line receives new features, bug fixes and security updates, while 5.1.x and older are unsupported.

Redmine download page

Reverse proxy and network restrictions

Put the administrative interface behind a reverse proxy or a network boundary you control, and limit who can reach /admin and the sign-in page. Restricting by network path reduces exposure to password spraying regardless of 2FA status. Also confirm the proxy forwards the client address correctly so login throttling and audit logs record real source IPs, and set request body limits that match your upload policy.

API key protection and log hygiene

The REST API accepts a per-user key as a request parameter or in the X-Redmine-API-Key header, and users with 2FA typically need a key rather than basic authentication. A key in a query string can appear in web server access logs, proxy logs and monitoring tools. Prefer the header, filter key values from logs, use dedicated service accounts with narrow roles, and confirm the REST API is enabled only where needed.

Redmine REST API wiki

Removing the default administrator account

A fresh install has a well-known default administrator login. Two-factor authentication on that account is a weak substitute for removing it, since automated tools try default credentials first. Create named administrator accounts, enroll each one in 2FA, lock or rename the default account, and audit who holds the administrator flag. Record the change so reviewers can see when the default account stopped being usable.

Backups holding user data

Database dumps and attachment archives contain password hashes, two-factor enrollment data and user content, so a backup can undo the protection 2FA gives. Encrypt backups at rest, restrict who can restore them, and keep their retention aligned with your policy. Test restores on an isolated host. Confirm with your operations team how backups handle any encryption keys stored in the configuration file.

Questions teams ask before enabling two-factor authentication in Redmine

What does it cost to enable two-factor authentication in Redmine?

Redmine itself has no paid edition, so the cost is the work around it: planning the policy, configuring and testing the rollout, writing the recovery runbook, and any support window you buy from a partner or keep in-house. Recurring costs come from keeping the instance patched, reviewing who holds the administrator flag, and supporting users who lose their second factor. If your organization already pays for an authenticator or identity platform, check whether it can supply the second factor before you buy anything new. Ask any quote to separate the one-time configuration and testing from the ongoing support hours, and to state what happens if the rollout turns up plugins or LDAP accounts that need changes.

How long does a Redmine two-factor rollout take?

The duration depends on the number of accounts, whether users sign in through LDAP, how many API clients and integrations depend on basic authentication, and how many people are available to test and communicate changes. A small instance with a few administrators and no LDAP can often move through a staging test and a phased enrollment quickly, while a large directory with many integrations needs more testing time for each client. No duration is given here because none was supplied for this topic. Ask for a timeline in the written scope that lists the staging test, the enrollment waves, the API client review and the cutover date.

Can our own team enable two-factor authentication without a partner?

Yes, for a small instance, provided one or two administrators can read the configuration and follow a tested recovery runbook. The risky steps are not the settings themselves but the lockout scenarios: an administrator who loses a device, a user who enrolls nothing before a required policy takes effect, and an integration that stops working after API access changes. Your team should rehearse each scenario on a staging copy before it touches production. Bring in outside help if you run several environments, many integrations or LDAP-backed accounts that need coordinated changes.

What do we need to provide for the work?

Plan for named administrators who can make and approve changes, a staging copy of the production database and configuration so the policy can be tested safely, and a support window when users can be contacted and helped to enroll. You will also need a list of accounts, including service accounts and any LDAP-linked users, plus an inventory of API clients and the people who own them. Confirm who signs off on the policy for administrators and for everyone else, because the two settings have different effects on users. A written scope should name these inputs so that delays are not discovered after the cutover date is set.

What happens when an administrator loses a device or a password?

Before enforcing two-factor authentication for administrators, make sure each administrator has saved backup codes and that at least one second administrator can reset another account. Store a recovery path outside Redmine, such as a documented procedure that uses direct database access by a trusted operator, and keep it current with your change log. Test the procedure on staging by locking out a test administrator on purpose. Confirm with your own environment how your hosting provider handles console access, because that access is often the last resort when every administrator is locked out.

How does two-factor authentication affect API clients and integrations?

Enabling two-factor authentication changes how API clients can sign in. Clients that use HTTP basic authentication with a username and password are the main risk, because a second factor cannot be typed into a script. Clients should instead use a per-user API key, which the REST API accepts as a parameter or in the X-Redmine-API-Key header, and the REST API must be enabled by an administrator. Inventory every integration before the change, move each one to an API key owned by a suitable account, and retest it on staging. Confirm the exact behavior for your Redmine version in the REST API documentation before you set the policy.

Does enforcing two-factor authentication need a plugin or single sign-on?

Redmine core supports LDAP authentication natively, but single sign-on through SAML or OpenID Connect is not part of core Redmine and depends on plugins or an authenticating reverse proxy. Whether two-factor enrollment works for LDAP-backed accounts depends on where the credential is checked, so test those accounts specifically rather than assuming the policy applies the same way. If your organization already enforces a second factor in an identity provider in front of Redmine, confirm with the vendor and in your own environment whether that setup meets your policy before adding a second layer inside Redmine. Ask for this check to be written into the scope.

How DeployOpen scopes and delivers two-factor authentication for Redmine

DeployOpen plans and delivers two-factor authentication for Redmine inside your own infrastructure, starting from who must enroll, which accounts count as administrators, and how API clients will keep working. The work is written as a fixed scope with agreed deliverables, so your security, identity and Redmine owners can review the policy, the recovery path and the evidence before rollout.

How we scope

  • Agree in writing whether 2FA stays optional, applies to administrators, or applies to every account.
  • Inventory existing users, LDAP-managed accounts and API clients that will be affected by the policy.
  • Define the recovery path for forgotten passwords and lost authenticator devices before any enforcement date.
  • Confirm the Redmine version and branch in use, since 2FA behavior and settings must match that release.

How we build

  • Configure the chosen 2FA policy on a staging copy of your Redmine instance using your real account mix.
  • Test enrollment, backup code use, and administrator recovery steps against documented, repeatable test cases.
  • Verify how API clients authenticate under the policy and document any changes needed for service accounts.
  • Run the tests again after each Redmine upgrade or plugin change that touches authentication.

How we hand over

  • Deliver a written runbook covering enrollment steps, user support messages and administrator lockout recovery.
  • Document the policy settings, their owners and the evidence your compliance team can review later.
  • Walk your administrators through recovery procedures so the knowledge does not depend on one person.
  • Provide a rollout checklist for communicating the enforcement date to users and managers.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the fixed-scope work ends.
  • Ask any partner to confirm how changes to 2FA policy are reviewed, approved and logged in your environment.
  • Retesting after Redmine security releases can be included in a retainer, scoped to your installed plugins.
  • Confirm in the quote which items are one-time work and which recur under a support arrangement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.