What Redmine sudo mode protects and when you need it
Sudo mode adds a re-authentication step before sensitive administrative and account actions in Redmine, so a stolen or left-open browser session cannot change settings or accounts on its own. The situation it addresses is a production instance where an attacker who gets hold of a logged-in administrator's session could alter authentication settings, create or elevate accounts, or change configuration that controls who can sign in. Re-entering credentials at that point forces the person making the change to be the person who holds the password or second factor, not just the person holding the cookie.
The Redmine 7.0 documentation defines the protected categories, so start there rather than from memory of an older release. Read the 7.0 release notes and the source to confirm which actions require re-authentication, how long a confirmation remains valid, and whether the behavior differs for administrators and ordinary account holders. Do not assume the list carries over from a prior version. Ask your implementation partner or your own developers to produce that list for your exact version and plugin set, because a plugin that adds admin pages may fall outside the core behavior.
Review sudo mode in three situations: after you roll out two-factor authentication, because the re-authentication prompt and the second factor interact and you need to confirm administrators can complete both; after any upgrade to 7.0, because defaults and settings can change and existing configuration may not reflect the new behavior; and whenever LDAP accounts are in use, because a user whose password lives in the directory may not be able to re-authenticate inside Redmine in the same way. Test each case with a named administrator, a local account and an LDAP account before you call the control working.
Sudo mode settings and when each choice fits
This table compares the decisions a team makes about Redmine sudo mode: keeping the default, narrowing its scope or changing its timeout, and how it applies to administrators, regular users, 2FA users and LDAP-backed accounts. Read each row as a trade-off between administrator friction and the exposure of a hijacked session. Setting names and defaults are marked for confirmation in your 7.0.2 configuration or source.
| Decision | Option | Trade-off | When it fits |
|---|---|---|---|
| Keep sudo mode at its shipped setting | Leave sudo mode as installed and confirm it is active in your 7.0.2 configuration | Administrators re-enter credentials more often, but a stolen session cookie alone cannot change sensitive settings | Production instances with administrators, shared workstations or public-facing logins |
| Confirm the default state after upgrading | Check whether sudo mode was on, off or changed by a 6.x to 7.0 upgrade | Upgrades can leave settings at defaults you did not choose, so the protection may differ from what you expect | Any instance moving from 6.x or 5.1 and older, before go-live |
| Narrow the protected actions | Limit sudo prompts to administrator actions only (confirm which actions are covered in 7.0.2) | Regular users face fewer prompts, but account actions such as email or password changes may lose re-authentication | Internal instances where users rarely perform account changes and admins are tightly managed |
| Lengthen the sudo timeout | Increase the window before re-authentication is required (confirm the setting name and default in 7.0.2) | Fewer prompts for admins, but a hijacked session stays usable for sensitive actions for longer | Only with strong session controls and a documented reason, such as a scripted admin workflow that is hard to interrupt |
| Shorten the sudo timeout | Require re-authentication after a shorter window (confirm the setting in 7.0.2) | More frequent prompts for admins, but a narrower exposure window after session theft | Regulated or high-privilege instances where administrator sessions are a primary risk |
| Users with two-factor authentication | Confirm how the sudo prompt accepts a second factor for 2FA-enabled accounts | Stronger re-authentication, but users without a working authenticator or backup codes can be blocked from sensitive actions | Any instance that enforces 2FA for administrators, after backup codes are issued |
| LDAP-backed accounts | Confirm whether the sudo prompt verifies the directory password or only a local password | Directory-managed users may not be able to re-authenticate locally, so changes to their accounts can fail or depend on the directory | Mixed instances where LDAP accounts are common and administrators must test each sign-in path |
How to verify and configure sudo mode on a 7.0 install
This sequence confirms that your Redmine install runs the 7.0 line, shows where sudo mode is set, and tests re-authentication for administrator, two-factor and LDAP accounts. The result is a dated record of what each account type is asked to confirm before a sensitive change.
Confirm the installed version is 7.0.x
The administrator signs in to the running instance and opens Administration, then Information, to read the Redmine version. Compare it with the 7.0.x line. The latest stable release listed on the Redmine download page is 7.0.2. If the instance reports 6.x or older, stop here. Sudo mode steps in this topic apply to 7.0, so plan the upgrade first. Done when the version shown matches 7.0.x and the deployed code matches it.
Locate sudo mode settings and defaults
From the Redmine root directory, search the deployed application, configuration and library folders for sudo-related code and settings. Then check the 7.0 release notes and upgrade notes for the default state and any setting that controls it. Record the default, where it is set (administration settings or configuration files), and its current value. If the search returns nothing or the notes do not mention sudo mode, do not assume a default. Confirm with the vendor or the community before you go on, and note the open question in your record.
Test re-authentication on an administrator flag change
Using a dedicated test administrator account, sign in and change the administrator flag on a separate disposable test user. Watch for a prompt asking the signed-in administrator to confirm their identity before the change is saved. Then complete the change and confirm it applies. A failed check means the change saved with no prompt. In that case, review the setting from the previous step and confirm whether this action is covered in your version. Record the result with the version and the date.
Test re-authentication on a password change
Repeat the test on a disposable local test account, changing that user's password from an administrator session. Note whether Redmine asks for the administrator's password before saving. Then let the session become idle or sign out and sign back in, and attempt the same change again to see whether the prompt returns. A failed check means the password changed with no prompt, or the prompt accepted an incorrect password. Record both outcomes separately, since the first attempt and the later one may behave differently.
Repeat the test with a two-factor account
Enable two-factor authentication for a test administrator account, following your 2FA rollout settings, then run the administrator flag and password tests again. Record whether the sudo prompt asks for the password only, the second factor only, or both. Confirm that the second factor is accepted at the prompt and that a wrong code is refused. A failed check is a prompt that accepts the password alone or that blocks the account with no way to recover it. Escalate that case before any production rollout.
Repeat the test with an LDAP account
Sign in as a test user authenticated against your LDAP directory and attempt a sensitive action, such as an administrator flag change on that account, or a password change where the directory allows it. Check whether the prompt asks for the directory password and whether Redmine verifies it against the directory. Some account actions may be blocked for directory-managed users, which is expected. A failed check is a prompt that accepts any value, or a change applied without any prompt. Confirm the expected behavior with your directory team.
Record results and repeat after each upgrade
Create a table with one row per test: the account type, action, whether the prompt appeared, what was entered, the outcome, the Redmine version and the date. Store it with your change records. Repeat the same tests after every upgrade, including patch releases, because a defaults change or a new action may alter the results. Done when the record covers administrator, two-factor and LDAP accounts for the installed version, and every open question from step two has an owner.
How a sensitive action passes through sudo mode
The flow starts when a logged-in administrator or account owner requests a sensitive action, such as changing an account's security settings or running an admin task. Redmine first checks whether a recent re-authentication is still valid. If it is not, the user is prompted for the password, and for accounts with two-factor authentication a second factor, or for LDAP-backed accounts the directory bind, before the action runs. Check that refused attempts and successful re-authentications appear in your audit logs, because the exact logging behavior should be confirmed in your own environment.
Decision path a sensitive Redmine action follows through sudo mode checks.
Security and operational considerations for sudo mode
Sudo mode asks an administrator to confirm their identity before sensitive changes in Redmine. It helps against some threats but leaves others open, and it touches logging, API automation, session settings and plugins. The cards below cover where it helps, where it stops and what to check before you rely on it.
Session hijacking as the threat
Sudo mode targets session hijacking. Someone who copies a logged-in browser session could otherwise change accounts, roles or settings without knowing the password. Requiring the password again before those actions narrows what a stolen session cookie can do. Confirm which actions your Redmine version prompts for, then test them with a copied non-admin session before you rely on the control.
Limits against password theft
Re-authentication only helps when the attacker lacks what it asks for. Someone holding a valid password can answer the prompt, and phishing can capture that password at the same moment. Pair sudo mode with two-factor authentication for administrators and a firm password policy. Confirm whether your 2FA setup also covers the sudo prompt in your version.
Scripts and API clients
Automation that creates users, changes roles or edits projects through the REST API may depend on actions that sudo mode guards. A script cannot answer a password prompt, so test how each sensitive call behaves on your version. An administrator must enable the REST API first. Inventory every script that holds administrator rights, and decide whether it needs a dedicated service account.
REST API docsAudit evidence for re-authentication
A re-authentication prompt is useful as evidence only if the event is recorded. Confirm whether your Redmine version logs failed sudo prompts as well as successful ones, and where those entries reach in your log pipeline. Set retention to match your audit policy. Test by changing an account setting and checking that the matching log line appears.
Session lifetime sets the window
Sudo mode limits sensitive actions inside a session, but a long-lived session gives an attacker more time to reach the prompt. Shorter maximum lifetimes and inactivity timeouts keep copied sessions short-lived. Coordinate these with the session lifetime and autologin settings in this group. Changes to the cookie secret linked to SECRET_KEY_BASE affect existing sessions, so plan them with users in mind.
Plugins that add sensitive actions
Plugins can add admin pages, bulk operations or account actions that may skip the re-authentication checks used by core features. Before enabling a plugin in production, list its sensitive actions and test each one after the sudo window has expired. Repeat the test after every plugin update and Redmine upgrade, since a change can alter which actions prompt.
What to review after upgrading to Redmine 7.0
Upgrading from Redmine 6.x or an older release can change how sudo mode behaves in practice, even when you change nothing on purpose. The upgrade guide asks you to back up the database and uploaded files, copy your configuration, uploads and third-party plugins into the new installation, run db:migrate and redmine:plugins:migrate, clear the cache and restart. Copying configuration forward carries your old choices with it, while the new release may ship defaults you never reviewed. A setting you left alone for years may now come from a file or default you did not write, so the check belongs in the upgrade plan itself.
Record the current state before you start. Save a copy of configuration.yml, note the authentication, password, session and two-factor settings in the administration area, and list every plugin that touches login or account pages. After the restart, repeat the same capture and compare the two. Any difference you cannot explain is a finding. Check the Redmine 7.0 release notes for changed defaults rather than relying on memory of how 6.x behaved. Confirm your exact patch level against the Redmine download page, because later 7.0 patches can add fixes. Keep both captures with your change record, since a security reviewer will ask what changed and when.
Then test behavior directly, and do not stop at the settings page. Use a staging copy of the upgraded instance and attempt sensitive actions as a standard user and as an administrator, such as changing a password, changing an email address, editing another user's account and changing an administrator flag. Repeat the same steps with an account that has two-factor authentication enabled and with an account that signs in through LDAP, because those paths may prompt differently or not at all. Write down what each account sees, and compare it with the pre-upgrade behavior if you still have that environment. Any step that completes without a re-authentication prompt where you expected one needs a decision: fix the setting, adjust the plugin, or accept the gap and document it. Repeat the test after each 7.0 patch release.
Limits and what to confirm in your environment
The facts available for sudo mode are limited, so the items below are checks rather than statements. Each one should be confirmed on the exact Redmine version you run, in the environment you run it in, before you write sudo mode into your access policy. Together they decide whether the control protects the actions you care about.
Protected action list
Confirm which administrative and account actions require re-authentication in your installed version. Build the list by testing each action yourself: changing a user's password, changing an email address, adding or removing administrator flags, and editing global settings. Record which actions prompt and which do not, and keep that record with your change evidence so later upgrades can be compared against it.
Upgrade guideRe-authentication window
Find out how long a successful re-authentication remains valid and whether the window can be changed. Test it by performing a protected action, waiting, and repeating it. The answer determines how often an administrator is asked to confirm identity during a normal working session, and whether a left-open browser tab can carry elevated rights.
LDAP user re-authentication
Test how a user whose account authenticates against LDAP passes the sudo prompt. Confirm whether Redmine checks the directory again, and what happens if the directory is slow or unreachable during the prompt. Your identity team should know whether a directory outage blocks administrative work, and whether a local fallback exists for emergency access.
Two-factor and backup code behavior
Verify what a user with two-factor authentication enabled must enter at the sudo prompt, and whether a backup code is accepted there. Check that a code used at sign-in is handled the same way at the prompt. Also confirm how a locked-out administrator recovers, because a prompt that cannot be satisfied is a denial of service for that account.
Plugin support for sudo mode
Check whether each installed plugin that performs administrative or account actions goes through the same controls. A plugin that writes user or role data directly may bypass the prompt. List your plugins, test their administrative screens, and ask plugin authors or maintainers in writing before relying on sudo mode for any plugin-managed action.
Docker and Linux parity
Confirm that the same settings and prompts appear on your Docker and Linux deployments, since they often use different configuration files and session stores. Run the same test script on each environment after every upgrade, and compare results. Differences in the secret key or cookie handling between hosts can change how sessions behave, so check those values too.
Questions buyers ask about Redmine sudo mode
What work is needed to confirm and tune sudo mode in Redmine?
The work is a short verification and configuration review, not a build. It covers confirming that sudo mode is active on your Redmine version, listing which admin and account actions prompt for re-authentication, checking how those prompts behave for each login method your users have, and recording the settings you chose so the next upgrade does not silently change them. Expect a written test script, a set of changes to make in staging, and a short list of decisions for your security owner, such as whether a prompt window is acceptable for your policy. Confirm the exact sudo mode behavior and settings against the release notes for your version before you plan the test cases.
Can our own team confirm and tune sudo mode without a partner?
Often yes, if one administrator can run the tests methodically and someone owns the decisions. The checks are mostly logged-in walkthroughs: try a sensitive admin or account action, confirm the re-authentication prompt appears, confirm it does not appear for ordinary tasks, and repeat for each sign-in path. The harder parts are edge cases: accounts that sign in through LDAP, users with two-factor authentication, API clients, and installed plugins that add their own admin pages. A partner is most useful when those paths are numerous or when the results must be written up as evidence for an assessor. Confirm with your own administrators whether they have time to test in staging before production.
How long does sudo mode testing take with many LDAP, 2FA accounts and plugins?
Duration depends mainly on how many distinct login paths and extra admin screens you must test, because each combination needs its own check. A Redmine with local passwords only and no plugins is the simplest case. Adding LDAP-backed accounts, accounts with two-factor authentication enabled, and plugins that expose sensitive actions multiplies the cases, and each plugin may need its own review after a Redmine upgrade. No researched figure for testing duration is available here, so ask any provider for a written, itemized test plan with the number of cases per login path and per plugin, and agree the timeline against that plan rather than a generic estimate.
What must our team provide for sudo mode testing?
Four things make the work efficient. First, a staging copy of your Redmine with a database and configuration close to production, so test results match real behavior. Second, test accounts for each case: a local administrator, a non-administrator, an LDAP-backed user, and a user with two-factor authentication enabled if you use it. Third, an administrator who is available during testing and who can approve settings changes. Fourth, a list of installed plugins and any reverse proxy or single sign-on layer in front of Redmine, so the test scope reflects your real sign-in path. Ask any provider to confirm these inputs in the written scope before work starts.
Does sudo mode alone meet a hardening requirement?
No. Sudo mode is one control that asks for re-authentication before sensitive administrative and account actions, which helps limit damage from an unattended session or a stolen session cookie. It does not replace strong authentication, password policy, session lifetime limits, access control on projects, patching or logging. A hardening requirement usually needs several of these working together and documented. Treat sudo mode as one item in a checklist, and confirm with your security or compliance owner which control identifiers and evidence your requirement expects before deciding it is covered.
What drives the cost of sudo mode work up or down?
Cost follows the scope of verification, and most of it is paid as labor. The main drivers are the number of login methods to test, the number of installed plugins that add sensitive admin pages, whether a staging environment already exists or must be built, and whether the output must be a written evidence pack rather than a list of settings. Recurring cost appears after each Redmine upgrade, because release changes can require the tests to be repeated. Ask for a quote that separates one-time verification from any retest work, and that states which test cases, environments and deliverables are included. Redmine itself carries no license fee under GPL v2, so the quote covers people and time only.
How do two-factor authentication and LDAP change sudo mode prompts?
Each sign-in path can behave differently, so test them separately instead of assuming one result applies to all users. Accounts that authenticate locally, accounts that authenticate against an LDAP directory, and accounts with two-factor authentication may reach the re-authentication step through different screens or require different credentials. An LDAP-backed user may not be able to set a local password, so confirm what the re-authentication prompt asks for in that case. Document the result for each path, and confirm the exact behavior with the settings in your Redmine version before you write the expected results.
How DeployOpen works on this
DeployOpen plans and builds Redmine sudo mode as part of a self-hosted Redmine deployment inside your own infrastructure. Each step is scoped in writing, tested against your identity setup, and handed over with documentation your administrators can maintain.
How we scope
- Confirm your Redmine version and which administrator and account actions must require re-authentication
- Map how 2FA, LDAP-backed accounts and API clients currently sign in before changing any setting
- List the upgrade and settings review steps that apply to your current Redmine release
- Agree deliverables, timelines and responsibilities in writing before work starts, as engagements are fixed-scope
How we build
- Review sudo mode configuration on a staging copy of your Redmine that matches production
- Test re-authentication for administrators, standard users and LDAP accounts, including password prompts and 2FA codes
- Check that scripted API clients and automation keep working as intended after the change
- Record each configuration key and its chosen value so changes can be reproduced and reviewed
How we hand over
- Deliver a written configuration record covering sudo mode settings, related 2FA and session decisions and their owners
- Document the test cases used, with expected results your team can rerun after future upgrades
- Walk administrators through the procedure for handling lockouts and for reviewing sudo mode after patching
- Provide a checklist for confirming sudo mode behavior whenever Redmine or its plugins are upgraded
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep working on the setup
- Retest sudo mode behavior after Redmine security releases and plugin updates within the agreed scope
- Confirm with your identity team that any future SSO or LDAP change keeps the re-authentication controls intact

