-
Notifications
You must be signed in to change notification settings - Fork 505
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
Remove admin:admin default and update instructions for demo setup #5887
Changes from 1 commit
92e9f22
2c05e39
d4d1551
7606020
18c4dbb
e524958
eceb3c3
d8f9203
9fe6bc8
cdeb90f
ec6c14c
dedf9bb
d227507
0216d9c
9af6b27
56497be
a6b2b9e
2165d52
14baf92
be5762d
e0f1c21
5902f2e
5a10f61
24b46c4
1acb1c1
7ed50ca
cc1b44f
fcbc313
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,10 +40,10 @@ This guide assumes that you are comfortable working from the Linux command line | |
1. From the CLI, install using `dpkg`. | ||
```bash | ||
# x64 | ||
sudo dpkg -i opensearch-{{site.opensearch_version}}-linux-x64.deb | ||
sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=< Admin password > dpkg -i opensearch-{{site.opensearch_version}}-linux-x64.deb | ||
|
||
# arm64 | ||
sudo dpkg -i opensearch-{{site.opensearch_version}}-linux-arm64.deb | ||
sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=< Admin password> dpkg -i opensearch-{{site.opensearch_version}}-linux-arm64.deb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing trailing space inside ">". |
||
``` | ||
|
||
1. After the installation succeeds, enable OpenSearch as a service. | ||
|
@@ -175,7 +175,7 @@ An OpenSearch node in its default configuration (with demo certificates and user | |
1. Send requests to the server to verify that OpenSearch is running. Note the use of the `--insecure` flag, which is required because the TLS certificates are self-signed. | ||
- Send a request to port 9200: | ||
```bash | ||
curl -X GET https://localhost:9200 -u 'admin:admin' --insecure | ||
curl -X GET https://localhost:9200 -u 'admin:< Admin password >' --insecure | ||
``` | ||
{% include copy.html %} | ||
|
||
|
@@ -201,7 +201,7 @@ An OpenSearch node in its default configuration (with demo certificates and user | |
``` | ||
- Query the plugins endpoint: | ||
```bash | ||
curl -X GET https://localhost:9200/_cat/plugins?v -u 'admin:admin' --insecure | ||
curl -X GET https://localhost:9200/_cat/plugins?v -u 'admin:< Admin password >' --insecure | ||
``` | ||
{% include copy.html %} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,12 @@ An OpenSearch node configured by the demo security script is not suitable for a | |
``` | ||
{% include copy.html %} | ||
|
||
1. Set an initial admin password variable through the `OPENSEARCH_INITIAL_ADMIN_PASSWORD` environment variable. | ||
```bash | ||
export OPENSEARCH_INITIAL_ADMIN_PASSWORD=< Admin password > | ||
``` | ||
{% include copy.html %} | ||
|
||
1. Run the OpenSearch startup script with the security demo configuration. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this step should be numbered as 2 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of them are 1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is correct, I believe the numbers are handled on the website side. |
||
```bash | ||
./opensearch-tar-install.sh | ||
|
@@ -103,7 +109,7 @@ An OpenSearch node configured by the demo security script is not suitable for a | |
1. Open another terminal session and send requests to the server to verify that OpenSearch is running. Note the use of the `--insecure` flag, which is required because the TLS certificates are self-signed. | ||
- Send a request to port 9200: | ||
```bash | ||
curl -X GET https://localhost:9200 -u 'admin:admin' --insecure | ||
curl -X GET https://localhost:9200 -u 'admin:< Admin password >' --insecure | ||
``` | ||
{% include copy.html %} | ||
|
||
|
@@ -129,7 +135,7 @@ An OpenSearch node configured by the demo security script is not suitable for a | |
``` | ||
- Query the plugins endpoint: | ||
```bash | ||
curl -X GET https://localhost:9200/_cat/plugins?v -u 'admin:admin' --insecure | ||
curl -X GET https://localhost:9200/_cat/plugins?v -u 'admin:< Admin password >' --insecure | ||
``` | ||
{% include copy.html %} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,12 @@ An OpenSearch node in its default configuration (with demo certificates and user | |
``` | ||
{% include copy.html %} | ||
|
||
1. Set the initial admin password via the `OPENSEARCH_INITIAL_ADMIN_PASSWORD` environment variable. | ||
```bat | ||
set OPENSEARCH_INITIAL_ADMIN_PASSWORD=< Admin password > | ||
``` | ||
{% include copy.html %} | ||
|
||
1. Run the batch script. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this step should be numbered as 2 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of them are numbered as 1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Markdown automatically will number these in sequence. So if you put "1. 1. 1.", the output will be "1. 2. 3" |
||
```bat | ||
.\opensearch-windows-install.bat | ||
|
@@ -74,7 +80,7 @@ An OpenSearch node in its default configuration (with demo certificates and user | |
1. Open a new command prompt and send requests to the server to verify that OpenSearch is running. Note the use of the `--insecure` flag, which is required because the TLS certificates are self-signed. | ||
- Send a request to port 9200: | ||
```bat | ||
curl.exe -X GET https://localhost:9200 -u "admin:admin" --insecure | ||
curl.exe -X GET https://localhost:9200 -u "admin:< Admin password >" --insecure | ||
``` | ||
{% include copy.html %} | ||
|
||
|
@@ -100,7 +106,7 @@ An OpenSearch node in its default configuration (with demo certificates and user | |
``` | ||
- Query the plugins endpoint: | ||
```bat | ||
curl.exe -X GET https://localhost:9200/_cat/plugins?v -u "admin:admin" --insecure | ||
curl.exe -X GET https://localhost:9200/_cat/plugins?v -u "admin:< Admin password >" --insecure | ||
``` | ||
{% include copy.html %} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add a comment about why this password is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This applies to all updated distributions