2

I followed the docs (Setting up a load balancer with Cloud Run, and Setting up an external HTTPS load balancer) and successfully enabled IAP on a load balancer, which has Cloud Run as a backend.

It seems that for IAP to work, the frontend of the load balancer needs to be configured for HTTPS, which in turn requires owning a domain.

Is there a way to still have IAP on Cloud Run without specifically registering a domain?

  • 2
    If you do not specify a domain name for the SSL certificate, how do you expect HTTPS to work? For testing, you can get a free domain name at FreeNom: https://www.freenom.com/en/index.html – John Hanley Jun 05 '21 at 19:06
  • You can't have a valid TLS certificate (trusted by root providers) without having a domain. You can always self-sign a TLS certificate for an IP address and use it on the LB, but it won't work on people's browsers etc. – ahmet alp balkan Jun 07 '21 at 18:06
  • @AhmetB-Google That's what I was afraid of. It's unfortunate to have to have a domain just for this purpose but it's manageable. – Alexis VIALARET Jun 08 '21 at 13:42

0 Answers0