Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serve content from a Google Cloud Storage bucket using Identity-Aware Proxy (IAP)

I have some content in a GCS bucket:

$ gsutil ls gs://my-bucket
index.html

I'd like to serve this behind OAuth using Identity-Aware Proxy (IAP). I'm following these instructions.

I've created a load balancer and and "backend bucket" like so:

Load balancer configuration

On the Identity-Aware Proxy page, however, I do not see my load balancer listed:

Identity-Aware Proxy Page

Is it possible to use IAP with a backend bucket?

like image 324
danvk Avatar asked Sep 25 '18 19:09

danvk


People also ask

What is identity aware proxy in Google cloud?

What is Identity-Aware Proxy? Identity-Aware Proxy (IAP) is a Google Cloud Platform service that intercepts web requests sent to your application, authenticates the user making the request using the Google Identity Service, and only lets the requests through if they come from a user you authorize.

How does IAP work in GCP?

How IAP for on-premises apps works. When a request is sent to an app hosted on Google Cloud, IAP authenticates and authorizes the user requests. It then grants the user access to the Google Cloud app. When a request is sent to an on-premises app, IAP authenticates and authorizes the user request.

What is cloud IAP in GCP?

This page describes the basic concepts of Identity-Aware Proxy (IAP), a Google Cloud global service. IAP lets you establish a central authorization layer for applications accessed by HTTPS, so you can use an application-level access control model instead of relying on network-level firewalls.


1 Answers

This isn't supported at the moment. The policy is applied per backend, not for the load balancer as a whole (so for example, yoursite.com/admin can be more restricted than yoursite.com/public). However only backend services (ie GCE/GKE) are supported, but not backend buckets.

There is an open feature request for backend bucket IAP support.

like image 189
David Avatar answered Sep 21 '22 12:09

David