Identity and Access Management (IAM) Knowledge

Kip Landergren

Contents#

Overview#

IAM encompasses the suite of tools and policies a cloud provider makes available to authorize who can take action on which specific cloud resources. Control and auditing are typically built-in.

Principals are the identity entities that interface with the cloud provider and operate—directly or indirectly—on behalf of users. They may be user accounts—tied 1:1 with real people—or service accounts which are typically created for specialized, automated tasks involving a restricted permission set.

Access—meaning the permission granted by the cloud provider to a principal—to perform these tasks is managed through the binding of roles to specific principals and resources.

Google Cloud Platform (GCP) Example#

Within GCP resources are organized hierarchically within an organization. The organization is at the top level and itself a resource, followed by its projects (also resources), and within projects individual APIs and compute resources like VMs and IPs. Permissions cascade downward, meaning that if you are an “Admin” at the organizational level, you are also an “Admin” for every project.

For example:

The “Acme” organization has a single project “Website”. John Doe is an employee who has a user account jdoe@example.com. The organization administrator creates a role binding with:

To grant John the use of the cloud console web interface to create and manage DNS zones. It also allows him to use gcloud locally with the same permission structure to manage DNS resources.

Now let’s imagine he wants to run a VM under project “Website” that executes code which need DNS read access for the project’s zones. John’s user account has permission to accomplish this task through his “DNS Administrator” role and he could try configure the code to run as his user.

This would be:

Rather than go down that path he and the administrator decide to use a service account with more granular permissions:

This ensures that the code has the minimum access it needs to accomplish its goal and John’s user credentials are not shared widely.

Core Idea#

Create a binding between principals, resources, and roles as the minimum set of what is necessary to accomplish a task.