From 4982ccfcb9ff341bb6229c150b184e15535b458d Mon Sep 17 00:00:00 2001 From: kobelb Date: Mon, 5 Oct 2020 15:58:49 -0700 Subject: [PATCH] Adding comment for why `x-elastic-product-origin` exists --- src/core/server/elasticsearch/default_headers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/server/elasticsearch/default_headers.ts b/src/core/server/elasticsearch/default_headers.ts index 61be0cacbb805..4cc4b4b2507c4 100644 --- a/src/core/server/elasticsearch/default_headers.ts +++ b/src/core/server/elasticsearch/default_headers.ts @@ -20,5 +20,8 @@ import { deepFreeze } from '@kbn/std'; export const DEFAULT_HEADERS = deepFreeze({ + // Elasticsearch uses this to identify when a request is coming from Kibana, to allow Kibana to + // access system indices using the standard ES APIs without logging a warning. After migrating to + // use the new system index APIs, this header can be removed. 'x-elastic-product-origin': 'kibana', });