Ensure Pub/Sub Topics are not anonymously or publicly accessible
Cloud IAM policy governs the access permissions to pub/sub topics. Granting anonymous or public access to pub/sub topics is risky if you are storing any sensitive messages. As a best practice, limit the access to specific authenticated users or groups or service accounts.
Ensure that each pub/sub topic is configured so that no member is set to allUsers or allAuthenticatedUsers.