-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add option to disable emulator auth handling (temp fix) #1861
Conversation
src/pubsub.ts
Outdated
@@ -70,6 +70,7 @@ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | |||
|
|||
export interface ClientConfig extends gax.GrpcClientOptions { | |||
apiEndpoint?: string; | |||
useFakeCredentials?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment on the bug, but we should seriously consider alternatives to just adding another property like this. If we do end up adding it, let's not call it "useFakeCredentials."
@kamalaboulhosn Mind taking another look at this and see if you're okay with what I changed? Unfortunately this is now blocking TPC updates. :\ |
🤖 I have created a release *beep* *boop* --- ## [4.3.1](https://togithub.com/googleapis/nodejs-pubsub/compare/v4.3.0...v4.3.1) (2024-02-08) ### Bug Fixes * Add option to disable emulator auth handling (temp fix) ([#1861](https://togithub.com/googleapis/nodejs-pubsub/issues/1861)) ([761cdc8](https://togithub.com/googleapis/nodejs-pubsub/commit/761cdc898c69715e6775d2f5913ead1fca2def02)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Add manual control via PubSub options for whether the library uses "emulator mode", aka setting up for insecure SSL credentials for testing. Also fixes the heuristic to work with TPC.