From e5456c1b82bf2b1c49283a5d560eb421a8a1bb55 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:55:14 -0400 Subject: [PATCH] [Fleet] Only expose minimum needed config to browser (#129619) (#129643) (cherry picked from commit 5a06e8f870cf55db72be176b1e7f1a642edc0d34) Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com> --- 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