-
Notifications
You must be signed in to change notification settings - Fork 98
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: copy credentials in internal config #1052
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1052 +/- ##
==========================================
+ Coverage 94.85% 94.86% +0.01%
==========================================
Files 96 96
Lines 6311 6326 +15
Branches 496 496
==========================================
+ Hits 5986 6001 +15
Misses 166 166
Partials 159 159
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #1052 +/- ##
==========================================
+ Coverage 94.85% 94.86% +0.01%
==========================================
Files 96 96
Lines 6311 6326 +15
Branches 496 496
==========================================
+ Hits 5986 6001 +15
Misses 166 166
Partials 159 159
Continue to review full report at Codecov.
|
authOptions: Object.assign({}, mergedConfig, { | ||
projectId: lastOf<string | undefined>( | ||
mergedConfig.projectId, | ||
process.env.GCLOUD_PROJECT |
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.
Doesn't the auth library already consult this environment variable?
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.
Yeah, we do.
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.
It's unfortunate but I realized that Trace Agent has historically regarded GCLOUD_PROJECT
as taking precedence over the projectId
config option, while the auth library does the opposite. Maybe it's possible that we change this now, though.
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.
That would be semver major :/. Not worth it.
authOptions: Object.assign({}, mergedConfig, { | ||
projectId: lastOf<string | undefined>( | ||
mergedConfig.projectId, | ||
process.env.GCLOUD_PROJECT |
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.
That would be semver major :/. Not worth it.
Fixes #1048