Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests fail when no auth is present #559

Open
LDTips opened this issue Nov 27, 2024 · 1 comment
Open

Requests fail when no auth is present #559

LDTips opened this issue Nov 27, 2024 · 1 comment

Comments

@LDTips
Copy link

LDTips commented Nov 27, 2024

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/
@karimra
Copy link
Collaborator

karimra commented Dec 2, 2024

That error is coming from the router.
Skipping auth works, you just have to omit --username and --password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants