Open yunduansing opened 10 months ago
I use the gateway feature of go-zero to implement the mapping from HTTP to gRPC, and use etcd as the RPC service discovery. However, when I set the username and password for etcd, the etcd client reports: "etcdserver: permission denied".
go code: gc.Upstreams[i].Grpc.Etcd.Hosts = config.Conf.EtcdAddress gc.Upstreams[i].Grpc.Etcd.User = config.Conf.EtcdUser gc.Upstreams[i].Grpc.Etcd.Pass = config.Conf.EtcdSecret
gc.Upstreams[i].Grpc.Etcd.Hosts = config.Conf.EtcdAddress gc.Upstreams[i].Grpc.Etcd.User = config.Conf.EtcdUser gc.Upstreams[i].Grpc.Etcd.Pass = config.Conf.EtcdSecret
xxx.yaml
Upstreams:
ProtoSets:
Mappings:
Verify you're setting correct username/password.
I use the gateway feature of go-zero to implement the mapping from HTTP to gRPC, and use etcd as the RPC service discovery. However, when I set the username and password for etcd, the etcd client reports: "etcdserver: permission denied".
go code:
gc.Upstreams[i].Grpc.Etcd.Hosts = config.Conf.EtcdAddress gc.Upstreams[i].Grpc.Etcd.User = config.Conf.EtcdUser gc.Upstreams[i].Grpc.Etcd.Pass = config.Conf.EtcdSecret
xxx.yaml
Upstreams:
proto set mode
ProtoSets:
Mappings can also be written in proto options
Mappings: