Commit graph

7 commits

Author SHA1 Message Date
GitLab Bot
cc5d0271c2 Add latest changes from gitlab-org/gitlab@master 2019-10-27 09:05:56 +00:00
GitLab Bot
4309992515 Add latest changes from gitlab-org/gitlab@master 2019-09-26 21:06:29 +00:00
Stan Hu
e632ae8084 Standardize remote_ip and path keys for auth.log and api_json.log
Current `auth.log` uses `fullpath` and `ip`, while `api_json.log` uses
`remote_ip` and `path` for the same fields. Let's standardize these
namings to make it easier for people working with the data.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66167
2019-08-20 18:12:28 +00:00
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