How to set OpenProject password and session rules for your organization
If your organization runs a self-hosted OpenProject with project plans, budgets and client work in it, the sign-in and session rules are among the first controls an auditor or security team will ask about. This section explains which behavior the advanced configuration docs expose, what the defaults are, and when your team should review them. The settings that matter most are whether login is required for all pages, which is on by default, and whether old sessions are dropped on logout and on login. The docs state that old sessions are dropped on logout by default but not on login, and both behaviors can be changed through environment variables. Confirm the exact variable names and their accepted values in the advanced configuration docs for the release you run before you write them into a Docker Compose file or Helm values.
The session itself is built to limit exposure. According to the personal data processing docs, the session cookie is kept on the server side, encrypted, marked secure and HttpOnly, and set to SameSite=Lax. The optional autologin cookie can keep a user signed in for up to one year, so decide whether your policy allows it at all and who may use it. Because this is a long-lived credential on a user's browser, it belongs in the same risk review as your device management rules. Check that your reverse proxy forwards HTTPS correctly so the secure flag is applied to what users actually receive.
Review these settings when you first install, after any change to your identity provider, when you add external access, and before an audit. Password rules such as minimum length, complexity, history and reuse are not covered by the sources used for this page, so confirm them against the version you run in the release notes and admin documentation, and test them on a staging instance before rollout. Ask your DeployOpen contact to include a written check of these settings in the scope, along with the two-factor remember token and cookie flags, so the configuration is recorded with the evidence your compliance team needs.
Which session and login options fit which risk
This table compares the four settings that control who must sign in and how long a session lasts. Each row gives the default, the trade-off between convenience and exposure on shared or unmanaged devices, and when to keep or change it. Confirm the exact environment variable names in the advanced configuration docs before you change anything on a live instance.
| Setting | Default and control | Trade-off | Choose it when |
|---|---|---|---|
| Login required for all pages | Enabled by default. Changed through an environment variable named in the advanced configuration docs. | Keeps project pages hidden from anyone without an account. Public or read-only pages need a deliberate exception. | Keep enabled for any instance holding client, employee or regulated project data. |
| Drop old sessions on logout | Enabled by default. Confirm the environment variable in the advanced configuration docs. | Ends the session when a user signs out, so a shared browser cannot reuse it. Little convenience cost. | Keep enabled on shared workstations, kiosks and devices you do not manage. |
| Drop old sessions on login | Disabled by default. Can be turned on through an environment variable to confirm in the docs. | Signing in ends other active sessions for that user. This helps after a suspected compromise but can interrupt people working on several devices. | Enable for privileged roles or where one active session per user is a policy requirement. |
| Autologin cookie | Optional. Keeps a user signed in for up to one year. Confirm the setting name in the docs. | Saves repeated sign-ins on trusted devices. On a shared or lost device, the user stays signed in for months unless sessions are revoked. | Allow only on managed, personally assigned devices, or leave it off for regulated data. |
| Two-factor remember token | Controlled by the two-factor settings. Confirm the default and lifetime in the advanced configuration docs. | Skips the second factor on a remembered browser for a set period. Fewer prompts, but a stolen remembered browser bypasses the second factor until the token expires. | Use on managed devices, and shorten or disable it for administrator accounts. |
Setting and verifying session behavior step by step
This sequence takes an OpenProject instance from its current login and session settings to a tested, documented configuration. Each step names who acts and the check that shows the change took effect, so the final record can serve as audit evidence.
Inventory current settings on the instance
Record the OpenProject version, the deployment method (Docker, package or Kubernetes) and the values currently in effect for login-required, logout and login session behavior, autologin and 2FA remember options. Read the environment configuration in each deployment, including any values left at defaults, and note which environments such as staging and production differ. Open an private browser window and load the start page to see whether unauthenticated users can reach content. Done when you hold a written baseline for every environment.
Agree the login and session policy
Security and IT owners decide whether login stays required for all pages, whether old sessions should also be dropped on login (by default they are dropped on logout only), whether the autologin cookie is permitted and for how long, and whether 2FA remember tokens are allowed. Record the password rules that apply to local accounts alongside these choices. Ask the person who owns each decision to name their approval in writing. Done when a signed-off policy lists each setting, its chosen value and its owner.
Set the environment variables in each deployment
The engineer responsible for the deployment sets the variables described in the OpenProject advanced configuration documentation for your release. In Docker, edit the environment block of the container definition. For packaged installs, edit the environment file used by the service. In Kubernetes, change the Helm values or the config map. Confirm the exact variable names against the documentation for your version before you apply them. Commit each change to version control so the diff is reviewable. Done when the configuration diff matches the approved policy in every environment.
Restart the instance and confirm the change loaded
Restart the application containers or services so the new values load, or roll out the changed deployment in Kubernetes. Check the application logs for configuration warnings or startup errors. Then request the start page and a protected page without signing in, and confirm the response matches the login-required setting in the policy. Done when the running instance behaves as the approved policy describes and the logs show no configuration errors.
Check session cookie flags in developer tools
Sign in, open the browser developer tools and inspect the cookies for the OpenProject host under the storage or application tab. Confirm the session cookie is marked Secure, HttpOnly and SameSite=Lax. If autologin is enabled, check that the autologin cookie expires within the period set in your policy, which can be up to one year. Repeat the check for the 2FA remember cookie if it is in use. If a reverse proxy sits in front of OpenProject, confirm the flags at the proxy as well. Done when each cookie's attributes match the documented values and you have saved screenshots.
Test logout, second sessions and autologin
Copy the session cookie from a signed-in browser, then log out and replay the copied cookie in a private window to confirm the server rejects it. Sign in from a second browser while the first session is still open, and check whether the first session survives according to your login policy. Close the browser with autologin enabled, reopen it and confirm the expected behavior, then log out and confirm the autologin cookie no longer restores access. Record the result of each test. Done when every test produces the outcome the policy requires.
Record the values as audit evidence
Keep one record per environment listing each variable, its value, the deployment it applies to, the date it changed, the approver, the commit that introduced it and the test results. Attach the cookie screenshots and the logout and login test notes. Store the record where your compliance and security reviewers can sample it during access control reviews. Schedule a repeat of the inventory and tests after each OpenProject upgrade, because upgrades can change defaults. Done when a reviewer can trace each live setting to an approved decision and a passing test.
How the settings apply in different deployments
Docker is the recommended installation method, so most teams will set these values in a Compose file or in the run command for the container. Whatever the method, the settings must reach the application process as environment variables at container start. Keep those definitions in version control with the rest of your deployment so that every change is reviewed and can be traced.
- Compose file or run command: Set variables in the
environmentsection of your Compose file or in the-eflags of your run command. Confirm the exact names and defaults for your release in the configuration docs before you write them down. - Recreate after changes: Environment variables are read when the container starts, so editing a file on the host does nothing until the container is recreated.
- Keep secrets out of committed files: Store sensitive values in an env file kept outside the repository or in your secrets manager, if your setup supports it.
- Pin the image: Pin the image to the release you tested so that a routine pull does not change the defaults you verified.
After each change, inspect the running container's environment and run a live login test, so you confirm the values the process actually uses.
The .deb and .rpm packages install OpenProject as a host service on 64-bit Linux, so settings are read from the host and applied when the service restarts. The packaged install supports Ubuntu 22.04, Debian 12, CentOS or RHEL 9.x and SUSE Linux Enterprise Server 15. Use the configuration location described for packaged installs, because a value written for the Docker method will not be read by the host service.
- Confirm the distribution: Check that your operating system appears in the supported list for your release before you plan the change.
- Find the packaged configuration: Locate where the packaged install reads its environment and configuration in the admin docs for your version, and record that path in your runbook.
- Restart the service: Changes take effect after the OpenProject service restarts. Confirm the restart completed and check the service logs for configuration errors.
- Review after package upgrades: Package updates can replace or merge configuration files. Compare your settings before and after each upgrade.
- Test the same flows: Repeat the login, logout and session checks after each restart or upgrade, since a package update can reset a value you changed by hand.
Before a change window, ask your vendor support channel or the release documentation which configuration files a package upgrade preserves.
On Kubernetes, the Helm chart is the place where environment variables are defined, and the chart turns them into pod configuration. Changes move through a rolling update rather than a simple restart on one host, so the rollout itself is part of the change. Every replica must run with the same settings, because a session can be handled by any pod behind the service.
- Chart values: Put the settings in the values file your chart reads for environment configuration, and confirm the key names in the chart documentation for your chart version.
- ConfigMap or Secret: Non-sensitive flags can live in a ConfigMap. Anything sensitive belongs in a Secret, delivered through your secret management tooling.
- Watch the rollout: Changing environment values triggers a rolling update. Confirm that every new pod is ready and that old pods have terminated.
- Consistent replicas: If pods disagree on a setting, users may see different session behavior depending on which pod answers, which is hard to diagnose.
- Ingress TLS: The ingress controller or load balancer usually terminates TLS, so check the forwarded headers described in the proxy tab.
After the rollout, run the same login and logout checks against the public address and confirm the values on several pods, not only one.
A reverse proxy or load balancer that terminates TLS means OpenProject often receives plain HTTP from the proxy. The session cookie is marked secure, so browsers return it only over HTTPS. If the application does not understand the original scheme and host, login can fail, redirects can point to the wrong address, or cookie behavior can differ from what your security review expects.
- Secure flag: Test login through the public HTTPS address and inspect the session cookie attributes in the browser developer tools. A cookie that should be secure but is not will show up there.
- Forwarded headers: Configure the proxy to pass the original scheme and host to the application, and confirm in the configuration docs which forwarded headers the application trusts for your release.
- Trusted sources: Accept forwarding headers only from your proxy's address range, so clients cannot spoof the scheme or host.
- Public host and scheme: The configured host name and scheme must match what users type, or redirects and cookie domains will break.
- Lab environments: Test environments without TLS may not receive secure cookies in browsers. Use HTTPS in the lab so your test matches production instead of weakening the flag.
Confirm the scheme and host handling with a login test through the same proxy path your users take.
Security considerations for autologin and remember-me tokens
Autologin, session retention and two-factor remember tokens all extend how long a sign-in stays valid. The cards below cover the risks each one creates on shared or lost devices and the controls and checks that keep those windows under your policy.
Autologin on shared or lost devices
The optional autologin cookie keeps a user signed in for up to one year. On a shared workstation or a phone that is lost or resold, that window is enough for someone else to reach the account. Decide whether autologin is allowed at all for your user population, and if so, document who may use it. Check the setting in your environment and test that a browser session without autologin ends as your policy expects.
Personal data docsSessions after logout and login
By default OpenProject drops old sessions on logout but not on login. A user who signs in again on a new device can leave an earlier session active elsewhere. Confirm the behavior your version applies, then decide whether logout should end all sessions for the account. Test it by signing in on two browsers and checking that each session behaves as your policy requires.
Advanced configuration docsSessions after offboarding
Password changes and account disablement only help if existing sessions stop working. Before relying on them for offboarding, test whether an active browser session survives a password reset or a lock on the account. Include API access tokens in the same review, since they are separate from browser sessions. Record the test result as part of your leaver procedure.
2FA remember tokens
Remember-me tokens for two-factor authentication let a trusted browser skip the second factor for a set period. A stolen browser profile can then pass a check that was meant to add a second factor. Agree a maximum remember period with your security team, limit it to managed devices where possible, and verify that a user who removes a device from their account loses that trust.
Relying on cookie flags and TLS
The session cookie is server-side, encrypted, secure, HttpOnly and SameSite=Lax. Those flags only protect users when every request travels over HTTPS, so the reverse proxy must enforce TLS and redirect plain HTTP. Check the response headers in a browser developer tool after each upgrade, and confirm that any load balancer or proxy does not strip the flags.
Cookie detailsLogging and review of sign-in activity
Autologin, remember-me and session changes are only reviewable if sign-ins are logged somewhere your team reads. Decide which events go to your central log system, who reviews failed and unusual sign-ins, and how long records are kept. Run a periodic sample: pick a few accounts, confirm their sign-in records match what the users report, and note the gaps for follow-up.
What password rules OpenProject enforces and what to confirm
This section covers the account and session settings that the researched material documents for OpenProject: whether login is required for all pages, how sessions end on logout and login, and the autologin and 2FA remember behavior described elsewhere on this page. Password complexity, minimum length and password history rules are a different matter. Do not assume a value for any of them. Open the administration settings for your running version, check the authentication section, and confirm the rules against the OpenProject documentation for that release. Record the exact values you find in your hardening baseline, with the version number next to them, so an upgrade can be checked against a known state.
The stronger option for many organizations is to move password policy out of OpenProject altogether. When sign-in goes through an identity provider, such as the methods described in the OpenProject SSO and authentication topic, the provider enforces length, complexity, lockout and rotation rules, and OpenProject receives the authenticated identity. The team then checks something different: that local password login is disabled or restricted where the provider should be the only route, that break-glass administrator accounts have their own controlled credentials, and that deprovisioned users cannot sign in through a cached local password. Confirm with your identity team which rules the provider enforces and whether any OpenProject accounts still bypass it.
Whichever model you choose, write down the owner of each rule. A short table in your configuration record, listing the setting, the layer that enforces it (OpenProject, identity provider or both), the version checked and the date of the last review, is usually enough to answer an assessor's questions and to catch drift after an upgrade. Ask your vendor or implementation partner to walk through each setting on your own instance rather than relying on a general policy statement.
Limits to confirm in your environment before you change sessions
The session and password settings interact with your release, your identity provider, your API clients and your reverse proxy. Each card below is a point to confirm in your own environment before you change a value in production.
Settings for your exact release
Confirm that the environment variables you plan to use exist and behave as described in the advanced configuration docs for the release you run. Check the release notes for your version before copying settings from older guides or forum posts, because option names and defaults can change between minor releases. Test the change on a staging instance built from the same version and record the version you tested.
Advanced configuration docsSession rules for SSO users
Confirm whether users who sign in through SAML, OIDC or another identity provider follow the same logout and session expiry behavior as local accounts. Your identity provider may keep its own session alive after OpenProject ends its session, so a user can return without re-entering credentials. Check the identity provider's session lifetime and single logout settings alongside OpenProject's.
Long-lived API tokens
Confirm how API tokens and automated clients authenticate when you change session settings. Session changes affect browser sessions, but scripts, integrations and CI jobs may use tokens with their own validity rules. List every API consumer, decide which tokens need rotation, and test each integration after the change.
Invalidation of existing sessions
Confirm whether changing a session or password setting ends sessions that are already open, or whether it applies only to new logins. The answer determines whether you need a planned maintenance window and how you will communicate a forced sign-in to users. Test with an account that has an open session before the change reaches production.
Proxies and cookie flags
Confirm which cookie attributes reach the browser after your reverse proxy, load balancer or WAF handles TLS. A proxy that terminates HTTPS can change how the application sees the request scheme, and a rewritten header can alter whether the secure flag is applied. Check the cookie headers in a browser developer tool on the public hostname, not on the internal address.
Evidence for your audit
Confirm what an auditor will ask to see: the configured value, the change record, and proof that the value applied in production. Keep the environment file or deployment manifest under version control, record who approved the change, and capture a test result showing the behavior after the change. Ask your compliance team which form of evidence they accept before you rely on it.
Questions buyers ask about OpenProject session and password settings
How much effort does an OpenProject session and password review take?
The effort depends mostly on how many environments you run, whether users sign in through single sign-on, and how much testing your change process requires. A single production instance with local accounts is a small review. Each extra environment (test, staging, disaster recovery) and each identity path (local login, SSO, API tokens) adds settings to check and behaviour to verify. Ask any provider for a written scope that lists the environments, the login methods and the test cases before agreeing a timeline.
Can our own team change these settings without a partner?
Yes, if your team runs the installation and has access to its configuration. The settings covered here are controlled through environment variables in the deployment, so a platform or systems team can change them and restart the service. The risk lies in testing. Change the values on a test instance first, confirm that login, logout, password changes and any SSO flow still behave as expected, then promote the change to production. Record the before and after values for your security reviewers.
What does the work need from our side?
Plan for four inputs before work starts. First, access to the deployment configuration, such as the Docker Compose file, Helm values or package environment file, depending on how OpenProject was installed. Second, a test instance that mirrors production closely enough to reproduce login behaviour. Third, a named owner for the identity provider if SSO is in use, because session length and logout behaviour often need to match it. Fourth, a security sign-off step that approves the final values and the rollback plan.
Do these settings change which features are included in Enterprise?
The session and password settings described here are configuration options of the installation, not separate Enterprise modules. However, the login methods around them are a different matter. Single sign-on through SAML, OIDC, CAS, Kerberos or Okta is listed among OpenProject's Enterprise features, as is LDAP group synchronization. Confirm the edition and plan for each login method you intend to use against the current OpenProject pricing page before you rely on it in your design.
Which settings should we review first?
Start with the settings that decide who can see content without signing in and how long a session stays valid. Confirm that login is required for all pages, since this is enabled by default, and check whether old sessions are dropped on logout, which is the default, and on login, which is not. Then review the autologin cookie, which can keep a user signed in for up to one year, and the two-factor remember tokens. Decide per user population whether these long-lived options are acceptable, and document the decision.
What does a partner add compared with an internal team?
An internal team knows your identity estate, change process and risk appetite better than any outside party. A partner adds experience across several self-hosted deployments, a structured test plan that covers login, session and cookie behaviour, and an independent review of the evidence your compliance team will ask for. The partner should not own the risk decisions. Ask for a written scope, a list of test cases, the deliverables (configuration record, test results, rollback steps) and who signs off each setting.
How do the cookie security flags affect what we need to verify?
OpenProject's session cookie is server-side and encrypted, and it is set with the secure, HttpOnly and SameSite=Lax flags. Your check should confirm these attributes in the browser after login, behind your reverse proxy and load balancer, because a proxy that rewrites headers can change what the browser receives. Also confirm that the autologin cookie carries the same protections, and that your TLS termination passes the secure attribute through unchanged.
How a sign-in and session moves through OpenProject
The flow starts with the user's browser sending credentials over HTTPS through the reverse proxy that terminates TLS. OpenProject then checks whether login is required for all pages, creates a server-side encrypted session cookie marked secure, HttpOnly and SameSite=Lax, and, only if the user opted in, issues the autologin cookie that keeps them signed in for up to one year. Check the logout path too: old sessions are dropped on logout by default but not on login, so confirm both settings in your environment.
Sign-in, session and cookie hand-offs in a self-hosted OpenProject.
Testing the policy before you roll it out
This sequence checks, on a staging instance, that the login, password, session and cookie settings behave as written before anyone in production is affected. It ends with a dated evidence pack that a security review can sample.
Build a staging instance with production settings
The platform team deploys a staging OpenProject that matches production in version, reverse proxy, HTTPS termination and hostname, then applies the chosen values for the login-required and session environment variables. Record the exact variable names, values and the OpenProject version in the change ticket. The step is done when the running instance reflects those values and a second person has checked the configuration file against the change record. Confirm the variable names and defaults in the advanced configuration documentation for your release, because a mismatch here invalidates every later test.
Confirm anonymous access is blocked
From a private browser window with no session, the tester requests the home page, a project page, a work package URL and the API root. With login required for all pages left at its default, each request should redirect to the sign-in page rather than return project content. Repeat the check with the setting changed in staging only if you intend to allow public pages, and record each outcome. The step is done when every tested URL has a documented result and any public page is one the business has approved in writing.
Test logout and session invalidation
Sign in as a test user, open a work package in one tab, then log out. Using the browser back button and a copied session cookie in a separate client, confirm that the old session no longer grants access. Because old sessions are dropped on logout by default, the copied session should fail. Then test the login behavior, which does not drop old sessions by default: sign in on a first browser, sign in again on a second, and note whether the first session survives. Record both results, since the login result is the one most teams expect to differ from the logout result.
Sign in from a second device
The tester signs in as the same account from a second browser profile or device, then checks active session behavior against the result from the previous step. Confirm that the account can hold more than one session and that a password change or logout on one device is reflected as the setting predicts. Verify the password rules at the same time by attempting a change to a value that breaks the configured rules and one that meets them. The step is done when both device results and both password attempts are written down with timestamps.
Check autologin expiry
If autologin is enabled, the tester signs in with the remember option, closes the browser and returns later to confirm the session persists. The autologin cookie can keep a user signed in for up to one year, so the test should also confirm that the expiry date set on the cookie matches the value your policy allows. Because the full one-year period cannot be observed in a normal test window, check the cookie expiry attribute directly and repeat a logout to confirm the autologin cookie is cleared. Record the observed expiry and the test date.
Inspect session and remember cookies
Using the browser developer tools or a proxy log, the tester inspects the session cookie and any 2FA remember token after sign-in. The session cookie should be server-side, encrypted, secure, HttpOnly and SameSite=Lax, as the personal data documentation describes, and the reviewer should confirm each attribute on the response headers rather than trusting the browser display. Record the cookie name, each flag and the response that set it. The step is done when every flag is confirmed on the staging host, and any mismatch is logged as a finding with an owner.
Retain the evidence pack for the security review
The security or compliance lead files one evidence pack per policy version: the change record, the exact configuration values, the OpenProject version, each test with its date, tester, steps and result, screenshots or header captures, and any findings with their fixes and retest results. Store it in a controlled location with read access for reviewers and a retention period set by your records policy. The pack is complete when a reviewer who did not run the tests can repeat each check from the written steps and reach the same results.
How DeployOpen works on this
DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own infrastructure, including OpenProject account and session settings. We agree the scope in writing before work starts, then test, document and hand over the configuration so your own team can run it.
How we scope
- Review which login, password and session settings your organization must meet and which OpenProject deployment they apply to.
- Confirm whether the instance sits behind SSO, so password rules and session lifetimes match the identity provider's own policy.
- Agree in writing which environments, OpenProject versions and cookie settings are in scope, and which decisions stay with your security team.
How we build
- Set login-required and logout session behavior through environment variables in your Docker, package or Kubernetes configuration.
- Configure the autologin cookie, 2FA remember tokens and cookie security flags, then check them in a browser against your written baseline.
- Test sign-in, failed login, logout, session expiry and autologin behavior, and record each result as evidence for your reviewers.
How we hand over
- Deliver a configuration record listing each setting, its value, its default and the reason for the chosen value.
- Provide a runbook that explains how to change these settings after upgrades and where to check them when a release changes defaults.
- Walk your administrators through the settings and the test results so your team can repeat the checks without us.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed before work begins.
- Ongoing support, upgrades and continuous testing are available as a retainer, which covers re-checking settings after OpenProject releases.
- Ask for the written scope to list which recurring tasks are covered and which remain with your own team.

