Skip to content

Commit 8f1ca12

Browse files
[9.0] [Security Solution] Show banner to promote prebuilt rule customization in both Serverless and ESS (#218540) (#218596)
# Backport This will backport the following commits from `main` to `9.0`: - [[Security Solution] Show banner to promote prebuilt rule customization in both Serverless and ESS (#218540)](#218540) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Nikita Indik","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-17T17:11:47Z","message":"[Security Solution] Show banner to promote prebuilt rule customization in both Serverless and ESS (#218540)\n\n**Resolves: https://github.com/elastic/kibana/issues/209000**\n**Related PR: https://github.com/elastic/kibana/pull/213750**\n\n## Summary\n\nThis PR updates the code to show a promo banner in the rules table. With\nthis change, this banner will be shown in both ESS (8.18+) and\nServerless. Previously it was shown only in ESS. In both ESS and\nServerless the blog link is the same – this is expected and correct.\n\nWe couldn't add a banner for Serverless earlier, because the blog post\nwas published on the 8.18/9.0 release day. If we would have added it\nearlier, Serverless users would click on a link at get a 404 page.\n\nExpected behaviour for both ESS and Serverless:\n - Banner is visible above the rules table\n- The link leads to\nhttps://www.elastic.co/blog/security-prebuilt-rules-editing\n\n<img width=\"1006\" alt=\"Scherm­afbeelding 2025-03-11 om 12 25 45\"\nsrc=\"https://github.com/user-attachments/assets/41d83db9-4bc4-433e-a7e2-c5ef1049a20c\"\n/>\n\n**Changes:**\n- Adds a rule management table banner to promote prebuilt rule\ncustomization in Serverless. Previously this banner was only shown in\nESS. Banner is dismissible. Its state is stored in localStorage.\n- Tweaks banner wording a bit as per docs suggestion\n([comment](https://github.com/elastic/kibana/pull/213750/files#r1989313701))","sha":"40a91594350a02d6756caf78c7e337df65a48ecf","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v9.1.0","v8.19.0","v8.18.1","v9.0.1"],"title":"[Security Solution] Show banner to promote prebuilt rule customization in both Serverless and ESS","number":218540,"url":"https://github.com/elastic/kibana/pull/218540","mergeCommit":{"message":"[Security Solution] Show banner to promote prebuilt rule customization in both Serverless and ESS (#218540)\n\n**Resolves: https://github.com/elastic/kibana/issues/209000**\n**Related PR: https://github.com/elastic/kibana/pull/213750**\n\n## Summary\n\nThis PR updates the code to show a promo banner in the rules table. With\nthis change, this banner will be shown in both ESS (8.18+) and\nServerless. Previously it was shown only in ESS. In both ESS and\nServerless the blog link is the same – this is expected and correct.\n\nWe couldn't add a banner for Serverless earlier, because the blog post\nwas published on the 8.18/9.0 release day. If we would have added it\nearlier, Serverless users would click on a link at get a 404 page.\n\nExpected behaviour for both ESS and Serverless:\n - Banner is visible above the rules table\n- The link leads to\nhttps://www.elastic.co/blog/security-prebuilt-rules-editing\n\n<img width=\"1006\" alt=\"Scherm­afbeelding 2025-03-11 om 12 25 45\"\nsrc=\"https://github.com/user-attachments/assets/41d83db9-4bc4-433e-a7e2-c5ef1049a20c\"\n/>\n\n**Changes:**\n- Adds a rule management table banner to promote prebuilt rule\ncustomization in Serverless. Previously this banner was only shown in\nESS. Banner is dismissible. Its state is stored in localStorage.\n- Tweaks banner wording a bit as per docs suggestion\n([comment](https://github.com/elastic/kibana/pull/213750/files#r1989313701))","sha":"40a91594350a02d6756caf78c7e337df65a48ecf"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218540","number":218540,"mergeCommit":{"message":"[Security Solution] Show banner to promote prebuilt rule customization in both Serverless and ESS (#218540)\n\n**Resolves: https://github.com/elastic/kibana/issues/209000**\n**Related PR: https://github.com/elastic/kibana/pull/213750**\n\n## Summary\n\nThis PR updates the code to show a promo banner in the rules table. With\nthis change, this banner will be shown in both ESS (8.18+) and\nServerless. Previously it was shown only in ESS. In both ESS and\nServerless the blog link is the same – this is expected and correct.\n\nWe couldn't add a banner for Serverless earlier, because the blog post\nwas published on the 8.18/9.0 release day. If we would have added it\nearlier, Serverless users would click on a link at get a 404 page.\n\nExpected behaviour for both ESS and Serverless:\n - Banner is visible above the rules table\n- The link leads to\nhttps://www.elastic.co/blog/security-prebuilt-rules-editing\n\n<img width=\"1006\" alt=\"Scherm­afbeelding 2025-03-11 om 12 25 45\"\nsrc=\"https://github.com/user-attachments/assets/41d83db9-4bc4-433e-a7e2-c5ef1049a20c\"\n/>\n\n**Changes:**\n- Adds a rule management table banner to promote prebuilt rule\ncustomization in Serverless. Previously this banner was only shown in\nESS. Banner is dismissible. Its state is stored in localStorage.\n- Tweaks banner wording a bit as per docs suggestion\n([comment](https://github.com/elastic/kibana/pull/213750/files#r1989313701))","sha":"40a91594350a02d6756caf78c7e337df65a48ecf"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Nikita Indik <[email protected]>
1 parent de1b09a commit 8f1ca12

File tree

3 files changed

+3
-6
lines changed
  • src/platform/packages/shared/kbn-doc-links/src
  • x-pack/solutions/security/plugins/security_solution/public/detections/components/callouts/blog_post_prebuilt_rule_customization_callout

3 files changed

+3
-6
lines changed

src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
450450
updatePrebuiltDetectionRules: isServerless
451451
? `${SERVERLESS_DOCS}security-prebuilt-rules-management.html#update-prebuilt-rules`
452452
: `${SECURITY_SOLUTION_DOCS}prebuilt-rules-management.html#update-prebuilt-rules`,
453-
prebuiltRuleCustomizationPromoBlog: isServerless
454-
? '' // URL for Serverless to be added later, once the blog post is published. Issue: https://github.com/elastic/kibana/issues/209000
455-
: `${ELASTIC_WEBSITE_URL}blog/security-prebuilt-rules-editing`,
453+
prebuiltRuleCustomizationPromoBlog: `${ELASTIC_WEBSITE_URL}blog/security-prebuilt-rules-editing`,
456454
createEsqlRuleType: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html#create-esql-rule`,
457455
ruleUiAdvancedParams: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html#rule-ui-advanced-params`,
458456
entityAnalytics: {

x-pack/solutions/security/plugins/security_solution/public/detections/components/callouts/blog_post_prebuilt_rule_customization_callout/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { useKibana } from '../../../../common/lib/kibana';
1515
import { BackgroundImageCallout } from '../background_image_callout';
1616

1717
export function BlogPostPrebuiltRuleCustomizationCallout() {
18-
// URL is currently only available in ESS. So we are only showing this callout in ESS for now.
1918
const blogPostUrl =
2019
useKibana().services.docLinks.links.securitySolution.prebuiltRuleCustomizationPromoBlog;
2120

@@ -43,7 +42,7 @@ export function BlogPostPrebuiltRuleCustomizationCallout() {
4342
dismiss(calloutMessage);
4443
}, [dismiss, calloutMessage]);
4544

46-
if (blogPostUrl && isVisible(calloutMessage)) {
45+
if (isVisible(calloutMessage)) {
4746
return (
4847
<>
4948
<BackgroundImageCallout

x-pack/solutions/security/plugins/security_solution/public/detections/components/callouts/blog_post_prebuilt_rule_customization_callout/translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const CALLOUT_DESCRIPTION = i18n.translate(
1818
'xpack.securitySolution.detectionEngine.blogPostPrebuiltRuleCustomizationCallout.calloutDescription',
1919
{
2020
defaultMessage:
21-
'Learn how to customize prebuilt rules and update them with the latest improvements.',
21+
'Learn how to customize prebuilt rules and update them to get the latest improvements.',
2222
}
2323
);
2424

0 commit comments

Comments
 (0)