Skip to content

Conversation

YuriiMotov
Copy link
Member

In docs we instruct users to use python -c "import secrets; print(secrets.token_urlsafe(32))" to generate secrets for all parameters that have default changethis value (source).

Since token_urlsafe uses Base64 encoding, the length of generated token is actually not always less than 40 characters (it's 32*1.3=41.6 in average, see docs).
This leads to app failure on start due to violating the constraint of first user password (currently limited by 40, there is a PR #1447 to increase the limit).

I updated the code example to generate secret value in docs and in copier.yml (for the sake of consistency).

Alternatively (IMO, even better) we can just merge #1447

@YuriiMotov YuriiMotov added the docs label Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant