Spaces settings in Kibanaedit

By default, spaces is enabled in Kibana. To secure spaces, enable security.

xpack.spaces.enabled
[7.16.0] Deprecated in 7.16.0. In 8.0 and later, this setting will no longer be supported and it will not be possible to disable this plugin. To enable spaces, set to true. The default is true.
xpack.spaces.maxSpaces
The maximum number of spaces that you can use with the Kibana instance. Some Kibana operations return all spaces using a single _search from Elasticsearch, so you must configure this setting lower than the index.max_result_window in Elasticsearch. The default is 1000.