1.1.20 Ensure that the --authorization-mode argument is not set to AlwaysAllow

Information

Do not always authorize all requests.

Rationale:

The apiserver, by default, allows all requests. You should restrict this behavior to only allow the authorization modes that you explicitly use in your environment. For example, if you don't use REST APIs in your environment, it is a good security best practice to switch off that capability.

Solution

Edit the `/etc/kubernetes/apiserver` file on the master node and set the `KUBE_API_ARGS` parameter to values other than `--authorization-mode=AlwaysAllow`. One such example could be as below: `KUBE_API_ARGS='--authorization-mode=RBAC'`

Based on your system, restart the `kube-apiserver` service. For example: `systemctl restart kube-apiserver.service`

Impact:

Only authorized requests will be served.

See Also

https://workbench.cisecurity.org/files/1738

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6, CSCv6|9.1

Plugin: Unix

Control ID: bddd02121f34457c6ea29780adc4f6e53c298dd51db41dd4ab0d2d806c98def9