diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts index c4b8789543649..8b8a6b3bef55b 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/fleet/route.ts @@ -36,7 +36,13 @@ function throwNotFoundIfFleetMigrationNotAvailable(featureFlags: ApmFeatureFlags const hasFleetDataRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/fleet/has_apm_policies', - options: { tags: [] }, + security: { + authz: { + enabled: false, + reason: + "It's being used in the tutorial page, so it needs to be available for users even if they don't have APM permissions.", + }, + }, handler: async ({ core, plugins }): Promise<{ hasApmPolicies: boolean }> => { const fleetPluginStart = await plugins.fleet?.start(); if (!fleetPluginStart) { @@ -53,7 +59,13 @@ const hasFleetDataRoute = createApmServerRoute({ const fleetAgentsRoute = createApmServerRoute({ endpoint: 'GET /internal/apm/fleet/agents', - options: { tags: [] }, + security: { + authz: { + enabled: false, + reason: + "It's being used in the tutorial page, so it needs to be available for users even if they don't have APM permissions.", + }, + }, handler: async ({ core, plugins }): Promise => { return getFleetAgents({ coreStart: await core.start(), @@ -182,7 +194,13 @@ const createCloudApmPackagePolicyRoute = createApmServerRoute({ const javaAgentVersions = createApmServerRoute({ endpoint: 'GET /internal/apm/fleet/java_agent_versions', - options: { tags: [] }, + security: { + authz: { + enabled: false, + reason: + 'It returns static information stored in a public file in https://repo1.maven.org/maven2/co/elastic/apm/elastic-apm-agent/maven-metadata.xml', + }, + }, handler: async (): Promise<{ versions: string[] | undefined }> => { const versions = await getJavaAgentVersionsFromRegistry(); return {