mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Warn users if security is implicitly disabled (#70114)
* Warn users if security is implicitly disabled Elasticsearch has security features implicitly disabled by default for Basic and Trial licenses, unless explicitly set in the configuration file. This may be good for onboarding, but it also lead to unintended insecure clusters. This change introduces clear warnings when security features are implicitly disabled. - a warning header in each REST response if security is implicitly disabled; - a log message during cluster boot.
This commit is contained in:
parent
46efa6ad04
commit
3b0b7941ae
102 changed files with 404 additions and 107 deletions
|
@ -25,6 +25,7 @@ testClusters {
|
|||
'remote-cluster' {
|
||||
numberOfNodes = 2
|
||||
setting 'node.roles', '[data,ingest,master]'
|
||||
setting 'xpack.security.enabled', 'false'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,6 +39,7 @@ testClusters.matching { it.name == "mixedClusterTest"}.configureEach {
|
|||
setting 'cluster.remote.my_remote_cluster.seeds',
|
||||
{ "\"${testClusters.'remote-cluster'.getAllTransportPortURI().get(0)}\"" }
|
||||
setting 'cluster.remote.connections_per_cluster', '1'
|
||||
setting 'xpack.security.enabled', 'false'
|
||||
}
|
||||
|
||||
tasks.register("integTest") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue