mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Security solution] Remove feature flag, always automatically install prompts (#224489)
This commit is contained in:
parent
e927fe55ba
commit
979d0ce0f2
4 changed files with 2 additions and 13 deletions
|
@ -58,4 +58,4 @@
|
|||
"name": "security_detection_engine",
|
||||
"version": "9.0.7"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -269,11 +269,6 @@ export const allowedExperimentalValues = Object.freeze({
|
|||
/** Enables new Data View Picker */
|
||||
newDataViewPickerEnabled: false,
|
||||
|
||||
/**
|
||||
* Automatically installs the security AI prompts package
|
||||
*/
|
||||
securityAIPromptsEnabled: false,
|
||||
|
||||
/**
|
||||
* Enables Microsoft Defender for Endpoint's RunScript RTR command
|
||||
* Release: 8.19/9.1
|
||||
|
|
|
@ -32,8 +32,6 @@ export const bootstrapPrebuiltRulesHandler = async (
|
|||
try {
|
||||
const ctx = await context.resolve(['securitySolution', 'alerting', 'core']);
|
||||
const securityContext = ctx.securitySolution;
|
||||
const config = securityContext.getConfig();
|
||||
const securityAIPromptsEnabled = config.experimentalFeatures.securityAIPromptsEnabled;
|
||||
|
||||
const savedObjectsClient = ctx.core.savedObjects.client;
|
||||
const detectionRulesClient = securityContext.getDetectionRulesClient();
|
||||
|
@ -74,9 +72,7 @@ export const bootstrapPrebuiltRulesHandler = async (
|
|||
});
|
||||
}
|
||||
|
||||
const securityAiPromptsResult = securityAIPromptsEnabled
|
||||
? await installSecurityAiPromptsPackage(config, securityContext)
|
||||
: null;
|
||||
const securityAiPromptsResult = await installSecurityAiPromptsPackage(securityContext);
|
||||
|
||||
if (securityAiPromptsResult !== null) {
|
||||
packageResults.push({
|
||||
|
|
|
@ -7,11 +7,9 @@
|
|||
|
||||
import { SECURITY_AI_PROMPTS_PACKAGE_NAME } from '../../../../../../common/detection_engine/constants';
|
||||
import type { SecuritySolutionApiRequestHandlerContext } from '../../../../../types';
|
||||
import type { ConfigType } from '../../../../../config';
|
||||
import { findLatestPackageVersion } from './find_latest_package_version';
|
||||
|
||||
export async function installSecurityAiPromptsPackage(
|
||||
config: ConfigType,
|
||||
context: SecuritySolutionApiRequestHandlerContext
|
||||
) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue