Skip to content

Commit

Permalink
[Upgrade Assistant] Update readme (elastic#112154)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth authored and sabarasaba committed Oct 26, 2021
1 parent 502e67f commit e74cc65
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion x-pack/plugins/upgrade_assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,28 @@ 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 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**

Expand Down

0 comments on commit e74cc65

Please sign in to comment.