ns-ydai opened a new issue, #28286: URL: https://github.com/apache/beam/issues/28286
### What happened? My dataflow job is running in Project A, and it needs to use service account which belongs to Project B to read the Pubsub message from Project B. So in the DataflowPipelineOption, I use options.setGcpCredential to set it to use that service account. But when the PubsubIO.readString() tries to read the message, it is still using the GCP credential when launching the dataflow job, not the one I set in the option. I tried to dive into the code and found when creating PubsubJsonClient, the option doesn't have the gcpCredential field from the pipeline option. Can anyone help on this please? Thanks. ### Issue Priority Priority: 2 (default / most bugs should be filed as P2) ### Issue Components - [ ] Component: Python SDK - [X] Component: Java SDK - [ ] Component: Go SDK - [ ] Component: Typescript SDK - [X] Component: IO connector - [ ] Component: Beam examples - [ ] Component: Beam playground - [ ] Component: Beam katas - [ ] Component: Website - [ ] Component: Spark Runner - [ ] Component: Flink Runner - [ ] Component: Samza Runner - [ ] Component: Twister2 Runner - [ ] Component: Hazelcast Jet Runner - [X] Component: Google Cloud Dataflow Runner -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
