Skip to content

[Security] Enforce session-secret length/entropy at boot; support rotation #295

Description

@mindsers

Summary

The session secret is only presence-validated at boot — no length/entropy check and no rotation support. .env.example ships a weak placeholder (change-me-with-a-real-secret-key), which a careless deployment could keep.

Remediation

  • Enforce a minimum length/entropy for the session secret at boot; refuse to start on the placeholder value in production.
  • Support a secrets array ([current, ...previous]) to enable rotation without invalidating all sessions at once.

Severity

Low / Info.


Source: internal security review (commit 0360e87, 2026-07-21).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authAuthentication, sessions, registrationseverity: lowLow / info severitystatus: needs-triageAwaiting initial reviewtype: securitySecurity vulnerability or hardening

    Type

    No type

    Projects

    Status
    Wishlist

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions