Skip to content

Commit

Permalink
[8.x] [Security Solution] Change rule upgrade docs link (#211870) (#2…
Browse files Browse the repository at this point in the history
…11891)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Change rule upgrade docs link
(#211870)](#211870)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nikita
Indik","email":"nikita.indik@elastic.co"},"sourceCommit":{"committedDate":"2025-02-20T11:41:28Z","message":"[Security
Solution] Change rule upgrade docs link (#211870)\n\n**Resolves:
https://github.com/elastic/kibana/issues/208203**\n\n##
Summary\n\nUpdates rule upgrade doc links for ECH and
Serverless.\n\n<img\nsrc=\"https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ\"\n/>","sha":"10bec7fd50998a2e1ea14871f30faf8271161970","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] Change rule upgrade docs
link","number":211870,"url":"https://github.com/elastic/kibana/pull/211870","mergeCommit":{"message":"[Security
Solution] Change rule upgrade docs link (#211870)\n\n**Resolves:
https://github.com/elastic/kibana/issues/208203**\n\n##
Summary\n\nUpdates rule upgrade doc links for ECH and
Serverless.\n\n<img\nsrc=\"https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ\"\n/>","sha":"10bec7fd50998a2e1ea14871f30faf8271161970"}},"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/211870","number":211870,"mergeCommit":{"message":"[Security
Solution] Change rule upgrade docs link (#211870)\n\n**Resolves:
https://github.com/elastic/kibana/issues/208203**\n\n##
Summary\n\nUpdates rule upgrade doc links for ECH and
Serverless.\n\n<img\nsrc=\"https://private-user-images.githubusercontent.com/40713348/406468281-d3f82a32-c1c5-47a1-aee2-6a7c1db683a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwNDMwNzgsIm5iZiI6MTc0MDA0Mjc3OCwicGF0aCI6Ii80MDcxMzM0OC80MDY0NjgyODEtZDNmODJhMzItYzFjNS00N2ExLWFlZTItNmE3YzFkYjY4M2EzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjIwVDA5MTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzhmNGU2YTAyNDcwZDM2OWI0Mzc4N2U1ODYwNjRhMTZjZDdkZmMxMjZjZjQwZTRhOWQyN2U1ZTFjYTdhOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wj6-S4aNoOYkqdfF53TwikuNI14OwZlP8MOCTJsskXQ\"\n/>","sha":"10bec7fd50998a2e1ea14871f30faf8271161970"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nikita Indik <nikita.indik@elastic.co>
  • Loading branch information
kibanamachine and nikitaindik authored Feb 20, 2025
1 parent 834e54f commit 689c733
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
privileges: `${SECURITY_SOLUTION_DOCS}endpoint-management-req.html`,
manageDetectionRules: `${SECURITY_SOLUTION_DOCS}rules-ui-management.html`,
createDetectionRules: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html`,
updatePrebuiltDetectionRules: isServerless
? `${SERVERLESS_DOCS}security-prebuilt-rules-management.html#update-prebuilt-rules`
: `${SECURITY_SOLUTION_DOCS}prebuilt-rules-management.html#update-prebuilt-rules`,
createEsqlRuleType: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html#create-esql-rule`,
ruleUiAdvancedParams: `${SECURITY_SOLUTION_DOCS}rules-ui-create.html#rule-ui-advanced-params`,
entityAnalytics: {
Expand Down
1 change: 1 addition & 0 deletions src/platform/packages/shared/kbn-doc-links/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ export interface DocLinks {
readonly privileges: string;
readonly manageDetectionRules: string;
readonly createDetectionRules: string;
readonly updatePrebuiltDetectionRules: string;
readonly createEsqlRuleType: string;
readonly ruleUiAdvancedParams: string;
readonly entityAnalytics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,18 @@ export function RuleUpgradeHelper(): JSX.Element {
const {
docLinks: {
links: {
securitySolution: { manageDetectionRules },
securitySolution: { updatePrebuiltDetectionRules },
},
},
} = useKibana().services;
const manageDetectionRulesUpdateRulesSection = `${manageDetectionRules}#edit-rules-settings`;

return (
<FormattedMessage
id="xpack.securitySolution.detectionEngine.rules.upgradeRules.ruleUpgradeHelper"
defaultMessage="Understand how to&nbsp;{docsLink}."
values={{
docsLink: (
<EuiLink href={manageDetectionRulesUpdateRulesSection} target="_blank">
<EuiLink href={updatePrebuiltDetectionRules} target="_blank">
{UPGRADE_RULES_DOCS_LINK}
</EuiLink>
),
Expand Down

0 comments on commit 689c733

Please sign in to comment.