From 184456bd4cbe532a03a69a05add4face1343864b Mon Sep 17 00:00:00 2001 From: Josh Dover <1813008+joshdover@users.noreply.github.com> Date: Wed, 6 Apr 2022 20:15:12 +0200 Subject: [PATCH] [Fleet] Only expose minimum needed config to browser (#129619) (cherry picked from commit 5a06e8f870cf55db72be176b1e7f1a642edc0d34) --- x-pack/plugins/fleet/server/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/fleet/server/index.ts b/x-pack/plugins/fleet/server/index.ts index 47b94103c65fa..efeac499bf953 100644 --- a/x-pack/plugins/fleet/server/index.ts +++ b/x-pack/plugins/fleet/server/index.ts @@ -47,7 +47,9 @@ const DEFAULT_BUNDLED_PACKAGE_LOCATION = path.join(__dirname, '../target/bundled export const config: PluginConfigDescriptor = { exposeToBrowser: { epm: true, - agents: true, + agents: { + enabled: true, + }, }, deprecations: ({ renameFromRoot, unused, unusedFromRoot }) => [ // Unused settings before Fleet server exists