Legacy authorization (ABAC) should be disabled

Description

Legacy Authorization, also known as Attribute-Based Access Control (ABAC) has been superseded by Role-Based Access Control (RBAC) and is not under active development. RBAC is the recommended way to manage permissions in Kubernetes.

Remediation

From the console

  1. Go to the Kubernetes Engine
  2. Select Kubernetes clusters for which Legacy Authorization is enabled
  3. Click EDIT
  4. Set Legacy Authorization to Disabled
  5. Click SAVE.

From the commandline

  1. To disable Legacy Authorization for an existing cluster, run the following command:
    gcloud container clusters update <cluster_name> --zone <compute_zone> --no-
    enable-legacy-authorization
    

References