octue / octue-sdk-python

The python SDK for @Octue services and digital twins.
https://octue.com
Other
9 stars 4 forks source link

Signing blobs in different scenarios #429

Closed cortadocodes closed 2 years ago

cortadocodes commented 2 years ago

We need to be able to sign blobs in the following scenarios.

Location Authentication context What for Solution
Google Cloud Run Default credentials' access token Providing signed URLs for output datasets in production Refresh credentials to get access token and use google.auth.compute_engine.credentials.IDTokenCredentials
GitHub Actions Workload identity federation Our CI tests Mock Blob.generate_signed_url
Locally Service account key Local testing; providing signed URLs to output datasets when running services locally Use Blob.generate_signed_url as normal

The following resources helped us get to this set of solutions:

thclark commented 1 year ago

Possibly of relevance: https://github.com/octue/django-gcp/issues/10