Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ResponseOps][Rules] Fix case action templates in stack for sec…
…urity serverless (#195763) (#196110) # Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps][Rules] Fix case action templates in stack for security serverless (#195763)](#195763) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Antonio","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-14T11:25:29Z","message":"[ResponseOps][Rules] Fix case action templates in stack for security serverless (#195763)\n\nFixes #195599\r\n\r\n## Summary\r\n\r\nThis PR ensures that we can use templates in the case action when:\r\n1. the project is serverless security, and\r\n2. the rule is created in stack management\r\n\r\n### How to test\r\n\r\n1. Add the following line to `serverless.yml` -\r\n`xpack.cloud.serverless.project_id: test-123`\r\n3. Start Elastic search in serverless security mode - `yarn es\r\nserverless --projectType security`\r\n4. Start Kibana in serverless security mode - `yarn start\r\n--serverless=security`\r\n5. Go to Security > Cases > Settings and add a template.\r\n6. Go to stack and create a rule with the case action.\r\n7. Confirm the template created in step 5 can be selected.\r\n\r\n<img width=\"586\" alt=\"Screenshot 2024-10-10 at 15 00 46\"\r\nsrc=\"https://github.com/user-attachments/assets/5379e1d1-f0eb-4829-9604-ee5a0e3d050b\">\r\n\r\n**Please double-check also that the templates in the case action still\r\nwork as expected in normal scenarios.**\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"97322a871357ba69e7c64543831fbf1597ca8ff9","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-minor","v8.16.0"],"title":"[ResponseOps][Rules] Fix case action templates in stack for security serverless","number":195763,"url":"https://github.com/elastic/kibana/pull/195763","mergeCommit":{"message":"[ResponseOps][Rules] Fix case action templates in stack for security serverless (#195763)\n\nFixes #195599\r\n\r\n## Summary\r\n\r\nThis PR ensures that we can use templates in the case action when:\r\n1. the project is serverless security, and\r\n2. the rule is created in stack management\r\n\r\n### How to test\r\n\r\n1. Add the following line to `serverless.yml` -\r\n`xpack.cloud.serverless.project_id: test-123`\r\n3. Start Elastic search in serverless security mode - `yarn es\r\nserverless --projectType security`\r\n4. Start Kibana in serverless security mode - `yarn start\r\n--serverless=security`\r\n5. Go to Security > Cases > Settings and add a template.\r\n6. Go to stack and create a rule with the case action.\r\n7. Confirm the template created in step 5 can be selected.\r\n\r\n<img width=\"586\" alt=\"Screenshot 2024-10-10 at 15 00 46\"\r\nsrc=\"https://github.com/user-attachments/assets/5379e1d1-f0eb-4829-9604-ee5a0e3d050b\">\r\n\r\n**Please double-check also that the templates in the case action still\r\nwork as expected in normal scenarios.**\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"97322a871357ba69e7c64543831fbf1597ca8ff9"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195763","number":195763,"mergeCommit":{"message":"[ResponseOps][Rules] Fix case action templates in stack for security serverless (#195763)\n\nFixes #195599\r\n\r\n## Summary\r\n\r\nThis PR ensures that we can use templates in the case action when:\r\n1. the project is serverless security, and\r\n2. the rule is created in stack management\r\n\r\n### How to test\r\n\r\n1. Add the following line to `serverless.yml` -\r\n`xpack.cloud.serverless.project_id: test-123`\r\n3. Start Elastic search in serverless security mode - `yarn es\r\nserverless --projectType security`\r\n4. Start Kibana in serverless security mode - `yarn start\r\n--serverless=security`\r\n5. Go to Security > Cases > Settings and add a template.\r\n6. Go to stack and create a rule with the case action.\r\n7. Confirm the template created in step 5 can be selected.\r\n\r\n<img width=\"586\" alt=\"Screenshot 2024-10-10 at 15 00 46\"\r\nsrc=\"https://github.com/user-attachments/assets/5379e1d1-f0eb-4829-9604-ee5a0e3d050b\">\r\n\r\n**Please double-check also that the templates in the case action still\r\nwork as expected in normal scenarios.**\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"97322a871357ba69e7c64543831fbf1597ca8ff9"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Antonio <[email protected]>
- Loading branch information