appvia / krane

Kubernetes RBAC static analysis & visualisation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apiGroup is not being taken into account

kplimack opened this issue · comments

Screen Shot 2020-07-13 at 10 38 29 AM

As you can see here, `collins-operator` is purported to have "GET ALL IN ALL NAMESPACES", but if you look at the policy in question (below), you'll see that it actually has limited scope.
rules:
- apiGroups:
  - ""
  resources:
  - secrets
  verbs:
  - create
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - configmaps
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - metal3.io
  resources:
  - '*'
  verbs:
  - get
  - create
  - list

Hi @kplimack. Thanks for logging the issue above. We'll look into that.