Keeping a break-glass admin login when OpenProject uses SSO

Moving OpenProject to single sign-on can lock out every admin if the provider fails. This page explains how to keep a tested break-glass login using the internal login route and password login modes.

On this page

Keeping a break-glass admin login when OpenProject uses SSO starts before the switch

The point of this section is that a break-glass admin login has to exist and be tested before you move OpenProject to single sign-on, not after the first failed sign-in. Two settings in the OpenProject docs control whether that fallback survives the switch: OMNIAUTH_DIRECT_LOGIN_PROVIDER, which sends users straight to the identity provider, and the password login mode, which can be set to all, except_sso or none with bypass lists. The SAML documentation advises keeping a break-glass admin for exactly this reason, and the OpenID providers documentation warns that a misconfigured environment variable setup can break existing OpenID authentication. Treat both warnings as the reason to plan this step first.

Before you change anything, decide which admin accounts will remain able to sign in with a password, who holds their credentials, and where those credentials are stored. Confirm in your own environment that the /login/internal route is reachable from the networks your administrators use, including any VPN or proxy path, because direct provider redirection depends on it staying open. Confirm also how your version of OpenProject handles the password login mode and bypass list, since the exact keys and behavior should be checked against the advanced configuration documentation for the release you run rather than assumed from this summary.

Plan the change as a reversible step. Keep a copy of the current environment configuration, record which login path works today, and sign in through that path to confirm your break-glass account still works before you enable direct provider login. Decide in advance who can roll back the configuration and how quickly, because the failure you are protecting against is a provider outage or a typo in a provider variable, and both are easiest to recover from when the rollback is written down. Test the whole sequence on a non-production instance first.

What you need before changing sign-in

Four things have to be true before you touch sign-in settings: you know exactly which OpenProject build you run, you can reach an admin account that does not depend on SSO, you can change server configuration and restart the service, and your identity provider works when tested on its own. Each card below covers one of these, and skipping any of them is how a lockout turns into an outage.

Confirm version and install method

Record the exact OpenProject version and how it was installed. Docker is the recommended installation method, but packaged installs on Ubuntu 22.04, Debian 12, RHEL 9.x or SUSE Linux Enterprise Server 15 and Kubernetes with Helm charts also exist. The variable names, file locations and restart commands differ between these, so write the steps for your own deployment before the change window. Check the release notes for your version, since login behavior can change between releases.

Latest release in facts
17.9.2
Release notes

Keep a tested local admin login

Keep one named local administrator account with a known password that works before SSO is switched on. Log in with it once from the network path your staff use, and confirm it can open the administration area. Do not make this account a shared or generic login. Its purpose is to recover access when the identity provider is down or misconfigured, so it should be used rarely and every use should be recorded.

Assign an owner for the admin account

Name one accountable owner for the break-glass account and at least one backup. The owner decides who may use it, approves each use, and reviews whether it still exists after each change. Without a named owner, the account tends to drift: its password expires, its email address changes, or nobody remembers it exists when the next migration starts.

Store the password in a vault

Keep the break-glass password in an approved password manager or secrets vault with access restricted to the named owners and their backups. Set a rotation rule and record each rotation. Confirm that the vault itself can be reached during an outage, because a vault hosted on the same identity system you are changing defeats the purpose.

Name who can change server config

Identify the person who can edit the server environment variables and restart OpenProject during an outage, and confirm they have access now, not on the day. Write down where those settings live, whether in a Compose file, a Helm values file or a systemd environment file, and who can reverse a change. This person must be able to act without waiting for the identity team to finish their own work.

Test the identity provider separately

Confirm that the identity provider configuration works outside OpenProject before you point OpenProject at it. Use the provider's own test tools or a separate test application to check that a user can sign in, that the expected attributes come back, and that the redirect and callback addresses match. Only then switch OpenProject to the provider, so a failed sign-in shows up as a provider problem and not as an OpenProject mystery.

OpenID providers docs

How to configure a break-glass login step by step

This sequence gives you a tested local admin login that works before SSO is forced on, so a provider outage or misconfiguration does not lock every administrator out of OpenProject. Each step ends with a check you can repeat before moving on.

  1. Confirm current login and back up configuration

    Before changing anything, sign in as an administrator through the existing method and confirm that the instance loads, that project data is visible and that administrative pages open. Then take a backup of the configuration and the database, including the environment variables that hold authentication settings, so you have a known-good state to restore. Store the backup outside the OpenProject host. The step is done when you can name the file or snapshot you would restore from and have confirmed that the restore procedure is documented for your deployment.

  2. Create and test a named local admin

    Create a named local administrator account for a specific person or small group, not a shared generic account, and set a strong password stored in your approved password manager or sealed credential store. Give the account admin rights and confirm that the account is not tied to your SSO provider's user directory. Sign in with its password from the normal login page while SSO is still the only path you use, and check that the admin area opens. The step is done when that password login succeeds and the account appears in the user list with administrator rights.

  3. Set password login mode and bypass list

    In the advanced configuration, set the password login mode and, if your version supports it, list the break-glass accounts in the bypass list so they can sign in with a password even when SSO is enforced. Review the option values in the advanced configuration documentation for your release before you change them, because the mode controls whether password login is offered to everyone, to non-SSO users only, or not at all. Restart the application using your normal procedure. The step is done when a password login for the break-glass account still succeeds after the restart while SSO remains the default for everyone else.

  4. Configure and test the SSO provider without direct login

    Configure the identity provider connection as documented for your provider, such as SAML or OpenID Connect, and keep the direct login setting off at this point. Sign in through the provider's standard button with at least two test users, including one who is not an administrator, and confirm that attributes, email matching and group behavior are correct. Record the exact provider settings, client IDs and certificate or secret expiry dates in your change log. The step is done when every test user signs in through the provider and the expected account data appears in OpenProject.

  5. Enable direct login only after a successful test

    Only after the previous test passes, set OMNIAUTH_DIRECT_LOGIN_PROVIDER so that users go straight to the provider. The variable name and value must match your provider's configuration exactly. Because the OpenID providers documentation warns that a misconfigured environment variable setup can break existing OpenID authentication, make the change in a staging copy first if you have one, and keep the configuration backup from step one within reach. The step is done when a standard user is redirected to the provider and returns to OpenProject, and the change is recorded with the person who made it.

  6. Verify the internal login route in a fresh session

    Open a private browser window or a different device that has no existing session, and go to the internal login route, which remains available for password login. Sign in with the break-glass account and confirm the admin area loads. Then check that a normal user is sent to the SSO provider. Repeat the test from a second network location if your access model allows it. The step is done when the break-glass login works from a clean session and the rest of the sign-in flow behaves as planned.

  7. Rehearse a rollback and schedule re-tests

    Practice reverting the direct login setting and restoring the configuration backup in a non-production environment, so the team knows the exact steps and who can perform them. Document the break-glass credential location, who can retrieve it and the approval needed to use it. Schedule repeat checks of the internal login route after every OpenProject upgrade, provider certificate renewal or change to the authentication settings. The step is done when the rollback has been rehearsed once and the re-test schedule and owner are written into your runbook.

How the login paths separate during an SSO outage

The diagram starts at the sign-in page and splits three ways. When the direct provider variable is set, users go straight to the identity provider. The /login/internal route stays open for password login, and there the password login mode decides whether a given account may use a password. Check the bypass list for the break-glass admin before you change the mode, because an account that is missing from it can be locked out even though the route still responds.

Sign-in paths when the direct provider variable and password login modes apply.

Choosing all, except_sso or none for password login

OpenProject's password login setting decides who can still sign in with a username and password once SSO is active, and the three values, all, except_sso and none, each change that answer. With all, password login stays open for everyone, which is the simplest way to avoid lockout but leaves the SSO requirement optional in practice. With except_sso, users covered by SSO cannot use a password, while accounts named in a bypass list can. With none, password login is disabled for everyone, so the only way in is the identity provider, and a broken provider then locks out every user, including administrators. For most organizations the middle option fits the goal of enforcing SSO while keeping a controlled fallback, but the choice should be tested in a non-production instance before it reaches users.

The bypass list is the part that determines whether the fallback works. It names the accounts that may still use a password under except_sso, typically the break-glass administrator and, where needed, a small number of service accounts that cannot complete an interactive SSO flow. A list that names too few accounts causes lockout, because the only administrator who could repair the provider configuration is blocked from signing in with a password. A list that names too many accounts quietly weakens the SSO requirement, because every listed account becomes a password-only entry point outside the identity provider's controls, with its own MFA, session and deprovisioning rules. Keep the list short, record who owns each entry, and review it whenever an administrator leaves.

The exact variable names, accepted values and list format depend on the installed OpenProject version, so confirm them in the advanced configuration documentation before writing any configuration. Check how the list is specified, whether entries are matched by login name or email, and whether changes need a container restart. Then confirm the behavior with two real logins from a clean browser session: one for a listed account using a password and one for an unlisted account, which should be redirected to the provider. Repeat the check after every upgrade and every change to the identity provider, because a configuration that works today can behave differently after a release.

Which accounts and paths belong to the break-glass design

This table maps each account or path in a break-glass design to its purpose, who holds it, how it is protected and how it is tested. Read it as a checklist: every row should have a named owner and a test you can repeat after each provider or configuration change, because a path that nobody has tried since go-live is unlikely to work during an incident.

Account or pathPurposeWho holds itProtection and testing
Named break-glass adminSigns in with a local password when the identity provider is down or misconfiguredTwo or three named senior staff, documented in the runbookPassword stored in a sealed vault, MFA where the mode allows it, login tested on a schedule and after every SSO change
Individual admin accounts using SSODay-to-day administration through the provider with personal accountabilityPlatform admins who also hold provider rolesCovered by provider MFA and conditional access, reviewed with the rest of the admin population, tested at each login change
Provider-side adminChanges the OpenProject application registration, redirect URI, client secret and claimsIdentity team members with application owner rightsChanges go through change control, secret rotation is logged, and the registration is checked against the documented values after each change
/login/internal routePassword login path that stays reachable when direct SSO redirect is enabledOnly accounts allowed by the password login mode or bypass listConfirm in a private browser session that the route responds and that only intended accounts can use it; alert on unexpected successes
Password login mode and bypass listControls which accounts may use a password when SSO is in placePlatform administrators who edit the configurationKeep the list short and written down; compare the live setting with the approved value after each deployment
Server environment access for rollbackLets engineers restore the previous SSO environment variables or revert the container imageOperators with root or container host access, separate from application adminsAccess logged and limited to named operators; rehearse a rollback in a test environment before go-live and record how long it took

Protecting the break-glass login from misuse

A break-glass account bypasses the normal sign-in path, so it needs stronger controls than ordinary users, not weaker ones. The cards below cover how to store the credential, watch its use, alert on it, and reset it after an emergency, so the route stays a last resort.

Store the credential in a vault

Generate a long, unique password for the break-glass admin and store it in a vault your organization controls, with a separate sealed copy for disaster recovery. Restrict vault access to a small named group and log every retrieval. Confirm who can open the vault when the identity provider is down, because that is the moment you will need it.

Log every login to the account

Record each sign-in to the break-glass account in a place the regular OpenProject administrators cannot edit, such as a central log store. Check that the events reach that store and that someone reviews them. Confirm the exact log fields and retention with your OpenProject version and your log pipeline, because the set of events you can capture depends on your deployment.

Alert on any password login

Because the break-glass account should be used rarely, any password-based sign-in to it is a signal worth an immediate alert. Route the alert to the security on-call channel, not only to the team that administers OpenProject. Test the alert by performing a supervised login during the change window so you know it fires.

Add a second factor where supported

Where your OpenProject version and configuration support a second factor for the local account, enable it and keep the device or key in a controlled location. If a hardware-backed control is not available for this path, record that as an accepted risk and compensate with tighter vault access and alerting. Confirm the supported options against the current OpenProject documentation before you rely on them.

Restrict who can reach the route

Limit the break-glass route to named administrators and, where your network design allows, to a management network or VPN. Make sure the bypass list contains only this account and not general user groups or service accounts. Review the list after each configuration change, because a broad bypass setting turns an emergency path into everyday password login for everyone.

Reset the password after each use

Write a procedure that starts when the account is used: rotate the password, update the vault entry, record the reason and the people involved, and review the session logs. Rehearse the procedure at least once so the steps are known before an incident. Keep the reset steps in a runbook that does not depend on the SSO provider being available.

Testing provider changes before they break sign-in

Test every identity provider change on a second OpenProject instance before it reaches production. A break-glass login only helps if the settings that govern it still work after the change, and a provider change is the most common way to lose sign-in for everyone at once. Keep a staging or second instance that mirrors production's environment variables, SSO provider settings and password login mode. Copy the production configuration to it, then confirm the copy behaves the same before changing anything.

Change one provider setting at a time, such as the client secret, the redirect URI, the tenant or the OMNIAUTH_DIRECT_LOGIN_PROVIDER value, and test after each change. After each step, check three paths in order: direct login through the provider with a non-admin test user, the /login/internal route with a local admin account, and the bypass list behavior for the password login mode you have set. Use a non-admin test user for the bypass check, because an admin account can hide a gap that an ordinary user would hit. Record which result you expected and which you saw, so a failure points to one specific change.

Environment variable changes need a rollback plan written down before you start. Save the exact previous values of every variable you edit, and keep the container or package configuration under version control so you can restore the prior state in one step. The OpenID providers documentation warns that a misconfigured environment variable setup can break existing OpenID authentication, so treat any edit to those variables as a change that needs a tested reverse path. Confirm with your OpenProject release and your deployment tooling how a restart applies new values, since a change that looks saved may not take effect until the service restarts.

Before you change production, confirm that a local admin can still sign in through /login/internal on the staging instance after the change, and that the restore procedure has been run at least once. Ask your partner or internal team to name the owner who can approve a rollback at 2 a.m. The point of this check is to find out, while you still have a working door, whether your recovery steps actually work.

Why admins get locked out after enabling SSO

This table lists the failures that most often leave administrators unable to sign in after SSO is turned on, with the cause and the check or fix for each. Read it before changing login settings, and use it as a checklist when testing a provider change in a staging copy first.

FailureCauseFix or check
Direct login enabled before testingDirect login sends every user straight to the identity provider, so a broken provider leaves no visible sign-in path.Test SSO end to end in a non-production copy first, then enable direct login only after a successful sign-in and logout.
Bypass list missing the break-glass accountPassword login modes apply exceptions by account. If the emergency admin is not on the bypass list, its password form is hidden.Add the break-glass account to the bypass list, then confirm its password login works from a private browser session.
Password login mode set to noneWith no password login and SSO failing, no account can sign in through the normal page.Keep password login available for the break-glass account before setting any mode that restricts password login. Confirm the mode in the advanced configuration docs.
Misspelled or mis-scoped environment variablesA typo or a variable set for the wrong container or environment can disable an existing OpenID setup or ignore the new one.Compare variables with the documented names, restart the services, and confirm the value is present in the running container, not only in the file.
Expired or rotated client secretThe provider client secret has an expiry date or was regenerated, so token exchange fails for every user.Record the secret expiry in your calendar, store the current value in your secrets manager, and check the provider's app registration after each rotation.
Clock drift between serversToken timestamps are checked against server time. Drift on the OpenProject host or the provider can reject otherwise valid logins.Confirm time synchronization on the OpenProject host and check the error logs for timestamp rejections before blaming the configuration.
Break-glass password unknown or unusedThe emergency password was set long ago, was never recorded, or the account was never tested, so it fails when needed.Store the credential in an approved vault, rotate it on a schedule, and log in with it during each planned provider test.

Questions teams ask before changing OpenProject sign-in

Can our own team set up a break-glass admin login without a partner?

Yes, many teams do this in-house, provided someone on the team can edit the server configuration, restart the application and administer the identity provider. The work is mostly configuration and testing rather than new software. The main risk is untested changes made during a live sign-in outage, so a team that has never changed authentication settings on this instance should rehearse on a copy first. If you want an outside team to plan, build and test the change, DeployOpen works from a written scope agreed before work starts.

What makes the effort of this change go up or down?

The effort follows the shape of your environment, not a fixed package. The main drivers are:

  • The number of administrators who need a break-glass account and how they are named and stored
  • The number of identity providers or authentication methods already connected to the instance
  • Whether you have separate test and production environments with matching configuration
  • How many user groups, bypass lists and password login modes you need to set

Each additional provider or environment adds testing and review. Ask any quote to list these items separately so you can see what is included.

What access and approvals does a careful SSO change require?

A careful change needs four things: shell access to the OpenProject server or container host to edit configuration and restart services, administrator access to the identity provider to confirm the application registration and test a sign-in, a named owner who can approve the change, and an agreed change window in which users can be told about possible disruption. Keep at least one working admin session open during the window. Confirm with your security team whether the break-glass account must be stored in a vault and who may retrieve it.

How long does a careful change usually take?

The duration depends on how many providers are involved, whether a test environment exists and how many rounds of testing your change board requires. A single provider on an existing instance with a test copy is usually a short planned change, while several providers with separate environments and formal approvals take longer. Ask any partner or internal lead for a timeline tied to the written scope, the environments in use and the number of test cycles, rather than a generic figure.

Do we need a break-glass login on the Community edition?

Any OpenProject instance that relies on an external identity provider benefits from a break-glass path, because a provider outage or misconfiguration can otherwise lock every administrator out. The question is whether the instance can run a local admin login in your setup, which you should confirm against the current OpenProject documentation for your version and edition. Whatever edition you run, test the fallback before you need it.

What does the Enterprise plan add for SSO and access control?

According to OpenProject's pricing page, Enterprise on-premises includes single sign-on with SAML, OIDC, CAS, Kerberos and Okta, LDAP group synchronization and custom branding. Pricing is per named user per month: Basic at 5.95 euros and Professional at 10.95 euros with a 25-user minimum, Premium at 15.95 euros with a 100-user minimum, and Corporate on request for 250 or more users. Confirm the current terms on the pricing page before budgeting, since plan contents can change between releases.

How do we avoid lockout when testing a new provider setting?

Test on a copy of the instance first, keep the existing sign-in path working while the new one is added, and verify a direct provider login and a break-glass login before removing the old path. Record the exact configuration values before you change them so you can roll back. The OpenID providers documentation warns that a misconfigured environment variable setup can break existing OpenID authentication, so review the variables carefully and restart only after checking them.

How DeployOpen scopes and supports SSO changes for OpenProject

DeployOpen plans and implements OpenProject sign-in changes inside your own infrastructure, so a break-glass admin path is designed, tested and documented before SSO becomes the default login. The work covers the identity provider settings, the OpenProject configuration and the recovery steps your administrators will rely on if sign-in fails.

How we scope

  • Written scope lists each identity provider, the login modes to be set and the admin accounts kept for break-glass access.
  • Scope names who holds break-glass credentials, where they are stored and how their use is logged and reviewed.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any configuration changes begin.

How we build

  • Direct provider login and the internal login route are configured and tested in a non-production instance first.
  • Password login modes and bypass lists are set to match the approved break-glass accounts and no broader.
  • Provider changes are tested against a rollback plan so a misconfigured environment variable does not block existing sign-in.

How we hand over

  • Runbook covers the internal login route, the bypass list, credential custody and the exact steps for recovering access.
  • Test records show each break-glass login succeeding and each standard user path routing through the provider.
  • Administrators walk through the runbook with your team so the recovery steps are known before an incident.

How we support

  • Ongoing support and upgrades are available as a retainer, including retesting after provider or OpenProject changes.
  • Retesting of sign-in paths can be repeated whenever the identity provider certificate, client secret or domain changes.
  • Ask for the support scope, response arrangements and retest terms in writing as part of your quote.

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.