You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
req.get_header(RACK_ERRORS).puts("Deferring cookie for #{session_id}") if $VERBOSE
Looks like it can log the following variants of Session cookie encryptor error: <message>
wrong version
Message is invalid
invalid message
HMAC is invalid
I'm not sure they're useful to always have enabled (in production) as any user can trigger at least Session cookie encryptor error: Message is invalid by sending bogus data in the Cookie header.
The text was updated successfully, but these errors were encountered:
dentarg
changed the title
Avoid logging Session cookie encryptor error: Message is invalid by default?
Avoid logging Session cookie encryptor error: ... by default?
Jan 15, 2024
Does it makes sense to be able to silence this logging or make it opt-in?
rack-session/lib/rack/session/cookie.rb
Lines 223 to 224 in d2f080c
Maybe behind
$VERBOSE
as done here?rack-session/lib/rack/session/abstract/id.rb
Line 397 in d2f080c
Looks like it can log the following variants of
Session cookie encryptor error: <message>
wrong version
Message is invalid
invalid message
HMAC is invalid
I'm not sure they're useful to always have enabled (in production) as any user can trigger at least
Session cookie encryptor error: Message is invalid
by sending bogus data in theCookie
header.The text was updated successfully, but these errors were encountered: