-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Destination GCS: Multi-part upload permissions are not validated by the connection check step #9044
Comments
@sherifnada I'm marking this as critical as it's a popular destination. |
Great catch @alafanechere , thanks for the great error report. |
Hi @tuliren. |
full logs: |
I don't think |
I tried to add information about this to the readme so that if someone at least follows the golden path they should not run into it. #9255 |
@etsybaev, I have created a new service account:
The new service account is only associated with this new role under the A new HMAC key is generated for this service account. I have updated the GCS integration test passes locally with the new key. You should be able to test your change with the |
A second service ( Its key is uploaded to LastPass under the entry |
While troubleshooting this user's problem I realized that the connection check could be improved to avoid false-positive connection checks.
Current Behavior
On
check
GCS destination performs aputObject
operation to check it has permission to write to the destination bucket:On
write
theS3StreamTransferManagerHelper
is performing a multipart upload.On GCS
storage.multipartUploads.create
permission is required to write an object to the bucket, thecheck
only requiresstorage.objects.create
permission.If the service account has
storage.objects.create
permission but notstorage.multipartUploads.create
thecheck
will pass but the sync will fail.Expected Behavior
check
should fail if the service account does not havestorage.multipartUploads.create
permissions.Logs
Logs_Mayur_Mahajan_20211220.txt
The text was updated successfully, but these errors were encountered: