Skip to content
Snippets Groups Projects
Commit 91f6fdc4 authored by Robbie McMichael's avatar Robbie McMichael Committed by Bruno Oliveira da Silva
Browse files

Fix warning message for invalid groups

parent 0c7fe8ba
No related branches found
No related tags found
No related merge requests found
......@@ -316,7 +316,7 @@ func (r *oauthProxy) admissionMiddleware(resource *Resource) func(http.Handler)
// @step: check if we have any groups, the groups are there
if !hasAccess(resource.Groups, user.groups, false) {
r.log.Warn("access denied, invalid roles",
r.log.Warn("access denied, invalid groups",
zap.String("access", "denied"),
zap.String("email", user.email),
zap.String("resource", resource.URL),
......
......@@ -52,7 +52,8 @@ func (r *oauthProxy) getIdentity(req *http.Request) (*userContext, error) {
zap.String("id", user.id),
zap.String("name", user.name),
zap.String("email", user.email),
zap.String("roles", strings.Join(user.roles, ",")))
zap.String("roles", strings.Join(user.roles, ",")),
zap.String("groups", strings.Join(user.groups, ",")))
return user, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment