mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[9.0] [Security Solution] Adds check for license level for rule editing callout message (#213995) (#214199)
# Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution] Adds check for license level for rule editing callout message (#213995)](https://github.com/elastic/kibana/pull/213995) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Davis Plumlee","email":"56367316+dplumlee@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-12T15:03:38Z","message":"[Security Solution] Adds check for license level for rule editing callout message (#213995)\n\n## Summary\n\nResolves https://github.com/elastic/kibana/issues/213983\n\nAdds gating logic to only display the rule upgrade related warning\ncallout on the rule editing page if the user has the appropriate license\nlevel, otherwise the message is irrelevant as the user wouldn't be able\nto edit a prebuilt rule in the way the message refers to\n\n### Testing\n\n**Steps to reproduce:**\n\n1. Use a Platinum license or any tier that does not allow prebuilt rule\nupdates.\n2. Navigate to the Rule Management page and select a prebuilt rule with\nan available update.\n3. Open Rule Details page -> Edit rule settings\n4. Observe the callout message is not displayed at the top of the page\n\nNOTE: When using the enterprise license, the callout should still be\ndisplayed","sha":"0485578022006a183c5d0db1dd3a404ba2bff015","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security Solution] Adds check for license level for rule editing callout message","number":213995,"url":"https://github.com/elastic/kibana/pull/213995","mergeCommit":{"message":"[Security Solution] Adds check for license level for rule editing callout message (#213995)\n\n## Summary\n\nResolves https://github.com/elastic/kibana/issues/213983\n\nAdds gating logic to only display the rule upgrade related warning\ncallout on the rule editing page if the user has the appropriate license\nlevel, otherwise the message is irrelevant as the user wouldn't be able\nto edit a prebuilt rule in the way the message refers to\n\n### Testing\n\n**Steps to reproduce:**\n\n1. Use a Platinum license or any tier that does not allow prebuilt rule\nupdates.\n2. Navigate to the Rule Management page and select a prebuilt rule with\nan available update.\n3. Open Rule Details page -> Edit rule settings\n4. Observe the callout message is not displayed at the top of the page\n\nNOTE: When using the enterprise license, the callout should still be\ndisplayed","sha":"0485578022006a183c5d0db1dd3a404ba2bff015"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213995","number":213995,"mergeCommit":{"message":"[Security Solution] Adds check for license level for rule editing callout message (#213995)\n\n## Summary\n\nResolves https://github.com/elastic/kibana/issues/213983\n\nAdds gating logic to only display the rule upgrade related warning\ncallout on the rule editing page if the user has the appropriate license\nlevel, otherwise the message is irrelevant as the user wouldn't be able\nto edit a prebuilt rule in the way the message refers to\n\n### Testing\n\n**Steps to reproduce:**\n\n1. Use a Platinum license or any tier that does not allow prebuilt rule\nupdates.\n2. Navigate to the Rule Management page and select a prebuilt rule with\nan available update.\n3. Open Rule Details page -> Edit rule settings\n4. Observe the callout message is not displayed at the top of the page\n\nNOTE: When using the enterprise license, the callout should still be\ndisplayed","sha":"0485578022006a183c5d0db1dd3a404ba2bff015"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
This commit is contained in:
parent
1dfa80d74c
commit
f2225e020f
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ const EditRulePageComponent: FC<{ rule: RuleResponse }> = ({ rule }) => {
|
|||
setIsRulePreviewVisible={setIsRulePreviewVisible}
|
||||
togglePanel={togglePanel}
|
||||
/>
|
||||
{upgradeCallout}
|
||||
{isRulesCustomizationEnabled && upgradeCallout}
|
||||
{invalidSteps.length > 0 && (
|
||||
<EuiCallOut title={i18n.SORRY_ERRORS} color="danger" iconType="warning">
|
||||
<FormattedMessage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue