1. Home
  2. Security Hardening
  3. CIS Kubernetes 1.8 Benchmark V1.2.0 L1
  4. Ensure that the –authorization-mode argument is not set to AlwaysAllow

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

Details

Do not always authorize all requests.

Rationale:

The API Server, 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 API server pod specification file ‘/etc/kubernetes/manifests/kube-apiserver.yaml’ on the master node and set the ‘–authorization-mode’ parameter to values other than ‘AlwaysAllow’. One such example could be as below.

–authorization-mode=RBAC

Impact:

Only authorized requests will be served.

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles