authorize: log users and groups (#1303)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
bobby 2020-08-19 08:07:30 -07:00 committed by GitHub
parent 66d43b6d27
commit 45fc4ec3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -351,6 +351,8 @@ func logAuthorizeCheck(
evt = evt.Bool("allow", reply.Status == http.StatusOK)
evt = evt.Int("status", reply.Status)
evt = evt.Str("message", reply.Message)
evt = evt.Str("user", reply.UserEmail)
evt = evt.Strs("groups", reply.UserGroups)
}
// potentially sensitive, only log if debug mode