This is the xpack side of https://github.com/elastic/elasticsearch/pull/25127 Original commit: elastic/x-pack-elasticsearch@e25bd90825
Original commit: elastic/x-pack-elasticsearch@e54aa1fd0a