👋 Hello, team!
I’ve raised a PR on the elementary repo to make a very small update to the gcs client
https://github.com/elementary-data/elementary/pull/1739
Details on the PR
We’ve had an issue before with some of the processes we use which is why I spotted it. Our elementary dashboard is output to gcs through a dag that runs under a service account, because the service account only has
storage.objectAdmin
role to that bucket it failed because the client method
get_bucket
actually pulls bucket metadata from the project which it doesn’t have access to. However, if this is replaced with
client.bucket
it does not look up the bucket metadata first and can write the files as expected.