diff --git a/config/serverless.yml b/config/serverless.yml index f6e661c158f42..fc8ac64f1a09e 100644 --- a/config/serverless.yml +++ b/config/serverless.yml @@ -56,7 +56,6 @@ xpack.canvas.enabled: false xpack.cloud_integrations.data_migration.enabled: false data.search.sessions.enabled: false advanced_settings.enabled: false -xpack.screenshotting.enabled: false # Disable the browser-side functionality that depends on SecurityCheckupGetStateRoutes xpack.security.showInsecureClusterWarning: false @@ -141,3 +140,8 @@ xpack.task_manager.allow_reading_invalid_state: false ## TaskManager requeue invalid tasks, supports ZDT xpack.task_manager.requeue_invalid_tasks.enabled: true + +# Reporting feature +xpack.screenshotting.enabled: false +xpack.reporting.roles.enabled: false +xpack.reporting.statefulSettings.enabled: false \ No newline at end of file diff --git a/x-pack/plugins/reporting/server/config/create_config.ts b/x-pack/plugins/reporting/server/config/create_config.ts index 39a96354d24c5..54cd09a0a9ddd 100644 --- a/x-pack/plugins/reporting/server/config/create_config.ts +++ b/x-pack/plugins/reporting/server/config/create_config.ts @@ -44,10 +44,9 @@ export function createConfig( ipaddr.isValid(kibanaServerHostname) && !sum(ipaddr.parse(kibanaServerHostname).toByteArray()) ) { - logger.warn( - `Found 'server.host: "0.0.0.0"' in Kibana configuration. Reporting is not able to use this as the Kibana server hostname.` + - ` To enable PNG/PDF Reporting to work, 'xpack.reporting.kibanaServer.hostname: localhost' is automatically set in the configuration.` + - ` You can prevent this message by adding 'xpack.reporting.kibanaServer.hostname: localhost' in kibana.yml.` + logger.info( + `Overriding server host address "0.0.0.0" in Reporting runtime config,` + + ` using "xpack.reporting.kibanaServer.hostname: localhost".` ); kibanaServerHostname = 'localhost'; } diff --git a/x-pack/plugins/reporting/server/deprecations/reporting_role.test.ts b/x-pack/plugins/reporting/server/deprecations/reporting_role.test.ts index 168ac0e4906b4..6655927029056 100644 --- a/x-pack/plugins/reporting/server/deprecations/reporting_role.test.ts +++ b/x-pack/plugins/reporting/server/deprecations/reporting_role.test.ts @@ -134,6 +134,13 @@ describe('check deprecations when security is disabled', () => { expect(await getDeprecationsInfo(context, { reportingCore })).toMatchInlineSnapshot(`Array []`); }); + + test('logs no deprecations on serverless', async () => { + reportingCore = await createMockReportingCore( + createMockConfigSchema({ statefulSettings: { enabled: false } }) + ); + expect(await getDeprecationsInfo(context, { reportingCore })).toMatchInlineSnapshot(`Array []`); + }); }); it('insufficient permissions', async () => {