diff --git a/docs/setup/settings.asciidoc b/docs/setup/settings.asciidoc index 613caabf1f7b2..461146364382b 100644 --- a/docs/setup/settings.asciidoc +++ b/docs/setup/settings.asciidoc @@ -390,6 +390,11 @@ Rollup user interface. `i18n.locale`:: *Default: en* Set this value to change the Kibana interface language. Valid locales are: `en`, `zh-CN`, `ja-JP`. +`xpack.actions.whitelistedHosts:`:: *Default: +[ {asterisk} ]+* Set this value +to an array of host names which actions such as email, slack, pagerduty, and +webhook can connect to. An element of `*` indicates any host can be connected +to. An empty array indicates no hosts can be connected to. + include::{docdir}/settings/apm-settings.asciidoc[] include::{docdir}/settings/dev-settings.asciidoc[] diff --git a/x-pack/legacy/plugins/actions/index.ts b/x-pack/legacy/plugins/actions/index.ts index 98d4d9f84a729..7c539f74924cb 100644 --- a/x-pack/legacy/plugins/actions/index.ts +++ b/x-pack/legacy/plugins/actions/index.ts @@ -41,7 +41,7 @@ export function actions(kibana: any) { .allow('*') ) .sparse(false) - .default([]), + .default(['*']), }) .default(); }, diff --git a/x-pack/test/alerting_api_integration/common/config.ts b/x-pack/test/alerting_api_integration/common/config.ts index 1bfc50e4c83db..3a2cdb5397ad8 100644 --- a/x-pack/test/alerting_api_integration/common/config.ts +++ b/x-pack/test/alerting_api_integration/common/config.ts @@ -53,12 +53,10 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions) ...xPackApiIntegrationTestsConfig.get('kbnTestServer'), serverArgs: [ ...xPackApiIntegrationTestsConfig.get('kbnTestServer.serverArgs'), - '--xpack.actions.enabled=true', `--xpack.actions.whitelistedHosts=${JSON.stringify([ 'localhost', 'some.non.existent.com', ])}`, - '--xpack.alerting.enabled=true', ...disabledPlugins.map(key => `--xpack.${key}.enabled=false`), `--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'alerts')}`, `--plugin-path=${path.join(__dirname, 'fixtures', 'plugins', 'actions')}`,