Commit graph

4 commits

Author SHA1 Message Date
Mayra Cabrera
bcd813c095 Limit user information to RackAttack throttles
rack.attack.match_discriminator is only return on
throttle_authenticated_api or throttle_authenticated_web requests, so
we're avoiding logging user_id on blacklist requests

Follow up of https://gitlab.com/gitlab-org/gitlab-ce/issues/62756
2019-07-09 03:58:49 +00:00
Mayra Cabrera
fc85b07a27 Include user id and username in auth log
Fetches user based on the value of 'rack.attack.match_discriminator'

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62756
2019-07-02 19:48:06 +00:00
Mayra Cabrera
ed8ebc635a Changes RackAttack logger to use structured logs
Creates a new filename to register auth logs.
This change should allow SRE's queries to make better queries
through logging infrastructure.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54528
2019-05-24 00:45:02 +00:00
Brian Neel
e14bb160ac Add logging for rack attack events 2016-11-18 15:05:22 -05:00