Skip to content

Comments

[8.19] [Response Ops] Fix cases action owner on o11y serverless project (#224537)#225689

Merged
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-224537
Jun 27, 2025
Merged

[8.19] [Response Ops] Fix cases action owner on o11y serverless project (#224537)#225689
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-224537

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…stic#224537)

## Summary

Serverless observability project would throw when creating a rule with a
system case action.

`Action 'system-connector-.cases' failed: an error occurred while
running the action: Failed to bulk create cases: Error: Unauthorized to
create case with owners: "cases"`

To fix it, we set the owner to be the serverless project type and if
serverless but unknown, we default the owner to "cases"

### How to test

1. Start ES with cloud projectId flag like this: `yarn es serverless
--projectType=oblt -E xpack.cloud.serverless.project_id: test-123`
2. Go to management rules page by searching for `rules` in the top
searchbar

![image](https://github.com/user-attachments/assets/d0df7cf4-74e6-4e7d-86b0-3871614116d2)

3. Create a stack rule (index threshold) and add the cases action
4. When an alert is triggered confirm you can view the case in the cases
page

---------

Co-authored-by: Christos Nasikas <xristosnasikas@gmail.com>
(cherry picked from commit 1914673)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jun 27, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) June 27, 2025 17:32
@kibanamachine kibanamachine merged commit 194ab1e into elastic:8.19 Jun 27, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #54 / Rule execution logic API - Basic License/Essentials Tier @ess @serverless @serverlessQA timestamp tests alerts generated from events with timestamp override field KQL should generate 2 alerts with @timestamp

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cases 1.3MB 1.3MB -23.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cases 161.2KB 161.4KB +145.0B

cc @jcger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants