Skip to content

Commit 0c738e3

Browse files
committed
[DOCS] Improve docs for 'elasticsearch-keystore add-file' command (#41084)
1 parent 39eba47 commit 0c738e3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/plugins/repository-gcs.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Some settings are sensitive and must be stored in the
151151

152152
[source,sh]
153153
----
154-
bin/elasticsearch-keystore add-file gcs.client.default.credentials_file
154+
bin/elasticsearch-keystore add-file gcs.client.default.credentials_file /path/service-account.json
155155
----
156156

157157
The following are the available client settings. Those that must be stored in the keystore

docs/reference/setup/secure-settings.asciidoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ through stdin, use the `--stdin` flag:
6464
cat /file/containing/setting/value | bin/elasticsearch-keystore add --stdin the.setting.name.to.set
6565
----------------------------------------------------------------
6666

67+
[float]
68+
[[add-file-to-keystore]]
69+
=== Adding file settings
70+
You can add sensitive files, like authentication key files for cloud plugins,
71+
using the `add-file` command. Be sure to include your file path as an argument
72+
after the setting name.
73+
74+
[source,sh]
75+
----------------------------------------------------------------
76+
bin/elasticsearch-keystore add-file the.setting.name.to.set /path/example-file.json
77+
----------------------------------------------------------------
78+
6779
[float]
6880
[[remove-settings]]
6981
=== Removing settings

0 commit comments

Comments
 (0)