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

Kibana authentication is not inheriting the Elasticsearch output api_key value #24015

Closed
andrewkroh opened this issue Feb 11, 2021 · 2 comments · Fixed by #27540
Closed

Kibana authentication is not inheriting the Elasticsearch output api_key value #24015

andrewkroh opened this issue Feb 11, 2021 · 2 comments · Fixed by #27540
Assignees
Labels
bug libbeat Team:Elastic-Agent Label for the Agent team

Comments

@andrewkroh
Copy link
Member

andrewkroh commented Feb 11, 2021

setup --dashboards fails to authenticate while using an output.elasticsearch.api_key. The authentication options for the Elasticsearch username and password are automatically used when connecting to Kibana. So for consistency the api_key should also automatically be used.

For confirmed bugs, please report:

  • Version: 7.10
  • Operating System: all

As a workaround I found that setup.kibana.headers is an undocumented config option. Using that you can set the Authentication header manually. Note that the format is different from the output.elasticsearch.api_key because you have to use the raw header value (it does not base64 encode it for you).

setup.kibana.headers:
  Authorization: "ApiKey <base64_encoded_key>"
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 11, 2021
@andresrc andresrc added the Team:Elastic-Agent Label for the Agent team label Feb 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 12, 2021
@a03nikki
Copy link

a03nikki commented Mar 5, 2021

The setup.kibana.headers is now a documented feature, which can be found at https://www.elastic.co/guide/en/beats/winlogbeat/7.11/setup-kibana-endpoint.html#_setup_kibana_headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug libbeat Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants