Access Context Manager allows Google Cloud Platform (GCP) organization administrators to define fine-grained, attribute based access control for projects and resources in GCP.

Administrators first define an access policy, which is an organization-wide container for access levels and Access Zones.

Access levels describe the necessary requirements for requests to be honored. Examples include:

  • Device type and operating system
  • IP address
  • User identity

Access zones define sandboxes of resources which can freely exchange data within the zone, but are not allowed to export data outside of it. Use of access zones is currently by invitation only. If your application is not whitelisted, any attempt to call access zone APIs will result in an error.

Access Context Manager isn't responsible for policy enforcement. Its purpose is to describe the desired rules. Policy is configured and enforced across various points, such as VPC Service Controls. You can read more about these services in their respective user guides.

Why Access Context Manager

Many companies rely on a perimeter security model — e.g., Firewalls — to secure internal resources. This model is similar to a medieval castle: a fortress with thick walls, surrounded by a moat, with a heavily guarded single point of entry and exit. Anything located outside the wall is considered dangerous. Anything inside is trusted.

Firewalls and the perimeter security model work well if there is a precise boundary around specific users and services. However, if a workforce is mobile, the variety of devices increases as users bring their own devices (BYOD) and utilize cloud-based services. This results in additional attack vectors not considered by the perimeter model. The perimeter is no longer just the physical location of the enterprise, and what lies inside cannot be assumed as safe.

Access Context Manager allows you to reduce the size of the privileged network and move to a model where endpoints do not carry ambient authority based on the network. Instead, you can grant access based on device type and user identity, while still checking for corporate network access when necessary.

Access Context Manager is an integral part of the BeyondCorp effort at Google. To learn more, see BeyondCorp.

Access policies

An access policy is a container for access levels. A single policy can contain multiple access levels.

Access Context Manager is an organization-wide feature. You create an Access Policy in the context of a project for quota purposes, but you can use the policy anywhere in your organization, not only that project.

See the Quickstart to learn how to create an access policy.

Access levels

An access level is a set of attributes assigned to requests based on their origin. Using information such as device type, IP address, or user identity, you can designate what level of access to grant. For example, you might assign a "High_Trust" level to connections from within your corporate network and "Medium_Trust" trust to external devices running approved operating systems.

Once you have defined access levels, enforcement services can use them to determine whether to honor a request. For example, you might specify that while many resources are available to "Medium_Trust," certain more sensitive resources require the "High_Trust" level. These checks are applied in addition to standard Cloud IAM policy.

Access levels are customizable; "High_Trust" and "Medium_Trust" are examples. You can specify multiple access levels as part of an access policy.

IP address

You can grant an access level based on the IP address of the originating request. The range of IPs to allow is specified in the form of a Classless Inter-Domain Routing (CIDR) block, which allows for simple, yet fine-grained control over the IPs allowed.

A single access level can contain multiple IP ranges.

See Creating an Access Level for Corporate Network Access to learn how to create an access level that only allows access to a specified range of IP addresses (for example, those within a corporate network).

Device type

Access Context Manager uses Endpoint Verification to gather information regarding user devices, including operating system and version. You can grant an access level based on this data; for example, you might decide to grant a more permissive access level to devices running the latest version of the primary operating system deployed at your company.

Read Creating an Access Level for User Devices for more information on how to grant an access level to certain devices.

User identity

In some scenarios, you may wish to grant an access level to specific entities. In this case, the identity of the caller determines whether the condition is met.

This scenario is often often used in conjunction with Service Accounts and VPC Service Controls; for example, to enable a Cloud Function to access data protected by VPC Service Controls.

Identity-only access levels can only be created and managed with the gcloud command line tool, not via the Google Cloud Platform Console.

Learn how to work with identities and access levels in Including Identities in Access Levels with Networks.

Combining conditions

A single access level can contain multiple conditions. The conditions can be evaluated using either the AND or OR operator. You can specify the mode when creating or updating an access level.

The AND case is the stricter (and default) option. It only grants the Access Level if all conditions pass. For example, you might require a request come from within the corporate network and from a device running a the latest operating system.

OR is a less restrictive option. It only requires one of many conditions to be true. This is sometimes valuable when dealing with user identities; for example, to exclude specific entities (such as Service Accounts) from the normal requirements.

Nesting conditions

Conditions can be nested such that one condition depends on another condition. For example, if you have two access levels, "Medium" and "High" trust, you can set the requirements for "High" to require "Medium," plus some other conditions.

Nesting conditions can make managing access levels more convenient. For example, imagine your most permissive access level contains a minimum operating system version, and you set your more restrictive levels to depend on it. Now if you update the minimum version in the future, you only have to update a single condition, rather than every access level in the policy.

Learn more

Was this page helpful? Let us know how we did:

Send feedback about...

Access Context Manager