Skip to content

Commit

Permalink
remove sudo, and added 1 more point when configuring key or sas token
Browse files Browse the repository at this point in the history
Signed-off-by: Chengwu Shi <chengwu.shi@netapp.com>
  • Loading branch information
chengwushi-netapp committed May 3, 2024
1 parent eda4aa3 commit 8bc83c9
Showing 1 changed file with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,32 @@ You will most likely not need to specify any parameters except for `bucket` and
1. To use a Microsoft Azure Blob Storage as a snapshot repository, install the `repository-azure` plugin on all nodes:

```bash
sudo ./bin/opensearch-plugin install repository-azure
./bin/opensearch-plugin install repository-azure
```

1. To use `repository-azure` plugin after installation, you need to define your azure storage settings before
initialising the node:

1. Define your azure storage account name in secure setting:

```bash
./bin/opensearch-keystore add azure.client.default.account
```

1. Specify your azure storage account key or SAS token in secure setting. Choose one option, either the key or the
token, but not both:

```bash
./bin/opensearch-keystore add azure.client.default.key
./bin/opensearch-keystore add azure.client.default.sas_token
```

1. (Optional) If you're using token credential instead of SAS token or an account key:

1. Define your azure storage account name in secure setting:

```bash
sudo ./bin/opensearch-keystore add azure.client.default.account
./bin/opensearch-keystore add azure.client.default.account
```

1. Add your token credential type to `opensearch.yml`:
Expand All @@ -230,10 +247,10 @@ You will most likely not need to specify any parameters except for `bucket` and

Useful information when using token credential:

- At the moment, azure managed identity is the only token credential support.
- Token credential is disabled by default.
- If both token credential and SAS token are configured, token credential will be used for authentication instead
of SAS token. Similar behaviour when both token credential and account key are configured.
- At the moment, azure managed identity is the only token credential support.
- Token credential is disabled by default.
- If both token credential and SAS token are configured, token credential will be used for authentication instead
of SAS token. Similar behaviour when both token credential and account key are configured.

## Take snapshots

Expand Down

0 comments on commit 8bc83c9

Please sign in to comment.