File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2020import com .google .api .gax .grpc .GrpcInterceptorProvider ;
2121import com .google .api .gax .retrying .RetrySettings ;
2222import com .google .api .gax .rpc .TransportChannelProvider ;
23+ import com .google .cloud .NoCredentials ;
2324import com .google .cloud .ServiceDefaults ;
2425import com .google .cloud .ServiceOptions ;
2526import com .google .cloud .ServiceRpc ;
@@ -518,6 +519,8 @@ public ManagedChannelBuilder apply(ManagedChannelBuilder builder) {
518519 return builder .usePlaintext ();
519520 }
520521 });
522+ // As we are using plain text, we should never send any credentials.
523+ this .setCredentials (NoCredentials .getInstance ());
521524 }
522525 return new SpannerOptions (this );
523526 }
You can’t perform that action at this time.
0 commit comments