Understanding Secret Key

It’s not really clear to me what a secret key is - or should be. Do I set any string value to SECRET_KEY in .env and that’s it? Or it was defined alongside cluster setup?

Can’t find documentation or tutorial explaining about this SECRET_KEY.

Hey @Fabio_83782

Yep, The secret key is just a random string of characters that you would add in the .env file


To generate a random string of 33 characters you can try the follow command

openssl rand --base64 33

You can change the length of the string by adjusting the last value of the command.

Hope this helps.


Hi! Thanks for the response!

It helped.