Add CLI credentials from CLI or JSON file #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EDIT: Lost internet, draft state, need to squash and overwrite commits.Adds CLI options to pull credentials from CLI args or JSON file. This is simply to aid with general automation scripts, systems, etc. which don't implement gNMI interfaces but may want to interact via shell.
-insecure_username & -insecure_password
Username and password may be passed directly on the command line. This has some notion of conflict with
-insecure
despite not being related, but generally wanted to discourage this method relatively explicitly and-insecure_*
prefix feels most effective.-credentials_file
Specified per client.Credentials:
Extracted functionality from #49 to separate docs and these args. I do think the docs are handy separately at least! Will maintain separately if not desired to merge.