More Info:
Cloud CDN regional backend services should use only the secure listeners. A listener is a process that checks for connection requests, using the protocol and port that you configure.Risk Level
MediumAddress
SecurityCompliance Standards
SOC2Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the “Cloud CDN Regional Backend Services Should Use Secure Listeners Only” misconfiguration in GCP using the GCP console, please follow the below steps:
- Open the Google Cloud Console and select the project in which the Cloud CDN has been configured.
- In the left-hand side menu, click on “Cloud CDN”.
- In the Cloud CDN dashboard, click on the name of the CDN you want to modify.
- In the CDN details page, click on the “Backend configuration” tab.
- In the “Backend configuration” tab, click on the “Edit” button.
- In the “Edit backend configuration” page, scroll down to the “Backend service” section.
- In the “Backend service” section, click on the “Edit” button.
- In the “Edit backend service” page, scroll down to the “Protocol” section.
- In the “Protocol” section, select “HTTPS” from the drop-down list.
- In the same section, select the “Port number” as per your requirement.
- Click on the “Save” button to save the changes.
- Repeat steps 5-11 for all the backend services used by the CDN.
Using CLI
Using CLI
To remediate the misconfiguration “Cloud CDN Regional Backend Services Should Use Secure Listeners Only” for GCP using GCP CLI, you can follow the below steps:
- Open the Cloud Shell in your GCP console.
-
Run the following command to list all the backend services in your project:
- Identify the backend service that needs to be remediated and note down its name.
-
Run the following command to update the backend service and enable secure listeners:
Replace
<BACKEND_SERVICE_NAME>with the actual name of the backend service that needs to be remediated. -
Verify the configuration by running the following command:
This command will display the details of the backend service, including the protocol and port used for the secure listener.
- Repeat the above steps for all the backend services in your project that need to be remediated.
Using Python
Using Python
To remediate the misconfiguration “Cloud CDN Regional Backend Services Should Use Secure Listeners Only” for GCP using Python, you can follow the below steps:
- Import the required libraries:
- Set up the authentication using a service account:
- Build the Cloud CDN API client:
- Get the list of backend services using the
projects().global().backendServices().list()method:
- Loop through each backend service and check if it has a secure listener:
- Save the changes and exit the script.

