[Security solution] Remove feature flag, always automatically install prompts (#224489)

This commit is contained in:
Steph Milovic 2025-06-24 11:26:32 -06:00 committed by GitHub
parent e927fe55ba
commit 979d0ce0f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 13 deletions

View file

@ -58,4 +58,4 @@
"name": "security_detection_engine", "name": "security_detection_engine",
"version": "9.0.7" "version": "9.0.7"
} }
] ]

View file

@ -269,11 +269,6 @@ export const allowedExperimentalValues = Object.freeze({
/** Enables new Data View Picker */ /** Enables new Data View Picker */
newDataViewPickerEnabled: false, newDataViewPickerEnabled: false,
/**
* Automatically installs the security AI prompts package
*/
securityAIPromptsEnabled: false,
/** /**
* Enables Microsoft Defender for Endpoint's RunScript RTR command * Enables Microsoft Defender for Endpoint's RunScript RTR command
* Release: 8.19/9.1 * Release: 8.19/9.1

View file

@ -32,8 +32,6 @@ export const bootstrapPrebuiltRulesHandler = async (
try { try {
const ctx = await context.resolve(['securitySolution', 'alerting', 'core']); const ctx = await context.resolve(['securitySolution', 'alerting', 'core']);
const securityContext = ctx.securitySolution; const securityContext = ctx.securitySolution;
const config = securityContext.getConfig();
const securityAIPromptsEnabled = config.experimentalFeatures.securityAIPromptsEnabled;
const savedObjectsClient = ctx.core.savedObjects.client; const savedObjectsClient = ctx.core.savedObjects.client;
const detectionRulesClient = securityContext.getDetectionRulesClient(); const detectionRulesClient = securityContext.getDetectionRulesClient();
@ -74,9 +72,7 @@ export const bootstrapPrebuiltRulesHandler = async (
}); });
} }
const securityAiPromptsResult = securityAIPromptsEnabled const securityAiPromptsResult = await installSecurityAiPromptsPackage(securityContext);
? await installSecurityAiPromptsPackage(config, securityContext)
: null;
if (securityAiPromptsResult !== null) { if (securityAiPromptsResult !== null) {
packageResults.push({ packageResults.push({

View file

@ -7,11 +7,9 @@
import { SECURITY_AI_PROMPTS_PACKAGE_NAME } from '../../../../../../common/detection_engine/constants'; import { SECURITY_AI_PROMPTS_PACKAGE_NAME } from '../../../../../../common/detection_engine/constants';
import type { SecuritySolutionApiRequestHandlerContext } from '../../../../../types'; import type { SecuritySolutionApiRequestHandlerContext } from '../../../../../types';
import type { ConfigType } from '../../../../../config';
import { findLatestPackageVersion } from './find_latest_package_version'; import { findLatestPackageVersion } from './find_latest_package_version';
export async function installSecurityAiPromptsPackage( export async function installSecurityAiPromptsPackage(
config: ConfigType,
context: SecuritySolutionApiRequestHandlerContext context: SecuritySolutionApiRequestHandlerContext
) { ) {
try { try {