• Alex Kalderimis's avatar
    Use Gitlab::Json to serialize sessions · 7e7cf0b8
    Alex Kalderimis authored
    This changes session serialization, shifting from the use
    of Marshal (which has security implications) to the safer use of JSON.
    
    In order to support existing active sessions in the old format, we
    lookup sessions by both the old and new keys, and fallback to the old
    parsing if the stored value is not JSON.
    
    Changelog: security
    7e7cf0b8
active_session_spec.rb 19.5 KB