From 93852c98d9e9902fe166302fae10bc8c5f3502fb Mon Sep 17 00:00:00 2001 From: Pablo Machado Date: Mon, 5 Dec 2022 12:15:51 +0100 Subject: [PATCH] =?UTF-8?q?[8.5]=20Quick-fix=20Users=20can=E2=80=99t=20upg?= =?UTF-8?q?rade=20their=20clusters=20when=20`riskScore`=20experimental=20f?= =?UTF-8?q?eature=20is=20enabled=20(#146780)=20(#146973)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Backport This will backport the following commits from `main` to `8.5`: - [Quick-fix Users can’t upgrade their clusters when `riskScore` experimental feature is enabled (#146780)](https://github.com/elastic/kibana/pull/146780) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) \n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Pablo Machado "}},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146780","number":146780,"mergeCommit":{"message":"Quick-fix Users can’t upgrade their clusters when `riskScore` experimental feature is enabled (#146780)\n\nUsers can't upgrade their clusters when an old experimental feature is\r\nenabled.\r\n\r\nWhile we don't have a final solution for this issue, I am adding the\r\nexperimental flag configuration back to prevent users from having this\r\nfrustrating experience.\r\n\r\nQuick-fix for: https://github.com/elastic/kibana/issues/146777\r\nOriginal report:\r\nhttps://elastic.slack.com/archives/C6E3MTCD7/p1669236299374339\r\n\r\nFix\r\n```\r\nFATAL Error: [config validation of [xpack.securitySolution].enableExperimental]: [riskyUsersEnabled] is not allowed. Allowed values are: tGridEnabled, tGridEventRenderedViewEnabled, excludePoliciesInFilterEnabled, kubernetesEnabled, disableIsolationUIPendingStatuses, pendingActionResponsesWithAck, policyListEnabled, policyResponseInFleetEnabled, previewTelemetryUrlEnabled, responseActionsConsoleEnabled, insightsRelatedAlertsByProcessAncestry, extendedRuleExecutionLoggingEnabled, socTrendsEnabled, responseActionsEnabled\r\n```\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"c3d1d9ec284f81f3c5d713010e52cd9d4f09c39e"}}]}] BACKPORT--> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../security_solution/common/experimental_features.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/x-pack/plugins/security_solution/common/experimental_features.ts b/x-pack/plugins/security_solution/common/experimental_features.ts index fe65aab259395..cb1b6778884ea 100644 --- a/x-pack/plugins/security_solution/common/experimental_features.ts +++ b/x-pack/plugins/security_solution/common/experimental_features.ts @@ -59,6 +59,16 @@ export const allowedExperimentalValues = Object.freeze({ * Enables the detection response actions in rule + alerts */ responseActionsEnabled: true, + + /** + * Keep DEPRECATED experimental flags that are documented to prevent failed upgrades. + * https://www.elastic.co/guide/en/security/current/user-risk-score.html + * https://www.elastic.co/guide/en/security/current/host-risk-score.html + * + * Issue: https://github.com/elastic/kibana/issues/146777 + */ + riskyHostsEnabled: false, // DEPRECATED + riskyUsersEnabled: false, // DEPRECATED }); type ExperimentalConfigKeys = Array;