From 9f15794e7cd7b40c2ba069c5fee59a9f1ba789b3 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Tue, 14 Sep 2021 13:37:53 -0400 Subject: [PATCH 1/3] update readme --- x-pack/plugins/upgrade_assistant/README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/upgrade_assistant/README.md b/x-pack/plugins/upgrade_assistant/README.md index 0c6c2a3f4c772..5f4d96347f91c 100644 --- a/x-pack/plugins/upgrade_assistant/README.md +++ b/x-pack/plugins/upgrade_assistant/README.md @@ -66,7 +66,27 @@ To test the Elasticsearch deprecations page ([#107053](https://github.com/elasti ``` yarn es snapshot -E path.data=./path_to_6.x_indices -``` + ``` + + **Token-based authentication** + Reindexing should also work using token-based authentication (implemented via [#111451](https://github.com/elastic/kibana/pull/111451)). To simulate, set the following parameters when running ES from a snapshot: + + ``` + yarn es snapshot -E path.data=./path_to_6.x_indices -E xpack.security.authc.token.enabled=true -E xpack.security.authc.api_key.enabled=true + ``` + + Then, update your `kibana.dev.yml` file to include: + + ``` + xpack.security.authc.providers: + token: + token1: + order: 0 + showInSelector: true + enabled: true + ``` + + To verify it's working as expected, kick off a reindex task in UA. Then, navigate to **Security > API keys** and verify a API key was created. The name should be prefixed with `ua_reindex_`. Once the reindex task as completed successfully, the API should be deleted. **2. Upgrading or deleting ML job model snapshots** From 960e8532e65129dc937430deeafb8c07e855705a Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Tue, 14 Sep 2021 13:42:51 -0400 Subject: [PATCH 2/3] fix typos --- x-pack/plugins/upgrade_assistant/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/upgrade_assistant/README.md b/x-pack/plugins/upgrade_assistant/README.md index 5f4d96347f91c..261d1214d76df 100644 --- a/x-pack/plugins/upgrade_assistant/README.md +++ b/x-pack/plugins/upgrade_assistant/README.md @@ -86,7 +86,7 @@ To test the Elasticsearch deprecations page ([#107053](https://github.com/elasti enabled: true ``` - To verify it's working as expected, kick off a reindex task in UA. Then, navigate to **Security > API keys** and verify a API key was created. The name should be prefixed with `ua_reindex_`. Once the reindex task as completed successfully, the API should be deleted. + To verify it's working as expected, kick off a reindex task in UA. Then, navigate to **Security > API keys** and verify an API key was created. The name should be prefixed with `ua_reindex_`. Once the reindex task has completed successfully, the API should be deleted. **2. Upgrading or deleting ML job model snapshots** From b185f46508adc09e43934232f7148c550692cbbc Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Tue, 14 Sep 2021 14:50:04 -0400 Subject: [PATCH 3/3] address review comments --- x-pack/plugins/upgrade_assistant/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/upgrade_assistant/README.md b/x-pack/plugins/upgrade_assistant/README.md index 261d1214d76df..31b07d251145e 100644 --- a/x-pack/plugins/upgrade_assistant/README.md +++ b/x-pack/plugins/upgrade_assistant/README.md @@ -69,6 +69,7 @@ To test the Elasticsearch deprecations page ([#107053](https://github.com/elasti ``` **Token-based authentication** + Reindexing should also work using token-based authentication (implemented via [#111451](https://github.com/elastic/kibana/pull/111451)). To simulate, set the following parameters when running ES from a snapshot: ``` @@ -86,7 +87,7 @@ To test the Elasticsearch deprecations page ([#107053](https://github.com/elasti enabled: true ``` - To verify it's working as expected, kick off a reindex task in UA. Then, navigate to **Security > API keys** and verify an API key was created. The name should be prefixed with `ua_reindex_`. Once the reindex task has completed successfully, the API should be deleted. + To verify it's working as expected, kick off a reindex task in UA. Then, navigate to **Security > API keys** and verify an API key was created. The name should be prefixed with `ua_reindex_`. Once the reindex task has completed successfully, the API key should be deleted. **2. Upgrading or deleting ML job model snapshots**