-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Spanner: Support the use of io.grpc.CallCredentials #6426
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
Spanner: Support the use of io.grpc.CallCredentials #6426
Conversation
Allow the user to supply io.grpc.CallCredentials instead of only com.google.auth.Credentials. Any CallCredentials supplied will take precedence above the Credentials set on SpannerOptions. Fixes #6373
Codecov Report
@@ Coverage Diff @@
## master #6426 +/- ##
============================================
- Coverage 46.34% 46.34% -0.01%
+ Complexity 27967 27966 -1
============================================
Files 2613 2613
Lines 287929 287929
Branches 33756 33756
============================================
- Hits 133443 133441 -2
- Misses 144267 144268 +1
- Partials 10219 10220 +1
Continue to review full report at Codecov.
|
My one concern is that this seems more widely applicable to My other thought is on the other side of the problem, and whether we should come up with a sane way to have a private class that extends /cc @tsalomie |
I can see that one too, and adding this option to |
@Capstan Any update on whether this change is still something you would need, or did you find some other way to use |
@olavloite I'm discussing this with Google-internal colleagues on the team that needs it. I don't believe we have an alternate solution at the moment, but I've not checked in recently and need to sync with them. |
/cc @pawelz |
/cc @tsalomie |
I am going to pursue – after the weekend – extending the internal support so that also can handle com.google.auth.Credentials. I'm fairly positive that will work out of the box and will obviate the need for this PR. |
/cc @xiesheng211 |
@olavloite This PR will need to be reopened in the https://github.com/googleapis/java-spanner repo as we've migrated the google-cloud-spanner code |
@Capstan Is this PR still needed? If so, we need to migrate it to the new repository. |
Yes, we still need this functionality. |
Moved to the new repo and merged there. |
Allow the user to supply io.grpc.CallCredentials instead of only com.google.auth.Credentials. Any CallCredentials supplied will take precedence above the Credentials set on SpannerOptions.
Fixes #6373