QuestionQ67

VerifiedIntegrating applications with Google Cloud services

Your team is developing a serverless web application on Cloud Run. The application must access images stored in a private Cloud Storage bucket. You want to grant the application Identity and Access Management (IAM) permission to access the bucket images while securing the services according to Google-recommended best practices. What should you do?

Explanation

A Cloud Run service should use a dedicated user-managed service account with the minimum permissions needed for its work. Granting that service account the Storage Object Viewer role on the private bucket authorizes read access to its images. Enforcing public access prevention prevents the bucket and its objects from being accidentally exposed publicly; signed URLs are unnecessary when the Cloud Run workload accesses Cloud Storage through its IAM service identity.

Learn more

Community Discussion

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