Open ksator opened 2 years ago
can you please assign this to me ?
Perhaps setting Authorization
header through --metadata
would work?
./grpc_cli ls 192.168.0.5:443 --metadata="authorization:Bearer $token"
I'm running into a similar issue as the OP and grpc_cli
doesn't appear to support a --metadata
flag.
List services
grpc_cli ls <address> [<service>[/<method>]]
<address> ; host:port
<service> ; Exported service name
<method> ; Method name
--l ; Use a long listing format
--outfile ; Output filename (defaults to stdout)
--ssl_target ; Set server host for ssl validation
--ssl_client_cert ; Client cert for ssl
--ssl_client_key ; Client private key for ssl
--local_connect_type ; Set to local_tcp or uds
--channel_creds_type ; Set to insecure, ssl, gdc, alts, or local
--call_creds ; Set to none, or access_token=<token>
@Ian-Stewart-Binks use grpc_cli --helpfull
to get a list of all flags
I am able to use grpcurl with ServerReflection but not grpc_cli
grpcurl
this works:
grpc_cli
This doesnt work: