kubernetes/plugin/pkg/auth/authorizer/node
Patrick Ohly 1db11c07ff node authorizer: limit kubelet access to ResourceClaim objects
As discussed during the KEP and code review of dynamic resource allocation for
Kubernetes 1.26, to increase security kubelet should only get read access to
those ResourceClaim objects that are needed by a pod on the node.

This can be enforced easily by the node authorizer:
- the names of the objects are defined by the pod status
- there is no indirection as with volumes (pod -> pvc -> pv)

Normally the graph only gets updated when a pod is not scheduled yet.
Resource claim status changes can still happen after that, so they
also must trigger an update.
2023-07-13 08:35:12 +02:00
..
graph_populator.go node authorizer: limit kubelet access to ResourceClaim objects 2023-07-13 08:35:12 +02:00
graph_test.go remove DynamicKubeletConfig feature gate from the code 2022-09-23 23:14:19 +00:00
graph.go node authorizer: limit kubelet access to ResourceClaim objects 2023-07-13 08:35:12 +02:00
intset_test.go Switch node authorizer index to refcounts 2020-02-10 13:24:13 -05:00
intset.go Switch node authorizer index to refcounts 2020-02-10 13:24:13 -05:00
metrics.go Improve observability of node authorizer: 2020-11-10 08:40:46 +01:00
node_authorizer_test.go node authorizer: limit kubelet access to ResourceClaim objects 2023-07-13 08:35:12 +02:00
node_authorizer.go node authorizer: limit kubelet access to ResourceClaim objects 2023-07-13 08:35:12 +02:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00