rbac-nginx: resourceNames cannot filter create verb
This commit is contained in:
parent
4c868cf62a
commit
4618fd2f64
2 changed files with 13 additions and 2 deletions
|
@ -53,7 +53,13 @@ permissions are granted to the Role named `nginx-ingress-role`
|
||||||
Furthermore to support leader-election, the nginx-ingress-controller needs to
|
Furthermore to support leader-election, the nginx-ingress-controller needs to
|
||||||
have access to a `configmap` using the resourceName `ingress-controller-leader-nginx`
|
have access to a `configmap` using the resourceName `ingress-controller-leader-nginx`
|
||||||
|
|
||||||
* `configmaps`: create, get, update (for resourceName `ingress-controller-leader-nginx`)
|
> Note that resourceNames can NOT be used to limit requests using the “create”
|
||||||
|
> verb because authorizers only have access to information that can be obtained
|
||||||
|
> from the request URL, method, and headers (resource names in a “create” request
|
||||||
|
> are part of the request body).
|
||||||
|
|
||||||
|
* `configmaps`: get, update (for resourceName `ingress-controller-leader-nginx`)
|
||||||
|
* `configmaps`: create
|
||||||
|
|
||||||
This resourceName is the concatenation of the `election-id` and the
|
This resourceName is the concatenation of the `election-id` and the
|
||||||
`ingress-class` as defined by the ingress-controller, which default to:
|
`ingress-class` as defined by the ingress-controller, which default to:
|
||||||
|
|
|
@ -86,9 +86,14 @@ rules:
|
||||||
# when launching the nginx-ingress-controller.
|
# when launching the nginx-ingress-controller.
|
||||||
- "ingress-controller-leader-nginx"
|
- "ingress-controller-leader-nginx"
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
|
Loading…
Reference in a new issue