You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(install): Secure your Leantime server, a security checklist for self-hosted installs - #110
A new page, Secure your Leantime server (installation/security-checklist.md, self-hosted only): a checklist to go through once Leantime is installed. Checked against Leantime 3.15.3.
What the page covers
It opens with an 11-item checklist. Each item links to a short section:
Your own LEAN_SESSION_PASSWORD
Replace the sample database passwords
HTTPS
Only public/ reachable from the web
Debug mode off
How long sign-ins last
Two-factor for Administrators and Owners
People and API keys
Plugins
Updates
Backups that include config/.env
It ends with what Leantime sends to the internet (telemetry and news) and how to report a security issue.
Checked on 3.15.3
LEAN_SESSION_PASSWORD:
It is Leantime's secret key: the encrypter, the iCal link hash and the cache key all use it.
The CalDAV plugin encrypts saved passwords with it.
So the page says what changing it on a server in use does: iCal links change, and CalDAV calendars need to be connected again.
LEAN_SESSION_EXPIRATION: Leantime reads it in minutes, and has since at least 3.4. The Docker sample.env's 28800 keeps people signed in for 20 days; the session cookie on a test container confirmed it.
Docker image:
It runs as www-data.
start.sh reads *_FILE secrets.
The official docker-compose.yml doesn't publish the database port.
Install and sign-in:
/install redirects once Leantime is installed.
Core has no public sign-up page.
No setting can make two-factor mandatory.
Other pages
configuration.md: the session timeout was documented in seconds. It's in minutes, so the example is now 480. The section links to the new page.
development/security.md:
"currently 3.14.x" → 3.15.x;
the short tips list now points to the new page.
docker.md:
LEAN_SESSION_PASSWORD is described as Leantime's secret key;
a link to the new page after installing.
package-installation.md: the Apache and Nginx steps now set LEAN_SESSION_PASSWORD (they never mentioned it), and end with a link to the new page.
_sidebar.md: "Secure your server" under Configuration.
The Starlight branch (#63) gets the page's metadata and a menu entry after Configuration (465eb86).
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The security checklist contains incomplete proxy-trust, filesystem-permission, and secret-backup guidance that can cause outages, block maintenance, or make encrypted CalDAV credentials unreadable after restore.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The security checklist needs clarification because truncating the secret to 32 characters preserves encryption but changes existing iCal links, which depend on the full sessionPassword.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Clarify that the full secret is needed to preserve existing iCal links
installation/security-checklist.md:35
Only the encryption key is truncated to 32 characters. In 3.15.3, Calendar::getICalUrl() hashes the entire sessionPassword, so shortening the generated value to 32 characters preserves encryption but changes existing iCal links. Please qualify this statement so readers don't treat the remaining characters as disposable when saving or restoring their secret.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new page, Secure your Leantime server (
installation/security-checklist.md, self-hosted only): a checklist to go through once Leantime is installed. Checked against Leantime 3.15.3.What the page covers
It opens with an 11-item checklist. Each item links to a short section:
LEAN_SESSION_PASSWORDpublic/reachable from the webconfig/.envIt ends with what Leantime sends to the internet (telemetry and news) and how to report a security issue.
Checked on 3.15.3
LEAN_SESSION_PASSWORD:LEAN_SESSION_EXPIRATION: Leantime reads it in minutes, and has since at least 3.4. The Dockersample.env's28800keeps people signed in for 20 days; the session cookie on a test container confirmed it.www-data.start.shreads*_FILEsecrets.docker-compose.ymldoesn't publish the database port./installredirects once Leantime is installed.Other pages
480. The section links to the new page.LEAN_SESSION_PASSWORDis described as Leantime's secret key;LEAN_SESSION_PASSWORD(they never mentioned it), and end with a link to the new page.The Starlight branch (#63) gets the page's metadata and a menu entry after Configuration (465eb86).
Checks
On the #63 build:
check:seoandcheck:headingspass;🤖 Generated with Claude Code
https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi