-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solutions] Add PLI authorisation for Advanced Insights (Entity Risk) #161190
Conversation
278be5d
to
e5b3c8d
Compare
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
56aa297
to
5944cf2
Compare
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But Left a comment regarding the risk score
tabs.
if (RiskScoreUpsell) { | ||
return <RiskScoreUpsell />; | ||
if (!isAuthorized) { | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it makes sense to hide the complete Tab itself till we have the upsell design ? Empty Tab feels like an error.
I noticed that in ESS when we have basic
license, we remove the tab completely. Shouldn't we follow the same pattern in serverless as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left the tab there so it is easier for those who add the Upsell component. And it also feels like a waste to add extra code for hiding the tab that will be deleted very soon. But I understand your point. It would be more consistent while we don't have the Upsell component. As a compromise, I added a TODO message.
58e5a5a
to
29a89b3
Compare
29a89b3
to
1563bcb
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @machadoum |
…ity Risk) (elastic#161190) ## Summary Add PLI authorization checks for Entity Analytics features. *This PR only restricts access to the features* but doesn't implement PLG/Upselling. It will be added later when we have defined the UX for it. The `advancedInsights` PLI was already configured, so I only had to add extra checks to make sure users can't see the Risk score on other components. Updated components: * "All hosts" table on the Hosts page * "All users" table on the Users page * Host overview on the Host details page and Host details flyout * User overview on the User details page and User details flyout * Alerts flyout * Remove sample Upselling components config ### Not included * Upselling/PLG * I left empty tabs/pages where the Upselling component will be added ### How to test it? #### ESS * Run ESS with a basic license * Run ESS with a platinum #### Serverless * Run Serverless with security essentials (serverless.security.yml) ``` xpack.serverless.security.productTypes: [ { product_line: 'security', product_tier: 'essentials' } ] ``` * Run Serverless with security complete (kibana/config/serverless.security.yml) ``` xpack.serverless.security.productTypes: [ { product_line: 'security', product_tier: 'complete' }, ] ``` https://github.com/elastic/kibana/assets/1490444/1ab84134-bee1-497c-9b41-a9ec398bd921 ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]>
Summary
Add PLI authorization checks for Entity Analytics features.
This PR only restricts access to the features but doesn't implement PLG/Upselling. It will be added later when we have defined the UX for it.
The
advancedInsights
PLI was already configured, so I only had to add extra checks to make sure users can't see the Risk score on other components.Updated components:
Not included
How to test it?
ESS
Serverless
risk.score.PLI.mp4
Checklist
Delete any items that are not applicable to this PR.