See elastic/elasticsearchelastic/elasticsearch#13930 Original commit: elastic/x-pack-elasticsearch@b8d26ebd2a