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

Proper apikey format for elasticsearch #582

Open
WritesWithBadCode opened this issue Dec 12, 2024 · 0 comments
Open

Proper apikey format for elasticsearch #582

WritesWithBadCode opened this issue Dec 12, 2024 · 0 comments

Comments

@WritesWithBadCode
Copy link

Documentation should be updated to explain the process to create the apikey. It is a base64 encoded string of ":<api_key>" values returned by the elasticsearch /_security/api_key endpoint. Docs for calling that endpoint are online for elasticsearch.

You have to make sure not to include the new line character when creating the API key base64 string, i.e.:
echo -n xpajefwM4r3N:NwfeoSLsjlavanw19fSD | base64

If you forget the -n it will not work and you'll get a 401.

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

1 participant