List Storage Transfer Service Jobs Works for ADC Credentials, Not Service Account Credentials #12909
Open
1 task done
Labels
auth
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Determine this is the right repository
Summary of the issue
While reviewing an API I observed that it does not work for service account credentials while it does for ADC credentials. The PIP library used below is google-cloud-storage-transfer v 1.11.4. Note how using the ADC credentials works (I also confirmed these work with the HTTP request via https://cloud.google.com/storage-transfer/docs/reference/rest/v1/transferJobs/list), while using service account credentials does not. See below how I start with ADC creds and it works fine (albeit the need to use json.dumps instead of being able to pass in a dictionary for filter which seems a bit weird), and then trying to do the same with a client using service account credentials throws an UNKNOWN error.
API client name and version
google-cloud-storage-transfer == 1.11.4
Reproduction steps: code
Reproduction steps: supporting files
file: mydata.csv
Reproduction steps: actual results
file: output.txtmydata.csv
Reproduction steps: expected results
The API should work the same as ADC credentials
OS & version + platform
Kali Linux + Python
Python environment
Python 3.11.9
Python dependencies
See above for dependency
The text was updated successfully, but these errors were encountered: