Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
1–10 of 75 posts
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#2Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#3What's not clear from the front page. Is it its own Web server? Is it a framework which uses another Web server? I think that would be useful to clarify from the start.
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#4> To encrypt private cookies, Rocket uses the 256-bit key specified in the secret_key configuration parameter. If one is not specified, Rocket automatically generates a fresh key at launch.
Seems like a pretty clever idea. Do other servers/middlewares offer a similar feature? Seems like it would complicate deployment/scaling a bit if the secret has to be sent to all the nodes. Especially if they could silently ignore it if you accidentally don't configure the key for some nodes.
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#5What's not clear from the front page. Is it its own Web server? Is it a framework which uses another Web server? I think that would be useful to clarify from the start.
It's very similar to nodejs web frameworks. If you start it you have a working webserver with your application in it.
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#6> Private Cookies # > To encrypt private cookies, Rocket uses the 256-bit key specified in the secret_key configuration parameter. If one is not specified, Rocket automatically generates a fresh key at launch. Seems like a pretty clever idea. Do other servers/middlewares offer a similar feature? Seems like it would complicate deployment/scaling a bit if the secret has to be sent to all the nodes. Especially if they c…
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#7Earlier quoted context omitted.
It's very similar to nodejs web frameworks. If you start it you have a working webserver with your application in it.
OK, that makes it clear, because for example Rails require existing Web server in contrast.
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#8Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#9> Private Cookies # > To encrypt private cookies, Rocket uses the 256-bit key specified in the secret_key configuration parameter. If one is not specified, Rocket automatically generates a fresh key at launch. Seems like a pretty clever idea. Do other servers/middlewares offer a similar feature? Seems like it would complicate deployment/scaling a bit if the secret has to be sent to all the nodes. Especially if they c…
Rails had encrypted cookies for ages
Re: Rocket, Rust Web Framework, v0.3: Fairings, TLS, Private Cookies
#10By having clear delineations between fairings, request guards, and data guards, I think you can really avoid making a lot of design mistakes. I'm going to try out Rust some more and definitely play around with this framework! The only thing that bothers me is that Rocket says it requires a nightly version of rust[0] - why is that necessary? I thought Rust was pretty stable by now.
[0] https://rocket.rs/guide/getting-started/#minimum-nightly