Skip to content

Getting InsecureSecretKey error on release build #2528

Discussion options

You must be logged in to vote

Ok I figured it out, kind off, and the problem isn't Rocket but it is docker. And it turns out it has been broken for years, it is just that v4 was happy to generate a secret key if none was provided in production (not a complaint, I agree v5 this loophole has been closed).

So we deploy our solution to our servers through docker, the docker image has default configuration files that shouldn't work in production. On the servers we have the proper configuration file for that server and when deploying the image we mount those files.

It was mounting our config file, but it wasn't mounting the rocket one. It just silently failed.

I think the cause is because mounting files isn't really support…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
15 replies
@InstinctBas
Comment options

@InstinctBas
Comment options

@SergioBenitez
Comment options

@InstinctBas
Comment options

Answer selected by InstinctBas
@SergioBenitez
Comment options

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