Skip to main content
  1. Posts/

GCP (Google Cloud) IAP

2 mins· loading · ·
Author
David Haines
Topically ephemeral IT Insights
Table of Contents

IAP in Google Cloud
#

Google’s IAP is phenomonal technology that should be more widely known by those working with GCP.

Secure access to resources, with no bastion host (or jump box) required.

The landing page for IAP documentation is here, https://cloud.google.com/security/products/iap

Noteworthy highlights being:

Centralized access control
#

IAP provides a single point of control for managing user access to web applications and cloud resources.

Works with cloud and on-premises apps
#

IAP can protect access to applications hosted on Google Cloud, other clouds, and on-premises.

Protects apps and VMs
#

With TCP forwarding, IAP can protect SSH and RDP access to your VMs hosted on Google Cloud. Your VM instances don’t even need public IP addresses.

Centralized access control IAP provides a single point of control >for managing user access to web >applications and cloud resources.

Works with cloud and on-premises apps IAP can protect access to applications hosted on Google Cloud, other clouds, and on-premises. Protects apps and VMs With TCP forwarding, IAP can protect SSH and RDP access to your VMs hosted on Google Cloud. Your VM instances don’t even need public IP addresses.

When it comes to using IAP with CloudRun - for some time - setup was slightly more convoluted than one might hope for. Entirely doable, but this was recently simplified.

See https://docs.cloud.google.com/run/docs/securing/identity-aware-proxy-cloud-run#console

In a nutshell:

  1. In the Google Cloud console, go to Cloud Run
  2. Select Services from the Cloud Run navigation menu.
  3. If you are configuring a new service, click Deploy container and fill out the initial service settings.
  4. If you are configuring an existing service, click the service, then click the Security tab.
  5. Select Require authentication, then select Identity-Aware Proxy (IAP).
  6. Optional: To grant access to users, follow the instructions to Manage user or group access for IAP. If you encounter issues when configuring access for users outside of your organization, see the Troubleshooting section. To save the configuration, click Save.
  7. Click Create for a new service. Click View diff & redeploy, then Deploy changes for an existing service.

However - for my part - I’ll normally always be working with such matters programmatically whenever possible, so we’d be looking at https://docs.cloud.google.com/run/docs/securing/identity-aware-proxy-cloud-run#gcloud

In a very welcome move, Google has also simplified configuring access for external users.

See https://docs.cloud.google.com/run/docs/securing/identity-aware-proxy-cloud-run#outside-org

Related

GCP - How do I get a list of all Projects in an Organization ?

1 min· loading
GCP (Google Cloud): Getting a list of all Projects in a GCP Org (tenant) # When dealing with Google Cloud (GCP), how can we get a list of all existing projects (for example) ? There are a number of good posts out there about this, so I’m not presenting anything especially novel here. But - if nothing else - hopefully this will be useful to others, and I’m recording it here for posterity.