Object storage backup fails to upload via Google Cloud Storage with Bucket Policy Only enabled
Summary
Looks like this issue has been reintroduced (or still happening). Specifically still reproducible on 12.4.2 with backups. gitlab-foss#59309 (closed)
Steps to reproduce
- Enable the "Bucket Policy Only" setting on a storage
- Configure for and execute a backup
What is the current bug behavior?
Creating backup archive: 1572981239_2019_11_05_12.4.2-ee_gitlab_backup.tar ... done
Uploading backup archive to remote storage remotestorage ... rake aborted!
Google::Apis::ClientError: invalid: Cannot use ACL API to set object policy when object policies are disabled.
What is the expected correct behavior?
Successful upload
Edited by Stan Hu