More Info:

Ensure that “Require OS Login” constraint policy is enforced at the GCP organization level in order to enable OS Login feature on all newly created Google Cloud projects within your organization. The OS Login provides you with centralized and automated SSH key pair management.

Risk Level

Medium

Address

Operational Maturity, Reliability, Security

Compliance Standards

CISGCP, CBP, ISO27001, HIPAA

Triage and Remediation

Remediation

The “Require OS Login” misconfiguration in GCP means that instances in your project do not require OS Login to access the instance. OS Login is a feature that lets you use your Google Cloud identity to manage access to Linux instances running on Compute Engine.

To remediate this misconfiguration, you can follow these steps:

  1. Open the Google Cloud Console and select your project.
  2. In the left-hand menu, click on “Compute Engine” and then “VM instances”.
  3. Select the instance for which you want to enable OS Login.
  4. Click on “Edit” at the top of the page.
  5. Scroll down to the “Cloud API access scopes” section.
  6. Click on “Change” next to “Access scopes”.
  7. In the “Access scopes” dialog box, select “Allow full access to all Cloud APIs” and click “Save”.
  8. Scroll down to the “OS Login” section and select “Enable OS Login”.
  9. Click “Save” at the bottom of the page.

After completing these steps, OS Login will be enabled for the selected instance, and users will need to authenticate with their Google Cloud identity to access the instance.