elasticsearch/docs/reference/commands
Ioannis Kakavas 537f371f34
URL option for BaseRunAsSuperuserCommand (#81025)
Add a --url option for elasticsearch-reset-password and
elasticsearch-create-enrollment-token CLI Tools ( and any tools
that would extend BaseRunAsSuperuserCommand ).
The tools use CommandLineHttpClient internally, which tries its
best to deduce the URL of the local node based on the configuration
but there are certain cases where it either fails or returns an
unwanted result. Concretely:

- CommandLineHttpClient#getDefaultURL will always return a URL with
the port set to 9200, unless otherwise explicitly set in the
configuration. When running multiple nodes on the same host,
subsequent nodes get sequential port numbers after 9200 by default
and this means that the CLI tool will always connect the first of
n nodes in a given host. Since these tools depend on a file realm
local user, requests to other nodes would fail
- When an ES node binds and listens to many addresses, there can
be the case that not all of the IP addresses are added as SANs in
the certificate that is used for TLS on the HTTP layer.
CommandLineHttpClient#getDefaultURL will pick an address based on
a preference order but that address might not be in the SANs and
thus all requests to the node would fail due to failed hostname
verification.

Manually setting `--url` to an appropriate value allows users to
overcome these edge cases.
2021-11-29 23:49:27 +02:00
..
certgen.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
certutil.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
create-enrollment-token.asciidoc URL option for BaseRunAsSuperuserCommand (#81025) 2021-11-29 23:49:27 +02:00
croneval.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
index.asciidoc CLI tool to (re)set users password (#79709) 2021-10-26 07:57:18 +03:00
keystore.asciidoc [DOCS] Add has-passwd parameter (#77594) (#79064) 2021-10-13 09:26:24 -04:00
node-tool.asciidoc [DOCS] Re-add docs for multiple data paths (MDP) (#78342) 2021-09-28 09:20:45 -04:00
reset-password.asciidoc URL option for BaseRunAsSuperuserCommand (#81025) 2021-11-29 23:49:27 +02:00
saml-metadata.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
service-tokens-command.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
setup-passwords.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
shard-tool.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
syskeygen.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00
users-command.asciidoc [DOCS] Remove [testenv="gold+"] attributes (#79309) 2021-10-27 16:32:30 -04:00