More Info:

Use Binary Authorization to allowlist (whitelist) only approved container registries

Risk Level

Medium

Address

Security, Operational Excellence, Best Practice

Compliance Standards

CISGKE

Triage and Remediation

Remediation

To remediate the misconfiguration “Minimize Container Registries To Only Approved Ones” for GCP using GCP console, please follow the below steps:

  1. Login to the GCP console (https://console.cloud.google.com/).
  2. Navigate to the Container Registry page by clicking on “Navigation menu > Container Registry”.
  3. Click on the Registry that you want to modify.
  4. Click on the “Permissions” tab.
  5. Click on the “Add Member” button.
  6. In the “New members” field, enter the email address of the user or group that you want to grant permissions to.
  7. In the “Select a role” field, choose the appropriate role that you want to grant to the user or group. For example, you can choose “Storage Object Viewer” to allow users to view the images in the registry.
  8. Click on the “Add” button to add the user or group to the registry with the selected role.

Repeat steps 5-8 for all the users or groups that need access to the registry. By doing this, you are minimizing the container registries to only approved ones.

Additional Reading: