VPC Service Controls helps you protect App Hub resources by
establishing [service perimeters](https://docs.cloud.google.com/vpc-service-controls/docs/service-perimeters.md.txt)
that mitigate data exfiltration risks. You can restrict access to the
`apphub.googleapis.com` API within a perimeter to control operations such as
creating and deleting applications, services, and workloads.

## Supported resources

We recommend that you protect all App Hub resources when creating a
service perimeter.

App Hub supports the following resource types:

- Application
- Discovered service
- Discovered workload
- Service
- Service project attachment (only for applications managed by a host project)
- Workload

## Applications in a management project

When you enable the App Hub API for a single-project or folder-level
[boundary](https://docs.cloud.google.com/app-hub/docs/set-up-app-hub.md.txt#compare-models), the system enables the required APIs
for application management in the [management project](https://docs.cloud.google.com/app-hub/docs/key-concepts.md.txt#mgmt-project).

After the management project is created, you can also enable recommended APIs
that provide more application-centric features.

To include the management project in a service perimeter,
[create](https://docs.cloud.google.com/vpc-service-controls/docs/create-service-perimeters.md.txt) or [update](https://docs.cloud.google.com/vpc-service-controls/docs/manage-service-perimeters.md.txt#update) your service perimeter
so that the management project and the enabled APIs are included in the
perimeter.

For applications in a [folder boundary](https://docs.cloud.google.com/app-hub/docs/key-concepts.md.txt#app-mgmt-boundary),
VPC Service Controls restrictions apply only to App Hub
interactions in the management project. App Hub can read
application data and discover services and workloads for all descendent projects
of the app-enabled folder, even if those projects are not in the same perimeter
as the management project.

To learn about which APIs are required and recommended, see
[Required and recommended APIs](https://docs.cloud.google.com/app-hub/docs/enabled-apis.md.txt#apis).

## Applications managed by a host project

For [legacy host projects](https://docs.cloud.google.com/app-hub/docs/key-concepts.md.txt#host-project), you can
only attach a [service project](https://docs.cloud.google.com/app-hub/docs/key-concepts.md.txt#service-project) if
the host project and service project are in the same perimeter. If you move a
previously-attached service project outside the perimeter, the service project's
resources remain accessible until you detach the service project from the host
project.

## What's next

- To learn more about VPC Service Controls, see the
  [overview](https://docs.cloud.google.com/vpc-service-controls/docs/overview.md.txt) and
  [supported products and limitations](https://docs.cloud.google.com/vpc-service-controls/docs/supported-products.md.txt).

- For best practices for enabling VPC Service Controls, see
  [Best practices for enabling VPC Service Controls](https://docs.cloud.google.com/vpc-service-controls/docs/enable.md.txt).

- For best practices for designing service perimeters, see
  [Design and architect service perimeters](https://docs.cloud.google.com/vpc-service-controls/docs/architect-perimeters.md.txt).

- To set up a service perimeter, see
  [Create a service perimeter](https://docs.cloud.google.com/vpc-service-controls/docs/create-service-perimeters.md.txt).