-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding documentation about Endpoints write access in wake of CVE-2021…
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: | ||
kubernetes.io/description: |- | ||
Add endpoints write permissions to the edit and admin roles. This was | ||
removed by default in 1.22 because of CVE-2021-25740. See | ||
https://issue.k8s.io/103675. This can allow writers to direct LoadBalancer | ||
or Ingress implementations to expose backend IPs that would not otherwise | ||
be accessible, and can circumvent network policies or security controls | ||
intended to prevent/isolate access to those backends. | ||
labels: | ||
rbac.authorization.k8s.io/aggregate-to-edit: "true" | ||
name: custom:aggregate-to-edit:endpoints # you can change this if you wish | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["endpoints"] | ||
verbs: ["create", "delete", "deletecollection", "patch", "update"] |