• Bob Van Landuyt's avatar
    Don't modify env in request forgery protection · 33554c93
    Bob Van Landuyt authored
    This avoids modifying the Rack-env in request forgery protection.
    
    If we do allow the env to be modified, this would cause requests made
    to our public API by our own frontend to be incorrectly recorded in
    metrics and logs.
    
    The Gitlab::RequestForgeryProtection::Controller and it's index action
    would be recorded as the caller instead of the actual endpoint being
    called.
    33554c93
request_forgery_protection.rb 777 Bytes