Skip to content

docs(install): Secure your Leantime server, a security checklist for self-hosted installs - #110

Merged
marcelfolaron merged 3 commits into
masterfrom
docs/security-checklist
Nov 23, 2026
Merged

marcelfolaron merged 3 commits into
masterfrom
docs/security-checklist

Conversation

@gloriafolaron

Copy link
Copy Markdown
Contributor

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:

  1. Your own LEAN_SESSION_PASSWORD
  2. Replace the sample database passwords
  3. HTTPS
  4. Only public/ reachable from the web
  5. Debug mode off
  6. How long sign-ins last
  7. Two-factor for Administrators and Owners
  8. People and API keys
  9. Plugins
  10. Updates
  11. 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).

Checks

On the #63 build:

  • all links resolve;
  • check:seo and check:headings pass;
  • security-checklist, security, configuration, docker and package-installation have no axe violations at 390 and 1280 px.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi

… self-hosted installs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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.

3 open issues
What changed in this PR

Adds a security checklist for self-hosted Leantime installations and connects it to the existing installation and configuration guides.

Changes:

  • Covers secret keys, HTTPS, access controls, updates, backups and other security settings.
  • Corrects session timeout documentation from seconds to minutes.
  • Adds secret-key setup guidance and links to the checklist.
File Description
installation/​security-checklist.md Adds the self-hosted security checklist and supporting explanations.
installation/​package-installation.md Adds secret-key setup to Apache and Nginx instructions and links the checklist.
installation/​docker.md Clarifies the secret key’s purpose and links the checklist.
installation/​configuration.md Corrects timeout units and links security guidance.
development/​security.md Updates the supported release line and points to the checklist.
_sidebar.md Adds “Secure your server” to navigation.

Review effort: Balanced

Comment thread installation/security-checklist.md Resolved
Comment thread installation/security-checklist.md Resolved
Comment thread installation/security-checklist.md Resolved
…, which folders need writing, where Docker keeps the secret key

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Low severity 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.

3 resolved since last review

Review effort: Balanced

Leantime 3.16.0 was released on 2026-11-23.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@marcelfolaron

Copy link
Copy Markdown
Contributor

Pushed a commit: the supported release line in development/security.md is now 3.16.x (3.16.0 is out).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants