Skip to content

RBAC Migration Followup #23: Investigate distinctions between different user/group kinds #16032

Closed

Description

@tiran

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?

@openshift/sig-security

Activity

  1. added this to the milestone on Aug 29, 2017
  2. liggitt commented on Aug 29, 2017

    @liggitt
    Contributor

    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

  3. enj commented on Aug 29, 2017

    @enj
    Contributor

    @liggitt @deads2k from what I gather we use this distinction in:

    1. Impersonation
    2. Role binding restriction admission

    Are you aware of any other use cases? I do not think the above two require any changes.

  4. added
    help wanted
    on Sep 1, 2017
  5. simo5 commented on Sep 6, 2017

    @simo5

    @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 ?

  6. deads2k commented on Sep 6, 2017

    @deads2k
    Contributor

    @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 ?

    I haven't yet looked at rolebindingrestrictions.

  7. enj commented on Sep 6, 2017

    @enj
    Contributor

    There is logic in pkg/authorization/admission/restrictusers/subjectchecker.go that may need to be addressed.

  8. enj commented on Sep 6, 2017

    @enj
    Contributor

    #16155 covers the impersonation bits, but we have not addressed RBR.

  9. simo5 commented on Sep 11, 2017

    @simo5

    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

  10. removed
    help wanted
    on Sep 11, 2017
  11. added a commit that references this issue on Sep 16, 2017
    61099d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions