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

Add auth token flags for pulsar-perf #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wolfstudy
Copy link

Signed-off-by: xiaolongran [email protected]

Motivation

Add token/JWT and trusted certificate support in Pulsar perf go client. So that it can be used in production environment.

Modifications

Implement pulsar-perf-go command-line arguments for token-file, token-string and trusted-cert-file. These three arguments are optional. There is no change to the default non-TLS and no auth configuration.

How to use

$ cd perf
$ go build .
$ ./perf

Output as follows:

      --token-file string        file path to the Pulsar JWT file
      --token-string string      string to the Pulsar JWT
      --trust-cert-file string   file path to the trusted certificate file

@wolfstudy wolfstudy changed the title add auth token flags for perf Add auth token flags for pulsar-perf Jan 5, 2021
Signed-off-by: xiaolongran <[email protected]>
@wolfstudy
Copy link
Author

wolfstudy commented Jan 5, 2021

And the style check seems that it has nothing to do with this change. If necessary, we can fix this problem in the next pull request. Have we followed the golangci-lint specification before?

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

Successfully merging this pull request may close these issues.

1 participant