Add a small note about auto-bootstrapped CSR ClusterRoles (#5660)

This commit is contained in:
Lucas Käldström
2017-09-28 23:07:44 +03:00
committed by Steve Perry
parent 1b06ec8e27
commit 53bd0588bd
+8
View File
@@ -130,6 +130,14 @@ rules:
verbs: ["create"]
```
As of 1.8, equivalent roles to the ones listed above are automatically created as part of the default RBAC roles.
For 1.8 clusters admins are recommended to bind tokens to the following roles instead of creating their own:
* `system:certificates.k8s.io:certificatesigningrequests:io:certificatesigningrequests:nodeclient`
- Automatically approve CSRs for client certs bound to this role.
* `system:certificates.k8s.io:certificatesigningrequests:io:certificatesigningrequests:selfnodeclient`
- Automatically approve CSRs when a client bound to its role renews its own certificate.
These powers can be granted to credentials, such as bootstrapping tokens. For example, to replicate the behavior
provided by the removed auto-approval flag, of approving all CSRs by a single group: