How to restrict access to a bucket for a user
Written by
Updated at November 27, 2023
Scenario description
You need to restrict access to the bucket for another user or a service account.
Solution
Users with service roles such as storage.viewer
, storage.configViewer
, storage.configurer
, storage.editor
, or storage.admin
have different privileges and access rights for buckets:
- The
storage.viewer
,storage.editor
, andstorage.admin
roles grant access to view or edit files in buckets. - The
storage.configViewer
role only allows viewing the security settings of buckets and objects in them (without access to objects). - The
storage.configurer
role allows modifying these settings.
For more details about service roles in Object Storage, see the documentation.
You can configure access to the bucket through ACL, removing the service roles from the required users, or configure access policies for each bucket: for more details, see here.