Forum: Ruby on Rails SECURITY WARNING: No secret option provided to Rack::Session::Cookie.

Posted by Praveen BK (praveenbk)
on 2013-02-05 07:19
I am getting following warning while generating model, how to get rid of
this warning and what is cause for this warning. I am using rails 3.2.8

   SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
   This poses a security threat. It is strongly recommended that you
   provide a secret to prevent exploits that may be possible from
crafted
   cookies. This will not be supported in future versions of Rack, and
   future versions will even invalidate your existing user cookies.

Thank you.
Posted by Frederick Cheung (Guest)
on 2013-02-05 10:45
(Received via mailing list)
On Tuesday, February 5, 2013 6:19:22 AM UTC, Ruby-Forum.com User wrote:
>
>
Normally you'd have

YourApplication::Application.config.secret_token = 'long random string'

in an initializer, which rails should then pass through to rack. You can
use rake secret to generate such a token.

Fred
Posted by Robert Walker (robert4723)
on 2013-02-07 00:53
Frederick Cheung wrote in post #1095286:
> On Tuesday, February 5, 2013 6:19:22 AM UTC, Ruby-Forum.com User wrote:
>>
>>
> Normally you'd have
>
> YourApplication::Application.config.secret_token = 'long random string'
>
> in an initializer, which rails should then pass through to rack. You can
> use rake secret to generate such a token.


I just read about this yesterday. It's an issue with the very latest 
update to the rack gem, as I understand it. The issue was patched in the 
Rails master and should make it's way into the next point release of 
Rails. According to the bug discussion this warning can be safely 
ignore, so just wait for the next Rails release and the warning should 
go away.
Posted by BalaRaju Vankala (Guest)
on 2013-02-07 13:52
(Received via mailing list)
I got the same Problem. My Rake Version 10.0.3. Thank you Mr.Robert 
Walker




On Thu, Feb 7, 2013 at 5:23 AM, Robert Walker <lists@ruby-forum.com> 
wrote:

>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


--
Posted by Jordon Bedwell (Guest)
on 2013-02-07 13:55
(Received via mailing list)
On Thu, Feb 7, 2013 at 6:51 AM, BalaRaju Vankala
<foreverbala4u@gmail.com> wrote:
> I got the same Problem. My Rake Version 10.0.3. Thank you Mr.Robert Walker

Rake is not Rack.
Posted by BalaRaju Vankala (Guest)
on 2013-02-07 14:03
(Received via mailing list)
Thank you Jordon


On Thu, Feb 7, 2013 at 6:23 PM, Jordon Bedwell <envygeeks@gmail.com> 
wrote:

> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


--
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.