-
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
Stack Management / Kibana / Search Sessions menu entry not controlled by privileges #89833
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
/cc @liza-mae @lukasolson |
Need to fix this to enable As a recap: There is currently no condition that prevents We thought of three options, but in my current understanding, only one is doable now: Option 1 (the simplest one)Do not register search_sessions management app if user doesn't have got discover/dashboard search sessions capabilities. After a quick look, looks like it isn't possible because capabilities are available in the start phase, and registering an mgmt app has to be done in the setup phase. Option 2 (the only feasible today)As @pheyos suggested:
Our concern with this option is that it adds more burden for a user who manages roles and in-general complicates access control of search-sessions Q: can we cascade the state of this global feature to discover's and dashboard's sub-feature? Option 3 (the best one but needs core/security work)If we could cascade the management app visibility depending on other apps sub-feature, we would go with that. Looks like Option 2 is our only option for now unless I am missing something and if there other options. cc @lizozom |
Hmm, I believe it should be possible today, did something not work for you? I've just modified discover feature to something like this and it seems it did the job (left only relevant pieces): {
id: 'discover',
....
management: {
kibana: ['search_sessions'],
},
.....
subFeatures: [
{
name: i18n.translate('xpack.features.ossFeatures.discoverShortUrlSubFeatureName', {
defaultMessage: 'Short URLs',
}),
......
},
{
name: i18n.translate('xpack.features.ossFeatures.discoverSearchSessionsFeatureName', {
defaultMessage: 'Store Search Sessions',
}),
privilegeGroups: [
{
groupType: 'independent',
privileges: [
{
id: 'store_search_session',
......
includeIn: 'all',
......
management: {
kibana: ['search_sessions'],
},
},
],
},
],
},
],
}, |
Thanks, @azasypkin, that worked 👍 I started working on
I'd prefer to go with @lizozom, @lukasolson, @elastic-jb, Let me know in case we want to go with |
Found in version
Browser
Steps to reproduce
xpack.data_enhanced.search.sessions.enabled: true
Default
space:Expected result
Stack Management
menu entry.Actual result
Stack Management
menu entry, which contains theKibana / Search Sessions
entry.Additional information
feature_controls
tests on cloud fail, because the above mentioned setting is active there for API and UI tests. In CI tests the setting is only used for API tests, so the menu entry is never shown during UI tests and feature controls tests are passing fine.The text was updated successfully, but these errors were encountered: