From 20c858432d4a4d6a7305b1623fb32564930e4fb9 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 22083e5c2ed37..2c7e90fa63de6 100644 --- a/x-pack/plugins/fleet/server/index.ts +++ b/x-pack/plugins/fleet/server/index.ts @@ -41,7 +41,9 @@ export { AgentNotFoundError } from './errors'; export const config: PluginConfigDescriptor = { exposeToBrowser: { epm: true, - agents: true, + agents: { + enabled: true, + }, }, deprecations: ({ deprecate, renameFromRoot, unused, unusedFromRoot }) => [ deprecate('enabled', '8.0.0'),