Difference between google cloud default service account and service agent?

I am not completely clear between the difference and the purpose of default service accounts and service agents in google cloud. From the documentation:

Default Service Accounts:

Default service accounts are user-managed service accounts that are created automatically when you enable or use certain Google Cloud services. These service accounts let the service deploy jobs that access other Google Cloud resources. You are responsible for managing default service accounts after they are created.

Service Agents:

Some Google Cloud services need access to your resources so that they can act on your behalf. For example, when you use Cloud Run to run a container, the service needs access to any Pub/Sub topics that can trigger the container.

Bsed on the above, both of them are used by Google services. And, I understand the following differences/similarities between them:

  • Both are created automatically
  • Service agents are managed by Google whereas Default Service Accounts are managed by end user
  • Service agents are not created in user projects and are not visible (at least with default settings) in the IAM page and cannot be accessed directly as opposed to Default Service Accounts
  • If an application runs in a Google Cloud environment that has a default service account, the application can use the credentials for the default service account to call Google Cloud APIs

I also see that, according to the documentation, the Default Service Accounts are associated with specific services (App Engine, and any Google Cloud service that uses App Engine AND Compute Engine, and any Google Cloud service that uses Compute Engine).

Keeping in mind the above points, I am not sure I understand the need for user managed service accounts, default service accounts and service agents:

  • User managed service account: for use by user applications
  • Default service account: for use by Google services themselves and also by user applications
  • Service agent: for use by Google services themselves (for example for GKE to launch VMs)

Why have default service accounts? Seems their scope can be covered by either user managed service accounts or service agents. Or is my understanding incorrect and default service accounts are only used by user applications that run for example, on a VM, in which case they are more of a convenience feature?

6

“Difference between google cloud default service account and service
agent?”

Comment mentioned by DazWilkin is correct.User or Default Service Accounts are owned by your Project. You can use these Service Accounts. But you should create your own, more specific IAM role accounts to use in production. Service Agents are owned by Google. Google uses the Service Accounts to affect behavior in your projects’ resources.

As per this official doc

User-managed service accounts are Service accounts that you create and manage. These service accounts are often used as identities
for workloads.

Default service accounts are User-managed service accounts that are created automatically when you enable certain Google Cloud
services. You are responsible for managing these service accounts.

Service agents are Service accounts that are created and managed by Google Cloud, and that allow services to access resources on your
behalf.

This official document describes how service accounts work with Compute Engine.

As per this When you set up an instance to run as a service account,
you determine the level of access the service account has by the IAM
roles that you grant to the service account. If the service
account has no IAM roles, then no resources can be accessed using the
service account on that instance.

See this official document about Choose when to use service accounts

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật