-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Adjust BWC version on mapping version Token API supports the client_credentials grant (#33106) Build: forked compiler max memory matches jvmArgs (#33138) Introduce mapping version to index metadata (#33147) SQL: Enable aggregations to create a separate bucket for missing values (#32832) Fix grammar in contributing docs SECURITY: Fix Compile Error in ReservedRealmTests (#33166) APM server monitoring (#32515) Support only string `format` in date, root object & date range (#28117) [Rollup] Move toBuilders() methods out of rollup config objects (#32585) Fix forbiddenapis on java 11 (#33116) Apply publishing to genreate pom (#33094) Have circuit breaker succeed on unknown mem usage Do not lose default mapper on metadata updates (#33153) Fix a mappings update test (#33146) Reload Secure Settings REST specs & docs (#32990) Refactor CachingUsernamePassword realm (#32646)
- Loading branch information
Showing
76 changed files
with
1,591 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
docs/reference/cluster/nodes-reload-secure-settings.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[[cluster-nodes-reload-secure-settings]] | ||
== Nodes Reload Secure Settings | ||
|
||
The cluster nodes reload secure settings API is used to re-read the | ||
local node's encrypted keystore. Specifically, it will prompt the keystore | ||
decryption and reading accross the cluster. The keystore's plain content is | ||
used to reinitialize all compatible plugins. A compatible plugin can be | ||
reinitilized without restarting the node. The operation is | ||
complete when all compatible plugins have finished reinitilizing. Subsequently, | ||
the keystore is closed and any changes to it will not be reflected on the node. | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
POST _nodes/reload_secure_settings | ||
POST _nodes/nodeId1,nodeId2/reload_secure_settings | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[setup:node] | ||
// TEST[s/nodeId1,nodeId2/*/] | ||
|
||
The first command reloads the keystore on each node. The seconds allows | ||
to selectively target `nodeId1` and `nodeId2`. The node selection options are | ||
detailed <<cluster-nodes,here>>. | ||
|
||
Note: It is an error if secure settings are inconsistent across the cluster | ||
nodes, yet this consistency is not enforced whatsoever. Hence, reloading specific | ||
nodes is not standard. It is only justifiable when retrying failed reload operations. | ||
|
||
[float] | ||
[[rest-reload-secure-settings]] | ||
==== REST Reload Secure Settings Response | ||
|
||
The response contains the `nodes` object, which is a map, keyed by the | ||
node id. Each value has the node `name` and an optional `reload_exception` | ||
field. The `reload_exception` field is a serialization of the exception | ||
that was thrown during the reload process, if any. | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
{ | ||
"_nodes": { | ||
"total": 1, | ||
"successful": 1, | ||
"failed": 0 | ||
}, | ||
"cluster_name": "my_cluster", | ||
"nodes": { | ||
"pQHNt5rXTTWNvUgOrdynKg": { | ||
"name": "node-0" | ||
} | ||
} | ||
} | ||
-------------------------------------------------- | ||
// TESTRESPONSE[s/"my_cluster"/$body.cluster_name/] | ||
// TESTRESPONSE[s/"pQHNt5rXTTWNvUgOrdynKg"/\$node_name/] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
org.gradle.daemon=false | ||
org.gradle.jvmargs=-Xmx2g | ||
options.forkOptions.memoryMaximumSize=2g |
23 changes: 23 additions & 0 deletions
23
rest-api-spec/src/main/resources/rest-api-spec/api/nodes.reload_secure_settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"nodes.reload_secure_settings": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-reload-secure-settings.html", | ||
"methods": ["POST"], | ||
"url": { | ||
"path": "/_nodes/reload_secure_settings", | ||
"paths": ["/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings"], | ||
"parts": { | ||
"node_id": { | ||
"type": "list", | ||
"description": "A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes." | ||
} | ||
}, | ||
"params": { | ||
"timeout": { | ||
"type" : "time", | ||
"description" : "Explicit operation timeout" | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...-api-spec/src/main/resources/rest-api-spec/test/nodes.reload_secure_settings/10_basic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"node_reload_secure_settings test": | ||
|
||
- do: | ||
nodes.reload_secure_settings: {} | ||
|
||
- is_true: nodes | ||
- is_true: cluster_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.