QuestionQ107

VerifiedIntegrating applications with Google Cloud services

You are developing an application that shares PDF files containing time-sensitive information with users. The PDF files are stored in Cloud Storage, and you must provide secure access to them.

You have these requirements:

  • Users must have access only to files they are permitted to view.
  • Users must be able to request read, write, or delete access to the PDF files for 24 hours.

Not every application user has a Google account. How should you provide access to data objects?

Explanation

Cloud Storage signed URLs grant time-limited permission for a specific request against a specific object and work for anyone who possesses the URL, including users without Google accounts. The application can authorize each user before issuing a signed URL for the required read, write, or delete operation, with a 24-hour expiration. IAM roles require authenticated principals, while sharing service account key files exposes credentials and is not an appropriate user-access mechanism.

Learn more

Community Discussion

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