Bug 1935738 - RBAC rule to create StatefulSet implicitly allows creation of PersistentVolumeClaims
Summary: RBAC rule to create StatefulSet implicitly allows creation of PersistentVolum...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-controller-manager
Version: 4.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Mike Dame
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-05 13:22 UTC by Simon Krenger
Modified: 2021-04-12 07:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-12 07:04:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 3 David Eads 2021-04-09 15:44:25 UTC
For all workload resources (and many other types of resources), the ability to create resource-type-A provides the authority to create a constrained sort of resource-type-B.  This is a feature, it is not a bug.

For instance, deployments cause the deployment controller to create replicasets which in turn cause the creation of pods.  The power to create this higher level construct allows delegated authority to create additional resources and is feature of the authorization system, not a bug in it.

This feature is why we draw boundaries around namespaces and try to avoid drawing boundaries around subsets of resources in a namespace.  There is no "owned by" concept for kubernetes resources.  This is not a bug in kubernetes or openshift.

Comment 4 Simon Krenger 2021-04-12 07:04:15 UTC
(In reply to David Eads from comment #3)
> For all workload resources (and many other types of resources), the ability
> to create resource-type-A provides the authority to create a constrained
> sort of resource-type-B.  This is a feature, it is not a bug.

As expected, thanks David for confirming this.
Will create a Solution outlining this and close this BZ with NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.