It’s super easy to forget to set those two properties, and it’s also a bit of a pain to have to implement something to generate them in each package (Docker, Debian, Snap, etc.).
So I would like to propose to handle them differently:
stop providing values for them in the generated xwiki.cfg
if they are not already set:
generate them
store them somewhere in <permdir>/ (so that people don’t “loose” their cookie when restarting the instance, which could be very annoying)
OK, thanks, I missed this one since the title of the issue did not seem that close. It’s also going a lot beyond what is discussed here, which does not really change anything to the system and just store the two values in a properties file located in the permanent directory (that could be used for other generation needs like this).