-
Notifications
You must be signed in to change notification settings - Fork 141
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
Should return error if gRPC has no password, but calls with username and password #1376
Comments
It is still not fixed. Run node without the ./build/pactus-shell blockchain get-blockchain-info --auth-username foo --auth-password bar |
Showed error for invalid username or password, It's normal message for basic auth error. ./pactus-shell blockchain get-blockchain-info --auth-username foo --auth-password bar
Error: rpc error: code = Unauthenticated desc = username or password is invalid
Usage:
shell blockchain get-blockchain-info [flags]
Flags:
-h, --help help for get-blockchain-info
Global Flags:
--auth-password string password for gRPC basic authentication
--auth-username string username for gRPC basic authentication
-f, --request-file string client request file; use "-" for stdin
-i, --request-format string request format (json, xml) (default "json")
-o, --response-format string response format (json, prettyjson, prettyxml, xml) (default "prettyjson")
-s, --server-addr string server address in the form host:port (default "localhost:50051")
--timeout duration client connection timeout (default 10s)
--tls enable TLS
--tls-ca-cert-file string CA certificate file
--tls-cert-file string client certificate file
--tls-insecure-skip-verify INSECURE: skip TLS checks
--tls-key-file string client key file
--tls-server-name string TLS server name override
[ERROR] rpc error: code = Unauthenticated desc = username or password is invalid |
Make sure the gRPC in localnet has no cerdential. then run:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If
basic_auth
for gRPC is not set, calling any method with a password works, such as:It should warn the user that no password is set.
How To Reproduce
Create a localnet or connect to testnet, and call any gRPC API with basic auth credentials.
What Happened
The API call succeeds, even though it should not.
The text was updated successfully, but these errors were encountered: