QuestionQ91

VerifiedSecuring communications and establishing boundary protection

You administer one of your organization’s Google Cloud projects (Project A). A VPC Service Controls (SC) perimeter blocks API-access requests to this project, including Pub/Sub. A resource that runs under a service account in another project (Project B) must collect messages from a Pub/Sub topic in your project. Project B is not part of a VPC SC perimeter. You need to grant Project B access to the Pub/Sub topic in Project A according to the principle of least privilege.

What should you do?

Explanation

An ingress policy permits an API client outside a service perimeter to access resources inside it when the policy’s source, identity, service operation, and resource constraints are satisfied. Restricting the rule to the specific service account from Project B and the required Pub/Sub subscriber access provides the required cross-boundary access without broadly connecting projects or removing Pub/Sub from perimeter protection. The service account also needs the corresponding Pub/Sub IAM permission on the applicable subscription/resource.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!