-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Improve home screen for limited-access users #77665
Improve home screen for limited-access users #77665
Conversation
8db8ad0
to
831a63c
Compare
b7b0e0b
to
2716cfb
Compare
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-security (Team:Security) |
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.
SR and ILM changes LGTM.
ACK: will review today |
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.
LGTM, thanks for adding tests!
@@ -13,7 +13,15 @@ import { UserAtSpaceScenarios } from '../scenarios'; | |||
export default function catalogueTests({ getService }: FtrProviderContext) { | |||
const uiCapabilitiesService: UICapabilitiesService = getService('uiCapabilities'); | |||
|
|||
const esFeatureExceptions = ['security', 'rollup_jobs', 'reporting', 'transform', 'watcher']; | |||
const esFeatureExceptions = [ |
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.
question: just for my own education, is this a list of features that depend on specific ES cluster privileges?
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.
Yes, these are what I'm calling "Elasticsearch Features", which are governed by cluster and/or index privileges as opposed to Kibana Privileges. This was a concept that we introduced in #67791 in order to know when it was safe to show/hide features within the Stack Management application.
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.
Thanks!
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.
AppArch changes LGTM.
Summary
This is mostly a followup to #67791, but there were also tweaks required to the Home app to respond to the differing privilege levels.
Updates the ILM and Snapshot/Restore features to correctly register their catalogue entries with the privilege system.
These entries were showing up for all users because they were not registered as part of the call to
registerElasticsearchFeature()
Updates the Feature Catalogue to support an optional
visible()
callback.Feature catalogue entries must be registered during
setup
, before thecapabilities
service is ready. As a result, the Stack Management entry needs to dynamically update its visibility after registration.This entry was showing up for all users prior to this change.
Adds functional tests to verify this
There were 0 functional tests verifying home screen functionality with security enabled. This PR introduces a couple to prevent regressions, but more should be added in followups.
User with access to only Dashboards
Before
After