Skip to content
Snippets Groups Projects
Unverified Commit a4389c99 authored by Lorenz Brun's avatar Lorenz Brun Committed by GitHub
Browse files

Don't enforce longer SECRET_KEY_BASE than Phoenix (#1441)

Phoenix only requires SECRET_KEY_BASE to be longer than 32 characters. 32 characters even with hex encoding is 128 bits of entropy which is more than enough. Some secret generation tools only generate 32 characters/128 bits by default which makes this relatively arbitrary limit annoying. Let's change it to what Phoenix requires.
parent e7593ce9
Branches
No related tags found
No related merge requests found
......@@ -28,8 +28,8 @@ case secret_key_base do
nil ->
raise "SECRET_KEY_BASE configuration option is required. See https://plausible.io/docs/self-hosting-configuration#server"
key when byte_size(key) < 64 ->
raise "SECRET_KEY_BASE must be at least 64 bytes long. See https://plausible.io/docs/self-hosting-configuration#server"
key when byte_size(key) < 32 ->
raise "SECRET_KEY_BASE must be at least 32 bytes long. See https://plausible.io/docs/self-hosting-configuration#server"
_ ->
nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment