help about credentials in Server
See original GitHub issueThis code is from etcd to create server, and when I let grpcServer listen at http://localhost:2379
, tls === nil
and grpc.NewServer
doesn’t include grpc.Creds
.
func Server(s *etcdserver.EtcdServer, tls *tls.Config, gopts ...grpc.ServerOption) *grpc.Server {
var opts []grpc.ServerOption
opts = append(opts, grpc.CustomCodec(&codec{}))
if tls != nil {
opts = append(opts, grpc.Creds(credentials.NewTLS(tls)))
}
opts = append(opts, grpc.UnaryInterceptor(newUnaryInterceptor(s)))
opts = append(opts, grpc.StreamInterceptor(newStreamInterceptor(s)))
opts = append(opts, grpc.MaxRecvMsgSize(int(s.Cfg.MaxRequestBytes+grpcOverheadBytes)))
opts = append(opts, grpc.MaxSendMsgSize(maxSendBytes))
opts = append(opts, grpc.MaxConcurrentStreams(maxStreams))
grpcServer := grpc.NewServer(append(opts, gopts...)...)
I want to do the same thing with nodejs grpc, does grpc.ServerCredentials.createInsecure()
work?
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Accessing Credential Manager
Credential Manager lets you view and delete your saved credentials for signing in to websites, connected applications, and networks.
Read more >Protecting Credentials in Window Server 2016
This guide explains the Windows Server 2016 features that can help you to protect user and admin credentials from being harvested by hackers ......
Read more >Credentials
Use default credentials: Runs all workflows using the default Run As account, which defaults to the LocalSystem account. · Require user ...
Read more >ArcGIS Server web services—ArcGIS Online Help
If you own or have privileges to administer secure services with embedded credentials and your secure service's data source is using the HTTP...
Read more >Manage Saved Credentials for Data Connections
Note: If you're a Tableau Server user and can't delete saved credentials, ... To help ensure uninterrupted data access from existing Tableau content...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have tried python grpc, and python-client behaviors like node-client. It gives error
which is the same as error of node-client.
I don’t try C++ grpc, because both client and server cannot run and show
core dump
, I don’t know why.I’m not sure that https://github.com/grpc/grpc-go/issues/434