Permissions
IAM roles and permission
To use Google Cloud Storage as backup storage in the GitProtect service, it is recommended to assign the Storage Admin IAM role (roles/storage.admin – full control of buckets and objects) to the GCS user, or create a service account with the minimal permission set:
storage.objects.liststorage.objects.getstorage.objects.createstorage.objects.delete
Support for immutable storage
Remember that immutable storage configuration is available only when creating a new bucket — there is no option to enable it for an existing bucket.
Enabling retention and/or versioning for the bucket may result in additional data being stored. It is recommended that the retention period in GitProtect be longer than the one set for the storage. Otherwise, this may lead to storage overload.
If you want to use immutable storage, the following permissions are required:
s3:GetBucketObjectLockConfigurationconfiguration.s3:GetBucketVersioningBuckets with retention enabled cannot be used as storage for GitProtect.
It must be added to the Action section, and after the changes, the section should look as shown below:
"Action": [
"s3:ListBucket",
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:GetBucketVersioning",
"s3:GetBucketObjectLockConfiguration"
],Useful links and items
Last updated

