Skip to main content

More Info:

Controlling access to your information is one of the foundations of information security. Google Employees do have access to your organizations projects for support reasons. With Access Approval, organizations can then be certain that their information is accessed by only approved Google Personnel.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS GCP
  • CIS GCP 2.0.0
  • Cloudanix Best Practice

Triage and Remediation

Remediation

Using Console

To remediate the “Ensure Access Approval Is Enabled” misconfiguration in GCP using the GCP console, please follow the below steps:
  1. Log in to the GCP console with your credentials.
  2. Navigate to the “Access Approval” page by clicking on the hamburger menu in the top left corner and selecting “Security” > “Access Approval”.
  3. Click on the “Enable Access Approval” button.
  4. Configure the access approval settings as per your organization’s policies.
  5. Click on the “Save” button to save the changes.
Once you have completed these steps, access approval will be enabled for your GCP organization, and any requests for access to resources will need to be approved before they are granted.

To remediate the misconfiguration “Ensure Access Approval Is Enabled” in GCP using GCP CLI, follow the below steps:Step 1: Open the Cloud Shell in your GCP console.Step 2: Run the following command to check if Access Approval is enabled or not:
Step 3: If the output of the above command shows that Access Approval is not enabled, then run the following command to enable it:
Step 4: After running the above command, Access Approval will be enabled and any requests for access to resources in your GCP project will require approval before they can be granted.Step 5: Verify that Access Approval is enabled by running the following command:
Step 6: The output of the above command should show that Access Approval is enabled and enforced.With these steps, you have successfully remediated the misconfiguration “Ensure Access Approval Is Enabled” in GCP using GCP CLI.
To remediate the misconfiguration “Ensure Access Approval Is Enabled” in GCP using Python, you can follow the below steps:
  1. Import the necessary libraries:
  1. Create a service account and grant it the necessary permissions to access the Access Approval API.
  1. Get the current Access Approval settings:
  1. Check if Access Approval is enabled or not:
  1. If Access Approval is not enabled, enable it:
  1. Verify that Access Approval is enabled:
Note: Replace <project_id> with your actual project ID.These steps will ensure that Access Approval is enabled in GCP using Python.
This change does not replace the project; it just configures Access Approval for it.To verify, terraform plan should show a new google_access_approval_settings.logging_project resource (or an update) with enrolled_services.cloud_product = "logging.googleapis.com" and enrollment_level = "FULL".

Additional Reading: