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

All users to specify API key in a place other than a header #1777

Closed
benwtrent opened this issue Sep 12, 2023 · 0 comments · Fixed by #1778
Closed

All users to specify API key in a place other than a header #1777

benwtrent opened this issue Sep 12, 2023 · 0 comments · Fixed by #1778

Comments

@benwtrent
Copy link
Member

Right now to use an API key in the auth header I have to do some hoop jumping like:

esrally race --track=geonames --pipeline=benchmark-only --client-options='{"default": {"use_ssl": true, "headers":{"Authorization":"ApiKey aE...=="}}}' --target-hosts=target.es.host:9200 --kill-running-processes --test-mode

This is not well documented and has the added disadvantage of logging the headers (issue: #1757 is aimed to fix that part of it).

But, I want to be able to simply say --client-options="auth_api_key:'aE...=='" and rally does the right thing.

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 a pull request may close this issue.

1 participant