You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RBAC Migration Followup #23: Investigate distinctions between different user/group kinds #16032
RBAC does not distinguish between UserKind and SystemUserKind. Both kinds are mapped to APIGroup = rbac.GroupName and Kind = rbac.UserKind. The same is true for GroupKind and SystemGroupKind. We need to confirm that the distinction between the different kinds still works as we expected. Further more, does it make sense to upstream the distinction?
We need to confirm that the distinction between the different kinds still works as we expected. Further more, does it make sense to upstream the distinction?
No, the distinction is not meaningful upstream. I would expect that distinction to be dropped when the origin rolebinding/clusterrolebinding types are dropped
@liggitt@deads2k@enj given work ongoing with the impersonation and RBR, do we need to do anything about this distinction ? Or should we just close this issue as resolved ?
@liggitt@deads2k@enj given work ongoing with the impersonation and RBR, do we need to do anything about this distinction ? Or should we just close this issue as resolved ?
So I did a more fine grained review of subjectcheker, and it looks to me the only reason why SystemUsers/Groups are handled specially is to skip checks for things those user "cannot have".
so it looks completely safe to me to just remove those special checks.
I will do so in a PR that also converts the file to use rbac.Subject types instead of the olf kapi.ObjectReference stuff
Activity
liggitt commentedon Aug 29, 2017
No, the distinction is not meaningful upstream. I would expect that distinction to be dropped when the origin rolebinding/clusterrolebinding types are dropped
enj commentedon Aug 29, 2017
@liggitt @deads2k from what I gather we use this distinction in:
Are you aware of any other use cases? I do not think the above two require any changes.
simo5 commentedon Sep 6, 2017
@liggitt @deads2k @enj given work ongoing with the impersonation and RBR, do we need to do anything about this distinction ? Or should we just close this issue as resolved ?
deads2k commentedon Sep 6, 2017
I haven't yet looked at rolebindingrestrictions.
enj commentedon Sep 6, 2017
There is logic in
pkg/authorization/admission/restrictusers/subjectchecker.gothat may need to be addressed.enj commentedon Sep 6, 2017
#16155 covers the impersonation bits, but we have not addressed RBR.
simo5 commentedon Sep 11, 2017
So I did a more fine grained review of subjectcheker, and it looks to me the only reason why SystemUsers/Groups are handled specially is to skip checks for things those user "cannot have".
so it looks completely safe to me to just remove those special checks.
I will do so in a PR that also converts the file to use rbac.Subject types instead of the olf kapi.ObjectReference stuff
Merge pull request #16286 from simo5/subjectcheck