Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update documentation about SECRET_KEY in bepasty-server/src/bepasty/config.py #310

Open
IeP4nieF opened this issue Oct 27, 2023 · 1 comment
Labels

Comments

@IeP4nieF
Copy link

At the moment the documentation is:

#: server secret key needed for safe session cookies.
#: you must set a very long, very random, very secret string here,
#: otherwise bepasty will not work (and crash when trying to log in)!

What is the meaning of "very long" in this context? For a developer it might be obvious, but for a first time installation you don't know how many characters you should use. Is 32 very long or is 2^10 very long? Or even more?

Please give an example for the length of this string.

@ThomasWaldmann
Copy link
Contributor

This is the official docs for that:

https://flask.palletsprojects.com/en/2.3.x/config/#SECRET_KEY

So, rather 20-100 than 1024+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants