More Info:

Ensure dead letter queue is enabled for PubSub Lite subscriptions

Risk Level

Low

Address

Reliability, Operational Maturity, Security

Compliance Standards

HIPAA, SOC2, PCIDSS, NIST

Triage and Remediation

Remediation

Sure, here are the step by step instructions to remediate the PubSub Lite subscription without Dead Letter Queue in GCP:

  1. Open the GCP console and navigate to the Pub/Sub page.
  2. From the left-hand menu, select “Subscriptions”.
  3. Select the subscription that needs to be remediated.
  4. Click on the “Edit” button at the top of the page.
  5. Scroll down to the “Dead Letter Policy” section and click on the “Add Dead Letter Topic” button.
  6. In the “Dead Letter Topic” field, enter the name of the topic that will receive dead letter messages.
  7. In the “Max Delivery Attempts” field, enter the maximum number of delivery attempts before a message is considered a dead letter.
  8. Click on the “Save” button to apply the changes.

Once the above steps are completed, the PubSub Lite subscription will have a Dead Letter Queue configured. Any messages that fail to be delivered after the specified number of attempts will be sent to the Dead Letter Queue topic.