Cloud Pub/Sub authentication

This topic describes authentication information for
Cloud Pub/Sub.

Supported authentication methods

Cloud Pub/Sub supports the following authentication methods.

Service accounts

Service accounts are recommended for almost all use cases, whether you
are developing locally or in a production application. For an example of
how to set up authentication with a service account, see
Cloud Pub/Sub client libraries.

Access control

Roles limit an authenticated identity's ability to access resources. When
building a production application, only grant an identity the permissions
it needs in order to interact with applicable GCP APIs, features, or
resources.