Cloud Storage and IAM; An Introduction

There are several ways to control access to Cloud Storage resources, including buckets and objects in those buckets.

1. Cloud IAM is the preferred way to control access to buckets and objects.

2. For complex access control logic or when you need to control access to individual objects, you may need to use access control lists (ACLs).

3. Signed URLs is another option for granting access. These URLs are generated by you and shared with someone to whom you want to grant access but only for a short period of time.

4. If you want to control what can be uploaded to a bucket, you can use a signed policy document.

In this section, we will focus on the use of Cloud IAM with Cloud Storage.

Cloud Storage permissions are organized around resources, such as buckets, objects, and Hash-based Message Authentication Code (HMAC) keys. The bucket permissions allow users to create, delete, and list buckets. There are also permissions for getting and updating metadata as well as setting and getting IAM policies.

Object permissions also have create, delete, and list permissions as well as metadata and IAM policy permissions.

HMAC keys are used to authenticate access to Cloud Storage. The permissions for HMAC keys include creating, deleting, and listing keys as well as getting and updating metadata.
Five standard roles are used with Cloud Storage:

roles/storage.objectCreator: Allows a user to create an object

roles/storage.objectViewer: Allows a user to view an object and its metadata, but not ACLs. Users with this permission can also list the contents of a bucket

roles/storage.objectAdmin: Gives a user full control over objects, including creating, deleting, vieweing, and listing.

roles/storage.hmacKeyAdmin: Gives a user full control over HMAC keys within the project.

roles/storage.admin: Gives a user full control over buckets and objects, but when applied to a single bucket, it gives the user full control over only that bucket.

If primitive roles are used in a project, they grant viewer, editor, and owner access to objects in Cloud Storage.

Comments

Popular posts from this blog

The Morph Concept in 2025: From Vision to Emerging Reality

Mortgage Train 2025

Web Train 2025: Locomotives