mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -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
|
@ -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
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue