Skip to content

Commit

Permalink
Adding comment for why x-elastic-product-origin exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed Oct 5, 2020
1 parent b11e5ce commit 4982ccf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/server/elasticsearch/default_headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});

0 comments on commit 4982ccf

Please sign in to comment.