From e294ce9c0085eb17da97e7e85d577949b788baa0 Mon Sep 17 00:00:00 2001 From: Sander Philipse <94373878+sphilipse@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:19:34 +0200 Subject: [PATCH] [8.x] Allow elasticsearch.publicBaseUrl to be set using an environment variable (#193716) (#193860) # Backport This will backport the following commits from `main` to `8.x`: - [Allow elasticsearch.publicBaseUrl to be set using an environment variable (#193716)](https://github.com/elastic/kibana/pull/193716) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- .../docker_generator/resources/base/bin/kibana-docker | 1 + x-pack/plugins/cloud/public/types.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker b/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker index 841be2f775336..110ca72895e86 100755 --- a/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker +++ b/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker @@ -64,6 +64,7 @@ kibana_vars=( elasticsearch.logQueries elasticsearch.password elasticsearch.pingTimeout + elasticsearch.publicBaseUrl elasticsearch.requestHeadersWhitelist elasticsearch.requestTimeout elasticsearch.serviceAccountToken diff --git a/x-pack/plugins/cloud/public/types.ts b/x-pack/plugins/cloud/public/types.ts index 1428e887f1b9f..2a6140ba8e97e 100644 --- a/x-pack/plugins/cloud/public/types.ts +++ b/x-pack/plugins/cloud/public/types.ts @@ -228,7 +228,7 @@ export interface CloudSetup { export interface PublicElasticsearchConfigType { /** - * The URL to the Elasticsearch cluster, derived from xpack.elasticsearch.publicBaseUrl if populated + * The URL to the Elasticsearch cluster, derived from elasticsearch.publicBaseUrl if populated * Otherwise this is based on the cloudId * If neither is populated, this will be undefined */