Cab Maddux

02/20/2020, 1:15 PM
Hi! quick question: If I'm trying to pass a secret to the credentials property of the GCSUpload task, this is how I should do it right?
Copy code
my_secret = Secret('MY_SECRET') # Where the JSON credential for a GCP service account has been copied to a Secret named 'MY_SECRET' via the cloud UI

upload_task = GCSUpload(project='foo', bucket='bar', ...)
upload_task(data='This is my data', blob='path/to/blob.txt', credentials=my_secret)