Skip to content

APIs like DaemonSet.get(name, namespace) should not require RBAC list permission #680

@OvervCW

Description

@OvervCW

Which project are you reporting a bug for?

kr8s

What happened?

Functions like DaemonSet.get fail when accessing the API through a service account that is permitted to use the get verb but not the list verb.

Coming from the kubernetes/kubernetes-asyncio libraries I would not expect that this function call requires the list verb because it shouldn't be doing any listing.

Having to add this verb to the associated role affects security.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions