Skip to content

Clarify Required Length of SECRET_KEY_BASE #5612

@m-mattia-m

Description

@m-mattia-m

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for self-hosted support

Using official Plausible Cloud hosting or self-hosting?

Self-hosting

Describe the bug

While setting up Plausible on my Kubernetes cluster, I configured SECRET_KEY_BASE to 32/48 bytes, as several parts of the documentation mention that it should be 32/48 bytes. However, the database migration failed, and I encountered a flood of logs related to missing tables.

After a lot of debugging, I eventually discovered that the real issue wasn’t with the database, but with the length of SECRET_KEY_BASE. Buried in the logs, I found this message:

secret_key_base to be at least 64 bytes

It would be super helpful if this requirement was clearly mentioned in the official setup guide and other relevant notes throughout the repository.

Some locations where this clarification would be great to add:

Expected behavior

The setup guide and documentation should reflect the actual requirement for SECRET_KEY_BASE to be at least 64 bytes, to help others avoid this confusion.

Thanks for your great work on Plausible – looking forward to seeing this small clarification improve the onboarding experience!

Screenshots

No response

Environment

- OS: MacOS
- Browser: Arc
- Browser Version: Version 1.106.0 (66192); Chromium Engine Version 138.0.7204.185

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions