Artifact Registry lets you deploy artifacts directly to
Google Cloud runtime environments, which have preconfigured access to
repositories in the same project by default. If your runtimes access
repositories in other projects, or if the default permissions don't meet your
needs, you must configure or modify repository permissions to match your
deployment requirements.

## When to configure permissions

You must configure or modify permissions yourself if:

- You are using a service account in one project to access Artifact Registry in a different project
- You are using a service account with read-only access to storage, but you want the service account to both upload and download artifacts
- You are using a custom service account to interact with Artifact Registry.

There are two forms of access control to consider:

IAM permissions
:   Identity and Access Management permissions determine the users, service accounts and other
    [identities](https://docs.cloud.google.com/iam/docs/overview#concepts_related_identity) that can access
    resources. You grant
    [Artifact Registry permissions](https://docs.cloud.google.com/artifact-registry/docs/access-control#permissions)
    to identities that can access repositories.

Access scopes
:   [Access scopes](https://docs.cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) determine the
    default OAuth scopes for requests made through the gcloud CLI and client
    libraries on a VM instance. As a result, access scopes can further limit
    access to API methods when authenticating with
    [application default credentials](https://docs.cloud.google.com/docs/authentication/production).

For service-specific requirements, refer to the following information:

- [App Engine flexible environment](https://docs.cloud.google.com/artifact-registry/docs/integrate-app-engine)
- [Cloud Run](https://docs.cloud.google.com/artifact-registry/docs/integrate-cloud-run)
- [Compute Engine](https://docs.cloud.google.com/artifact-registry/docs/integrate-compute)
- [Google Kubernetes Engine](https://docs.cloud.google.com/artifact-registry/docs/integrate-gke)