@@ -86,7 +86,7 @@ Because ClusterRoles are cluster-scoped, you can also use them to grant access t
86
86
* cluster-scoped resources (like {{< glossary_tooltip text="nodes" term_id="node" >}})
87
87
* non-resource endpoints (like ` /healthz`)
88
88
* namespaced resources (like Pods), across all namespaces
89
-
89
+
90
90
For example : you can use a ClusterRole to allow a particular user to run
91
91
` kubectl get pods --all-namespaces`
92
92
@@ -685,7 +685,10 @@ When used in a <b>RoleBinding</b>, it gives full control over every resource in
685
685
<td>Allows admin access, intended to be granted within a namespace using a <b>RoleBinding</b>.
686
686
If used in a <b>RoleBinding</b>, allows read/write access to most resources in a namespace,
687
687
including the ability to create roles and role bindings within the namespace.
688
- This role does not allow write access to resource quota or to the namespace itself.</td>
688
+ This role does not allow write access to resource quota or to the namespace itself.
689
+ This role also does not allow write access to Endpoints in clusters created
690
+ using Kubernetes v1.22+. More information is available in the ["Write Access for
691
+ Endpoints" section](#write-access-for-endpoints).</td>
689
692
</tr>
690
693
<tr>
691
694
<td><b>edit</b></td>
@@ -695,7 +698,9 @@ This role does not allow write access to resource quota or to the namespace itse
695
698
This role does not allow viewing or modifying roles or role bindings.
696
699
However, this role allows accessing Secrets and running Pods as any ServiceAccount in
697
700
the namespace, so it can be used to gain the API access levels of any ServiceAccount in
698
- the namespace.</td>
701
+ the namespace. This role also does not allow write access to Endpoints in
702
+ clusters created using Kubernetes v1.22+. More information is available in the
703
+ ["Write Access for Endpoints" section](#write-access-for-endpoints).</td>
699
704
</tr>
700
705
<tr>
701
706
<td><b>view</b></td>
@@ -1185,6 +1190,24 @@ In order from most secure to least secure, the approaches are:
1185
1190
--group=system:serviceaccounts
1186
1191
` ` `
1187
1192
1193
+ # # Write access for Endpoints
1194
+
1195
+ Kubernetes clusters created before Kubernetes v1.22 include write access to
1196
+ Endpoints in the aggregated "edit" and "admin" roles. As a mitigation for
1197
+ [CVE-2021-25740](https://github.com/kubernetes/kubernetes/issues/103675), this
1198
+ access is not part of the aggregated roles in clusters that you create using
1199
+ Kubernetes v1.22 or later.
1200
+
1201
+ Existing clusters that have been upgraded to Kubernetes v1.22 will not be
1202
+ subject to this change. The [CVE
1203
+ announcement](https://github.com/kubernetes/kubernetes/issues/103675) includes
1204
+ guidance for restricting this access in existing clusters.
1205
+
1206
+ If you want new clusters to retain this level of access in the aggregated roles,
1207
+ you can create the following ClusterRole :
1208
+
1209
+ {{< codenew file="access/endpoints-aggregated.yaml" >}}
1210
+
1188
1211
# # Upgrading from ABAC
1189
1212
1190
1213
Clusters that originally ran older Kubernetes versions often used
0 commit comments