gnmic
gnmic copied to clipboard
Requests fail when no auth is present
I have a gRPC endpoint that has no authentication for testing.
However, when making a call (e.g. capabilities) I get some auth stuffing credentials error.
I saw in documentation the --auth-scheme flag, but I don't understand if it's possible to set it to skip auth. I thought not setting --username and --password will suffice
gnmic --address <ADDR> --port 50000 --insecure capabilities
target "<ADDR>", capabilities request failed: "[<ADDR>:50000](http://<ADDR>:50000/)" CapabilitiesRequest failed: rpc error: code = Unavailable desc = JGrpcServer: Error adding user name/authentication-type to metadata array for RPC /gnmi.gNMI/Capabilities
Error: one or more requests failed
Version:
gnmic version
version : 0.39.1
commit : 235990e3
date : 2024-11-11T15:50:33Z
gitURL : https://github.com/openconfig/gnmic
docs : https://gnmic.openconfig.net/
That error is coming from the router.
Skipping auth works, you just have to omit --username and --password