From the course: Google Cloud Platform (GCP) Essential Training for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Serving secured files using signed URLs - Google Cloud Tutorial
From the course: Google Cloud Platform (GCP) Essential Training for Developers
Serving secured files using signed URLs
- [Instructor] We're going to learn how to create signed URLs for Google Cloud storage objects. Signed URLs grant temporary access to any user who uses the URL to private objects in GCS. The way this works is our app uses a service account that has access to our private GCS object. One use case is that a user makes a request to our app. Our app then wants to give the user access to a specific private object in GCS. The app uses the service account and generates a signed URL for that private object and returns that to the user. The user then uses that signed URL to access the private object. GCS recognizes a signature and returns the private file to the user directly from GCS. Now there are multiple options for generating a signed URL. For this video, we will explain the V4 signing method. This is how a signed URL looks like. It starts with a path to our GCS object and then it has all these additional query parameters added…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.