Skip to content

[8.x] [EDR Workflows][Serverless] Gate custom note (#193171)#194576

Merged
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-193171
Oct 1, 2024
Merged

[8.x] [EDR Workflows][Serverless] Gate custom note (#193171)#194576
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-193171

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

This PR implements tier-based gating for custom notification messages in
Protections. Only users on the Endpoint Complete tier will have the
ability to modify these messages, while users on the Endpoint Essentials
tier will no longer have this capability. If a user on the Essentials
tier had made any changes to custom notifications before this update,
those messages will be reset to the default ones.

The changes are applied in three areas:
1. UI - An upsell banner is displayed for Essentials users.
2. API - We now prevent API calls that attempt to set or modify custom
notification messages for Essentials users.
3. Policy Watcher - Upon Kibana startup (e.g., after a downgrade), we
validate all policies for tier compliance. If a policy contains a custom
notification message and the user is on the Essentials tier, the message
will be reset to the default.

![Screenshot 2024-09-20 at 14 32
52](https://github.com/user-attachments/assets/75739338-e32b-47da-934e-9948f44099ae)
![Screenshot 2024-09-20 at 14 33
21](https://github.com/user-attachments/assets/1af081eb-f75f-4c9d-8f01-df9a01f8f2b2)
![Screenshot 2024-09-20 at 14 33
40](https://github.com/user-attachments/assets/4c0014f5-89f0-48b6-88dc-cc4c2dba666a)
![Screenshot 2024-09-20 at 14 52
25](https://github.com/user-attachments/assets/202e5e1a-7c58-4af1-a85a-399c94313f0b)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit af1dc87)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Oct 1, 2024
@kibanamachine kibanamachine enabled auto-merge (squash) October 1, 2024 13:25
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 5928 5929 +1
securitySolutionServerless 143 144 +1
total +2

Async chunks

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

id before after diff
securitySolution 20.5MB 20.5MB +600.0B
securitySolutionServerless 119.2KB 132.6KB +13.5KB
total +14.1KB

Page load bundle

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

id before after diff
securitySolutionServerless 21.6KB 21.9KB +288.0B
Unknown metric groups

async chunk count

id before after diff
securitySolutionServerless 14 15 +1

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @szwarckonrad

@kibanamachine kibanamachine merged commit 4a1a04b into elastic:8.x Oct 1, 2024
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