Securing Redmine REST API access

Redmine's REST API is off until an administrator enables it, and every key is a login. This page explains how to switch it on deliberately, pick the right authentication method for 2FA users and integrations, and keep keys out of logs.

On this page

Securing Redmine REST API access starts with deciding who may call the API

Securing Redmine REST API access starts with deciding who may call the API, and with which identity, before any integration is written. The REST API is off until an administrator enables it, and once it is on, every request is evaluated against the permissions of a Redmine user. That makes the account behind each script, CI job or reporting tool the main control. Enable the API deliberately, authenticate each caller with either a per-user API key or a dedicated service account, and filter and patch the parts of the API that leaked data in the 7.0.x line. Teams usually need this work when a production Redmine starts feeding reporting, time sync, issue automation or CI jobs, and when some of its users sign in with two-factor authentication or LDAP.

The core resources are the ones most integrations touch: issues, projects, users and time entries. The Redmine REST API wiki marks these as stable, and the API returns JSON or XML. Before enabling the API, list which resources each integration needs and which roles those calls will run under. A reporting job that only reads issues in two projects should not run as an administrator, and a user account that can read private issues will expose them to any script holding its key. Confirm the exact setting name and location in the Redmine REST API documentation for your version, since that page defines how the API is switched on.

The Redmine 7.0 changelog records that version 7.0.1 fixed API requests that could affect a user's session and bypass security policies, and that it filtered the key parameter from logs. If your instance runs any 7.0.x release earlier than 7.0.1, or any 6.x release with the API enabled, treat the API as an exposure to fix first: upgrade, then review web server and application logs for keys passed as URL parameters, since those keys may already be stored. Check the changelog for the fix list against your version before deciding which callers to rotate.

Which authentication method fits each caller

A user who has two-factor authentication enabled signs in to the web interface with a second factor, so the credential that proves identity to the API deserves the same care. Redmine's REST API authenticates with HTTP basic authentication or with a per-user API key, and the key belongs to one user account. For a person who already uses 2FA in the browser, the API key is the method most teams plan around, because it is issued per user and can be revoked without changing the password. Confirm in your own environment how 2FA interacts with basic authentication before relying on it, because the behavior depends on your Redmine version and settings.

  • Prefer per-user keys: Issue the key from the user's own account page so the activity is attributed to that person.
  • Treat the key as a password: Store it in a password manager or a secrets tool, never in a shared script or chat message.
  • Plan revocation: Know how a user regenerates or removes a key when a laptop is lost or a person leaves.
  • Test basic auth separately: Run a test request with a 2FA account to see whether basic authentication is accepted, and record the result.
  • Review key scope with the user: Remember that a key grants everything that user can do, so a key for a project manager carries that manager's permissions.

Before rollout, check how your 2FA policy and your API method interact in a test environment and document the outcome for your security team.

Configuration options and when each fits

This table compares the main choices for letting clients reach the Redmine REST API, from enabling the API itself to how keys are sent and which resources an account can touch. Read each row for the condition that makes it the right choice and the trade-off it brings. The main takeaway is that the transport method and the account's role permissions matter as much as the key itself.

OptionSetting or behaviorWhen it fitsTrade-off
REST API enabled in administrationAdministrator turns on the REST API in Redmine settings before any client can call itOnly when a documented integration needs API accessLeaving it on by default widens the attack surface for every account that holds a key
Per-user API keyEach user has a personal key that acts with that user's permissionsScripts or integrations tied to one named person or a dedicated service accountA key is a standing credential; rotation and revocation depend on your process
HTTP basic authenticationClient sends username and password on each requestClients that cannot send custom headers and have no 2FA on the accountBasic auth with a 2FA user generally fails, so 2FA accounts need a key instead
Key sent in headerKey passed in the X-Redmine-API-Key headerDefault choice for most clients and proxiesKeys can still appear in client-side tooling or shell history if written into commands
Key sent as URL parameterKey passed as a query parameter in the request URLQuick testing or clients with no header supportKeys in URLs can be recorded in web server, proxy and application logs
JSON formatRequests and responses use JSON, selected by the URL extensionNew integrations and most modern toolingConfirm field coverage for each resource you call before standardizing on it
XML formatRequests and responses use XMLExisting clients that already parse XMLLess common in new code; plan migration if the client can change
Role permissions on the calling accountAPI calls respect the account's role and project membershipsNarrow service accounts limited to the projects and actions the integration needsA broad admin or member account exposes everything it can see, so review roles before issuing a key

How to enable and lock down API access step by step

This sequence turns the Redmine REST API on deliberately, gives it a single least-privilege service account, and confirms with tests and log checks that the key is refused when missing, stays inside its scope and stays out of logs.

  1. Confirm the installed version is on a supported line

    Before touching the API, check the running version under Administration and confirm it is 7.0.2 or 6.1.5 or later. Redmine 7.0.x receives new features, bug fixes and security updates, while 6.1.x receives only bug fixes and security updates, so 7.0.x is the line to target for the longest support. The Redmine 7.0 changelog lists a fix to API requests that could affect a user's session and bypass security policies, which is one reason to avoid running an older build with the API exposed. Done when the version is recorded in your change ticket and any older instance is queued for upgrade.

  2. Enable the REST API as an administrator

    An administrator signs in and opens Administration, then Settings, then API, and turns on the REST API option. Leave it off on instances that do not need programmatic access, because the API is disabled by default and every enabled interface is a surface to review. Record who made the change and when, since enabling the API is a control decision that auditors and your own security team may ask about. Done when a test request with a valid key returns data and the setting change appears in your change record.

  3. Create a dedicated service account with minimal roles

    Create a named user for each integration rather than reusing a person's account, and give it no administrator flag. Add it only to the projects it must read or write, and assign a role that grants only the permissions those tasks require, such as viewing issues or adding time entries. Confirm the account is not a member of projects it does not need, and that its role lacks permissions like managing users or project settings. Done when a list of the account's memberships and role permissions has been reviewed by a second person.

  4. Generate the key and store it outside the codebase

    Sign in as the service account, open its My account page, and reveal or generate the API access key. Store the key in your secrets manager or the integration's protected configuration, never in source control, container images, CI logs or shared wiki pages. Note who holds the key and which system uses it so that rotation is possible later. Done when the key exists only in the approved secret store and the integration reads it from there at runtime.

  5. Send requests with the X-Redmine-API-Key header

    Configure the client to send the key in the X-Redmine-API-Key header, which keeps it out of URLs and therefore out of most access logs. The alternatives are a key passed as a query parameter or HTTP basic authentication, and the header method is the one to standardize on. Make a read request for issues in a project the account belongs to, using the JSON format, and confirm the response contains only that project's data. Done when the integration retrieves the expected records and no key value appears in the request URL.

  6. Verify refusal without a key and scope limits

    Send the same request without any key and confirm Redmine refuses it, because anonymous access to the API should not return private data. Then request an issue or project the service account is not a member of and confirm the response is denied or empty. Repeat these checks after any role or membership change. Done when both negative tests produce the expected refusal and the results are saved as evidence for your security review.

  7. Confirm the key parameter is filtered from logs

    Trigger an API call that passes the key, then search the production web server and Redmine application logs for the key value. The Redmine 7.0.1 release filtered the key parameter from logs, so confirm this behavior on your version and check that any reverse proxy or load balancer in front of Redmine does not log request headers or full query strings. If the key appears in any log, restrict access to that log and rotate the key. Done when a search of current logs returns no key value.

  8. Review the service account after each upgrade

    After every Redmine upgrade, repeat the membership and role review, confirm the API setting is still what you intended, and rerun the negative tests and log search. Check the upgrade notes for any change to API or authentication behavior, and confirm with the vendor or your own test environment before assuming a plugin still behaves the same. Rotate keys on a schedule your policy sets, and disable the account when the integration is retired. Done when the review record for the new version is signed off and the next review date is assigned.

How an API request passes through Redmine's authentication and logging

The request starts at the API client and crosses the internet-facing reverse proxy before reaching Redmine, which is where the trust boundary sits. Redmine first authenticates the caller with an API key or HTTP basic authentication, then checks the user's role-based permissions before it returns a response. The key parameter is filtered out of the request log, so check that your proxy access log filters it as well, because the proxy logs requests before Redmine does.

Request path through the proxy, Redmine authentication, permission checks and log filtering.

Service accounts, OAuth2 apps and key handling risks

A Redmine API key carries the full access of the user who owns it, so the risks sit in who holds the key, where it is stored and how long it lives. The cards below cover the common failure patterns and the control for each, and they connect to the API settings and 2FA decisions earlier on this page.

Shared personal keys in scripts

A script that runs under a staff member's personal API key acts with that person's permissions, and the audit trail shows that person's name. When the employee leaves or changes role, the script breaks or keeps working with rights nobody reviewed. Check which keys your automations use, and map each one to a named owner. Move scripts to dedicated service accounts with a documented purpose and an owner who approves changes.

REST API docs

Over-privileged service accounts

Teams often create one integration account and give it administrator rights because that is the fastest way to make a sync work. A single leaked key then exposes user management and every project. Give each integration its own account, assign it only the project and role access the task needs, and confirm the administrator flag is off. Review these accounts on the same schedule as staff accounts.

Keys committed to repositories or CI logs

Keys pasted into scripts, configuration files or CI variables end up in Git history, build output and pipeline logs, which often have wider read access than the Redmine server. Search repositories and recent CI logs for key-shaped strings, store keys in your secrets manager or CI secret store, and mask them in job output. Treat any key found in history as exposed and rotate it.

Keys in URLs captured by proxies

Redmine accepts the API key as a request parameter as well as the X-Redmine-API-Key header. A key in a query string can be written to reverse proxy access logs, load balancer logs, browser history and monitoring tools. Send the key in the header from every client, and confirm your proxy and application logs filter the key parameter. Redmine 7.0.1 added filtering of that parameter from its own logs.

Redmine 7.0 changelog

OAuth2 apps as an alternative to long-lived keys

Redmine 6.1 introduced OAuth2 authorization for API applications, so a client can obtain scoped, expiring tokens instead of storing a permanent key. This suits applications that act for many users. Before adopting it, confirm your target version supports the flow you need, register each app with its own client, and decide how users approve access. Keys remain simpler for single internal scripts.

Key rotation after staff changes

A key that never changes keeps working after its owner leaves, and a key given to a contractor may never be revoked. Keep an inventory listing each key, its owner, its account and the systems that hold it. When staff change roles or leave, rotate the keys they owned and update the affected clients in the same change. Ask your team to confirm who can reset another user's key and how that action is logged.

What the 7.0.x API fixes change for existing deployments

Redmine 7.0.1 fixed two API problems that matter for any deployment that already exposes the REST API. The first was that certain API requests could affect a user's session and bypass security policies. The second was that the key parameter was not filtered from logs, so an API key sent as a query parameter could be written to log files in plain text. Both fixes are described in the Redmine 7.0 changelog, which is the document to read for the exact scope of each change before you plan the upgrade. Treat the upgrade to the 7.0.x line as the first step, not the last, because the fix only protects requests made after the new code is running.

Once you are on 7.0.x, review the log files written before the fix for any API key that may have been recorded. Search for the key parameter in web server and application logs, including rotated and compressed files, and check any log shipper or central log store that may have copied them. Plan to rotate every key that appears there, and to rotate keys for accounts that used the API from scripts or integrations that may have sent the key as a parameter. Note that log retention and access to the log store are outside Redmine itself, so your operations team should confirm where those copies exist and who can read them.

Retest every integration after the upgrade, not only Redmine's web interface. Confirm that each service account still authenticates, that it can read and write only the resources its role allows, and that its requests complete without errors. Update any integration that passes the key in a query string to use the X-Redmine-API-Key header instead, since the header is the safer choice for logs and proxies. Record the results and the tested Redmine version so that the next upgrade has a baseline to compare against.

Security and operational controls to review

The REST API gives any holder of a valid key the same reach as the account behind it, so its safety depends on controls outside the application as much as inside it. The cards below cover transport, logging, account scope, key handling, monitoring and patching, and each one names something you can check on your own instance.

TLS on every API endpoint

Serve the API only over HTTPS, including the /issues.json style paths and any internal callers that reach Redmine through a reverse proxy. Confirm that plain HTTP redirects or refuses rather than accepting requests, because API keys sent as a parameter or header are readable by anyone on an unencrypted path. Check the certificate chain and TLS versions from a client outside your network, and check that the proxy forwards the original scheme so Redmine generates correct links.

Rate and access logging at the proxy

Redmine's own logs record requests but are not designed as an access audit trail, so put logging and rate limits at the reverse proxy in front of Puma. Record the path, method, status, client address and user agent for API requests, and confirm the key value is not written to those logs. Test the limit with a scripted client against a non-production copy to see what a sustained burst looks like in your logs before you rely on it.

Least-privilege roles for the API account

An API key carries the permissions of the user it belongs to, so a shared integration account with broad project membership exposes every project it can see. Create a dedicated service user, add it only to the projects the integration needs, and give it a role that allows only the actions required, such as reading issues or adding time entries. Review the role's permissions after every Redmine upgrade, since new modules can add permissions to existing roles.

Key lifecycle and revocation

Each user's API key can be reset from their account page, and administrators should know who holds keys that are still in use. Record which integration uses each key, set a rotation date, and document the revocation step in your offboarding checklist. Test revocation once: confirm that a request with the old key fails and that the integration reports the error clearly, so a rotated key is not left working in a forgotten script.

Monitoring for unusual API use

Watch for API calls that do not match an integration's normal pattern, such as a service account reading many projects it never touched, requests at unusual hours, or repeated authentication failures. Send proxy logs to your central log platform and define alerts on volume per key and failed-request rates. Agree in advance who reviews the alerts and how a suspected leaked key is revoked, because an alert without an owner gives no protection.

Patch tracking for the Redmine line in use

Confirm which Redmine line you run and whether it still receives security fixes, since the 7.0 fix for API requests that could affect sessions and bypass security policies is only in releases after the affected version. Subscribe to the Redmine security advisories, note the patch level of each instance, and schedule updates for the line you are on. Check plugin compatibility with the target release before applying a security update, because a plugin that blocks the upgrade delays the fix.

Redmine 7.0 changelog

Questions teams ask before securing the Redmine API

What drives the cost of securing the Redmine REST API?

The cost depends on how much of Redmine's API surface your organization actually uses and how many systems call it. The main drivers are the number of integrations that authenticate with API keys or basic auth, the number of service accounts that need permissions set and documented, the count and type of installed plugins (each one may expose its own API routes), and how logs are collected and retained, since the key parameter has to be checked in every log stack that receives Redmine output. Redmine itself is free under GPL v2, so the spend is on implementation work, testing and any retainer for ongoing upgrades. Ask any provider for a quote that lists each of these drivers separately, and confirm which items are one-time and which recur.

How long does an API hardening pass take?

The duration depends on the environment rather than a fixed number of days. A single Redmine instance with a few integrations and no custom plugins is less work than a deployment with many API consumers, OAuth2 applications, reverse proxies and centralized log pipelines. Time also depends on how quickly your team can review service account roles, reproduce integration calls on a test instance and approve changes. Because the Redmine 7.0 line fixed API requests that could affect a user's session and bypass security policies in 7.0.1 (Redmine 7.0 changelog), first confirm which patch level you run, since that determines whether a version change is part of the work. Request a written timeline tied to a named list of systems in scope.

What does the work need from our team?

The work needs three things from your side: named owners, a test instance and access to logs. Named owners include someone who can approve changes to Redmine roles and service accounts, someone who owns each integration that calls the API, and someone who can confirm how upstream tools send credentials. A test instance that matches your production version and plugin set lets you verify that integrations still work after the key or authentication method changes. Log access is needed to confirm that the key parameter is filtered from request logs and that no other system captures it. Ask your provider to list these roles and dependencies in writing before work starts.

Can an internal team secure the Redmine API without outside help?

Yes, an internal team can do this alone if it has engineers who can read the Redmine REST API documentation, administer Redmine and run a test plan. The official REST API page describes how the API is enabled by an administrator, how basic authentication and per-user API keys work, and which resources are marked stable. Your team should build a test plan that covers each integration, checks that two-factor users can still reach the API through the supported method, confirms that service accounts have only the roles they need and verifies that logs do not expose keys. The main risk for an internal team is time: security reviews often slip when the same engineers also run production operations. Outside help usually adds value in independent testing and in documenting decisions for audits.

How does DeployOpen scope an API security engagement?

DeployOpen agrees the scope, deliverables and timeline in writing before work starts, so the engagement is fixed-scope in most cases. Scoping starts with an inventory of the Redmine version, enabled plugins, API consumers, service accounts, OAuth2 applications and logging path. From that inventory, the written scope lists the systems to change or test, the evidence to produce and the retest step after fixes. DeployOpen implements and hardens self-hosted platforms in your own infrastructure, so the scope covers the environment you control. A quote follows from the written scope, and DeployOpen does not publish a price list. Ongoing upgrades and continuous testing can be added as a retainer if your team wants them.

Which Redmine version should we run before we secure the API?

Run a version that still receives security fixes, and plan to be on Redmine 7.0.x, which is the fully supported line with new features, bug fixes and security updates. The download page lists 7.0.2 and 6.1.5, both dated October 1, 2026, and 6.0.11, dated August 26, 2026. Redmine 6.1.x gets only bug fixes and security updates, 6.0.x gets only important security updates, and 5.1.x and older are unsupported. Confirm your current patch level against the Redmine download page before scoping, because an unsupported release may need an upgrade before any API hardening makes sense.

What should engineers check first in the API configuration?

Engineers should first confirm whether the REST API is enabled and whether it is needed at all, since an administrator must switch it on. Next, list every credential in use, separating per-user API keys from basic authentication, and identify which accounts have two-factor authentication enabled, because those users generally need API keys rather than passwords. Then check the service accounts: each should have a role limited to the resources its integration uses. Finally, verify that the key parameter is filtered from logs in your reverse proxy and application logs, and that keys sent in the X-Redmine-API-Key header are not written anywhere else. Document each finding so the change can be reviewed later.

Does securing the API affect our existing integrations?

It can, so plan for testing before any change reaches production. Changing an authentication method or rotating keys will break any integration still using the old credential, and users who enabled two-factor authentication may lose API access if they use a password where a key is required. Build an inventory of each consumer, test every call pattern on the test instance, and schedule the cutover with the owners of each integration. Keep the old credential in place until the new one has been verified, and record the rollback step for each system.

Official sources for API access in Redmine

Start with the Redmine REST API wiki before you enable anything. It is the authoritative reference for how an administrator turns the API on, which resources are marked stable, and how clients authenticate with HTTP basic authentication or a per-user API key sent either as a parameter or in the X-Redmine-API-Key header. Read the authentication section with your 2FA policy in front of you, because the method a client uses determines whether two-factor authentication applies to its requests. Confirm the current wording on the wiki page for your target release rather than relying on older blog posts or forum answers, since the API behavior you test against should match the version you actually run. The Redmine REST API wiki is the natural first read for this decision.

The security fix for API access is documented in the Redmine 7.0 changelog. Redmine 7.0.1 fixed API requests that could affect a user's session and bypass security policies, and it filtered the key parameter from logs. Those two items matter directly to your plan: the first means a deployment on an earlier 7.0 patch level should be reviewed for exposure, and the second means log files written before the upgrade may still contain API keys that need handling under your retention rules. Check the changelog entry against the release you run, and treat the fix as a reason to confirm your patch level rather than a reason to assume you are protected. The Redmine 7.0 changelog lists the change in context with the other 7.0 releases.

Use these two sources together as your baseline. Write down the API settings you intend to keep, the authentication method each client will use, and the patch level you verified against the changelog, then ask your implementation partner or internal team to confirm each item against the running instance. Where the wiki and your environment disagree, trust your tested behavior and raise the gap with the Redmine project before rollout.

How DeployOpen secures Redmine API access

The sequence below takes the REST API from an unknown set of callers to a documented, filtered and retested configuration. The output is an inventory of who calls the API, a role and key audit, verified proxy and log behavior, fixes applied in your environment and evidence that the fixes hold.

  1. Inventory every integration and caller

    DeployOpen starts by listing each system that reaches the Redmine API: scripts, CI jobs, time-tracking tools, reporting dashboards, mail-to-issue bridges, mobile clients and any OAuth2 applications. For each caller, we record the account it uses, whether that account has two-factor authentication enabled, how it authenticates (API key or HTTP basic authentication) and where the credential is stored. Your team confirms the list against its own integration records. The step is complete when every caller has an owner and a named account, and any unknown caller is flagged for review.

  2. Confirm the API setting and version

    We check whether the REST API is enabled, which administrator turned it on, and which Redmine release is running. Redmine 7.0.1 fixed API requests that could affect a user's session and bypass security policies, so the running version determines which findings apply. We record the version against the Redmine security advisories and the supported branch list. Your administrators should confirm the setting in the administration area and the deployed release. The step closes with a written baseline that states whether the API is enabled, for whom, and on which version.

  3. Audit roles, keys and service accounts

    We review the role permissions that apply to API-using accounts, the users who hold administrator flags, and the age and ownership of issued API keys. Shared or personal accounts used by scripts are separated from people's own logins where possible. Accounts that use basic authentication while their owners have two-factor authentication enabled are identified, because those callers need a different path. The output is a table of accounts, roles, key status and recommended changes, which your team approves before anything is altered.

  4. Check proxies, logs and credential exposure

    We examine the reverse proxy and application logs to confirm that the key parameter is filtered where it appears, and that API keys do not show up in access logs, error reports or shared tooling. We also test whether keys can be passed in URLs that proxies or browsers might record. The check covers the header form and the parameter form. The step is complete when we have captured sample log lines with the filtering confirmed, or with gaps listed for correction.

  5. Test API behavior against policy

    We send controlled requests to the API from test accounts with different roles and authentication methods. The tests check that role permissions apply to API calls as they do in the web interface, that sessions are not affected by API requests, and that restricted projects, private issues and disabled modules stay hidden. Results are recorded per endpoint for the core resources marked stable in the Redmine REST API documentation. Testing runs against a copy or staging instance agreed in the scope, not production data, and the output is a list of confirmed behaviors and failures.

  6. Apply agreed fixes

    We implement the changes your team approved: rotating or revoking keys, moving callers to dedicated service accounts, adjusting role permissions, correcting proxy or log settings, and upgrading Redmine where the findings depend on a fixed release. Changes are recorded in a change list with the before and after state. Upgrades follow the documented upgrade procedure, including backups of the database and uploaded files. The step closes when each agreed change is applied and the change list is signed off by your system owner.

  7. Retest and deliver the written report

    We repeat the tests from the behavior step against the changed configuration and confirm each finding is closed or documented as accepted. The deliverable is a written report with findings, evidence, fixes applied, retest results and the remaining risks your team has chosen to accept. Scope, deliverables and timelines are fixed in writing before work starts. The step is complete when the report is accepted in writing. DeployOpen does not issue audit reports or certifications; the evidence is intended for your internal reviewers and independent auditors.

  8. Plan ongoing upgrades and testing

    After the review, your team decides whether to keep the configuration under review. DeployOpen offers retainers for Redmine upgrades and continuous security testing, which are priced from the written scope of each retainer. Ask any provider to confirm which Redmine branch they will track, how they will test after security releases and how key rotation is repeated. The step closes with a documented schedule for re-reviewing API access whenever the callers, plugins or Redmine release change.

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.