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

[7.17] Change elasticsearch.username: elastic deprecation level to critical #122717

Merged

Conversation

jportner
Copy link
Contributor

@jportner jportner commented Jan 11, 2022

Resolves #122704.

This changes the warning in the upgrade assistant:

image

Testing

Kibana normally forbids you from using this config when running from source.
First, temporarily remove that validation:

diff --git a/src/core/server/elasticsearch/elasticsearch_config.ts b/src/core/server/elasticsearch/elasticsearch_config.ts
index 96b3bdcad1d..5f47092f95e 100644
--- a/src/core/server/elasticsearch/elasticsearch_config.ts
+++ b/src/core/server/elasticsearch/elasticsearch_config.ts
@@ -41,6 +41,7 @@ export const configSchema = schema.object({
       false,
       schema.string({
         validate: (rawConfig) => {
+          return; // don't throw an error here when running from source
           if (rawConfig === 'elastic') {
             return (
               'value of "elastic" is forbidden. This is a superuser account that can obfuscate ' +

Then, add this config to your kibana.yml:

elasticsearch.username: elastic
elasticsearch.password: changeme

Start Elasticsearch and Kibana, log into Kibana, and navigate to the upgrade assistant. You should see the critical deprecation there.

The upgrade assistant is at this route: http://localhost:5601/app/management/stack/upgrade_assistant/kibana_deprecations

8.1 companion PR: #122722 (will be backported to 8.0)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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 11, 2022 23:45
@jportner jportner requested a review from a team January 12, 2022 03:29
Copy link
Contributor

@thomheymann thomheymann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.17.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use "critical" deprecation level for elasticsearch.username: elastic configuration
3 participants