Creating a Central Authorization Layer using Cloud IAP

Lab Steps

lock
Signing In to the Google Cloud Console
lock
Creating a Client Application for Google Authentication
lock
Authenticating gcloud in the Lab's Virtual Machine
lock
Creating and Deploying the Web Application to the App Engine
lock
Configuring the Cloud IAP and Testing the Application

Ready for the real environment experience?

DifficultyIntermediate
Time Limit45m
Students26
Ratings
5/5
starstarstarstarstar

Description

In this lab, you will be securing your application using Cloud Identity Aware Proxy. You will first create a simple Python application that you will deploy on the App Engine and then you will enable Cloud IAP to create a Central Authorization Layer.

What is Cloud Identity-Aware Proxy?

Cloud IAP establishes a central authorization layer for an application accessed on a browser. IAP has resolved problems like direct endpoint access. To avoid such cases, IAP is used. When users try to access the endpoint URL, a prompt will appear for Google Sign In, if you are in the allowed member list, you will be able to access otherwise you will get an access denied error.

It is done at the application layer. If your application is on-premise, IAP Connector can be used.

Drawbacks

  • Internal traffic inside VM/GAE/GKE can bypass IAP.
  • If you are using a third-party CDN, cached content might be served to unauthorized users.

Learning Objectives

Upon completion of this lab you will be able to:

  • Secure your applications by allowing URL access only for trusted members.
  • Providing application-level security instead of network-level security.
  • Authenticate and authorize application users with OAuth.

Intended Audience

This lab is intended for:

  • Software Developers
  • Network Engineers
  • Security Engineers

Prerequisites

You should possess:

  • A basic understanding of HTML, CSS, and Python
Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students156626
Labs216
Courses9
Learning paths46

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Security Specialist (CKS), Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.