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

Forbid using elasticsearch.username: elastic in production #122722

Merged
merged 2 commits into from
Jan 12, 2022

Conversation

jportner
Copy link
Contributor

@jportner jportner commented Jan 11, 2022

Resolves #51101.

This was already forbidden when running Kibana from source, now it is also forbidden when running Kibana from the distribution (i.e., in production).

If you configure Kibana with elasticsearch.username: elastic, it will crash with the following error:

[2022-01-11T17:18:15.527-05:00][FATAL][root] Error: [config validation of [elasticsearch].username]: value of "elastic" is forbidden. This is a superuser account that cannot write to system indices that Kibana needs to function. Use a service account token instead. Learn more: https://www.elastic.co/guide/en/elasticsearch/reference/8.0/service-accounts.html
at ensureValidConfiguration (/Users/joe/GitHub/kibana-2/src/core/server/config/ensure_valid_configuration.ts:24:11)
at Server.preboot (/Users/joe/GitHub/kibana-2/src/core/server/server.ts:140:5)
at Root.preboot (/Users/joe/GitHub/kibana-2/src/core/server/root/index.ts:42:14)
at bootstrap (/Users/joe/GitHub/kibana-2/src/core/server/bootstrap.ts:84:25)
at Command. (/Users/joe/GitHub/kibana-2/src/cli/serve/serve.js:244:5)

7.17 companion PR: #122717


8.0 release note: Kibana can no longer use the elastic superuser to authenticate to Elasticsearch (configuring elasticsearch.username: elastic is forbidden).

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jportner jportner marked this pull request as ready for review January 12, 2022 03:28
@jportner jportner requested a review from a team as a code owner January 12, 2022 03:28
@jportner jportner merged commit 48efabe into elastic:main Jan 12, 2022
@jportner jportner deleted the issue-51101-forbid-elastic-user branch January 12, 2022 14:23
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 12, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:breaking v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Breaking change] forbid elasticsearch.username: elastic in production
5 participants