More Info:

Ensure that topic retention is set for PubSub Lite

Risk Level

Low

Address

Operational Maturity, Reliability

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of PubSub Lite Topic Retention using GCP console, you can follow the below steps:

  1. Login to the Google Cloud Console (https://console.cloud.google.com/).
  2. Select the project that contains the PubSub Lite topic that needs to be remediated.
  3. Navigate to the PubSub Lite Topics page by selecting “Pub/Sub Lite” from the left-hand menu and then selecting “Topics”.
  4. Select the PubSub Lite topic that needs to be remediated.
  5. Click on the “Edit” button at the top of the page.
  6. Under the “Retention” section, set the retention period for the topic. You can set the retention period to any value between 10 minutes and 7 days.
  7. Click on the “Save” button to save the changes.

After following these steps, the PubSub Lite Topic Retention will be set for the selected topic.