|
| 1 | +/* |
| 2 | + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one |
| 3 | + * or more contributor license agreements. Licensed under the "Elastic License |
| 4 | + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side |
| 5 | + * Public License v 1"; you may not use this file except in compliance with, at |
| 6 | + * your election, the "Elastic License 2.0", the "GNU Affero General Public |
| 7 | + * License v3.0 only", or the "Server Side Public License, v 1". |
| 8 | + */ |
| 9 | + |
| 10 | +import { servers as evalsTracingConfig } from '../../evals_tracing/stateful/classic.stateful.config'; |
| 11 | +import type { ScoutServerConfig } from '../../../../../types'; |
| 12 | + |
| 13 | +/** |
| 14 | + * Custom Scout stateful server configuration for Threat Intel enrichment evals. |
| 15 | + * |
| 16 | + * Extends the tracing config (EIS connectors + eval tracing) and: |
| 17 | + * - Enables the `threatIntelSupplyEnabled` experimental feature flag so the |
| 18 | + * `/internal/threat_intel/*` enrichment routes are registered. |
| 19 | + * - Disables `searchInferenceEndpoints` so `resolveScopedModel` takes its |
| 20 | + * `genAiSettings:defaultAIConnector` fallback path. The suite points that |
| 21 | + * setting at the per-project connector, which is how each model in the |
| 22 | + * EIS/LiteLLM matrix actually gets exercised. With the registry present the |
| 23 | + * route would deliberately refuse the global-default fallback and return a |
| 24 | + * no_connector error. |
| 25 | + * |
| 26 | + * Usage: |
| 27 | + * node scripts/scout start-server --arch stateful --domain classic --serverConfigSet evals_threat_intel |
| 28 | + */ |
| 29 | +export const servers: ScoutServerConfig = { |
| 30 | + ...evalsTracingConfig, |
| 31 | + kbnTestServer: { |
| 32 | + ...evalsTracingConfig.kbnTestServer, |
| 33 | + serverArgs: [ |
| 34 | + ...evalsTracingConfig.kbnTestServer.serverArgs, |
| 35 | + `--xpack.securitySolution.enableExperimental=${JSON.stringify(['threatIntelSupplyEnabled'])}`, |
| 36 | + '--xpack.searchInferenceEndpoints.enabled=false', |
| 37 | + ], |
| 38 | + }, |
| 39 | +}; |
0 commit comments