About service connection policies (original) (raw)

This document explains how network administrators can use service connection policies to provide connectivity to supported managed service instances through service connectivity automation. Before reading this document, ensure that you're familiar with the concepts explained in About service connectivity automation.

Specifications

Service connection policies have the following specifications:

Service connection policies let consumers delegate the deployment of connectivity to managed services. The service producer doesn't have direct access or IAM privileges for the consumer project. Instead, the producer configures a service connection map in their own project.

When the service connection map is created or updated, typically in response to a request from a consumer service administrator to the managed service's administrative API or UI, service connectivity automation performs a series of authorization checks. If all of the checks pass, Private Service Connect endpoints are created as specified in the request.

For information about authorization, seeAuthorization model.

Service connection policies can automate connectivity to service instances that are located in host projects or in attached service projects.

If you're using Shared VPC, you must create the service connection policy in the host project. Endpoints are created in the project that is specified in the service instance configuration.

If you create a service connection policy in a Shared VPC network and deploy a service instance in a service project, service connectivity automation shares the subnets that are associated with the service connection policy by updating the service project'sNetwork Connectivity Service Account. This service account is granted theCompute Network User role(roles/compute.networkUser) on the shared subnets.

For a deployment example, seeShared VPC.

Connection policies with custom service instance scope

By default, service connectivity automation creates endpoints for service instances and associated service connection policies that are in the same Google Cloud project (or in the case of Shared VPC, in connected projects). For supported Google services, service instances and connecting endpoints can also be in different projects or organizations.

Not all Google services support configuring a custom service instance scope. To determine whether a service supports a custom service instance scope, see the documentation for the specific service.

Use the Service instance scope (--producer-instance-location) setting to configure connectivity to service instances that are in other Resource Manager nodes (projects, folders, and organizations).

If you update the service instance scope for a service connection policy, existing endpoints aren't affected.

For a deployment example, see Google services with custom service instance scope.

Endpoint IP versions

The possible IP versions of endpoints that connect to service instances (IPv4, IPv6, or both) is determined by the service producer, not by service connectivity automation. If the service supports both IPv4 and IPv6, service instance administrators can choose an IP version when deploying an instance through a service's administrative API. For information about a service's supported IP versions, see the service's documentation.

When a service instance administrator chooses an IP version, service connectivity automation checks the service connection policy for compatible subnets to use for creating endpoint IP addresses:

If the service connection policy doesn't have a compatible subnet, the request fails, and no endpoint is created.

Additionally, the IP version of the endpoint must be compatible with the IP version of the service instance, which is determined by the associated service attachment's forwarding rule. Private Service Connect supports the following IP version combinations:

Connecting an IPv4 endpoint to an IPv6 service attachment isn't supported.

If you want to let both IPv4 and IPv6 clients access a managed service instance, configure connectivity for separate IPv4 and IPv6 endpoints that connect to the same service.

Limitations

Pricing

Pricing for Private Service Connect is described on theVPC pricing page.

What's next