Add missing UID in SubjectAccessReviewSpec
WebhookAuthorizer's Authorize should send *all* the information present in the user.Info data structure. We are not sending the UID currently.
This commit is contained in:
@@ -64,6 +64,7 @@ func AuthorizationAttributesFrom(spec authorizationapi.SubjectAccessReviewSpec)
|
||||
userToCheck := &user.DefaultInfo{
|
||||
Name: spec.User,
|
||||
Groups: spec.Groups,
|
||||
UID: spec.UID,
|
||||
Extra: convertToUserInfoExtra(spec.Extra),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user