-
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
[Security Solution] Fix assistant settings availability for non-superuser role #182322
[Security Solution] Fix assistant settings availability for non-superuser role #182322
Conversation
Hey @YulNaumenko, the config overall looks good, the original problem is solved (for stateful). I tested the branch locally, it works as expected so I am going to approve it. However, I noticed some things:
|
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!
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
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.
Obs UI changes LGTM
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, just left few non-blocking questions.
@@ -7,7 +7,7 @@ | |||
"server": true, | |||
"browser": true, | |||
"requiredPlugins": ["management"], | |||
"optionalPlugins": ["home", "serverless"], | |||
"optionalPlugins": ["home", "serverless", "features"], |
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: cannot we make features
plugin required
?
}; | ||
}); | ||
|
||
plugins.features?.registerKibanaFeature({ |
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: I'm not sure if this plugin is enabled in Serverless, but if it's - should this feature be available in Serverless role management UI? If so, for which project types (Security, Search, Observability)?
Sorry, updating once more to include #182432 and fix the timeouts shown in the previous build |
💚 Build Succeeded
Metrics [docs]Page load bundle
Saved Objects .kibana field count
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @YulNaumenko |
…user role (elastic#182322) Resolves elastic#182209 --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 9d7dfea)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…n-superuser role (#182322) (#182528) # Backport This will backport the following commits from `main` to `8.14`: - [[Security Solution] Fix assistant settings availability for non-superuser role (#182322)](#182322) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Yuliia Naumenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-05-02T21:44:23Z","message":"[Security Solution] Fix assistant settings availability for non-superuser role (#182322)\n\nResolves #182209\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"9d7dfeac2fe00ca52398f78e7a7d62b10dd4cfa4","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v8.14.0","v8.15.0"],"title":"[Security Solution] Fix assistant settings availability for non-superuser role","number":182322,"url":"https://github.com/elastic/kibana/pull/182322","mergeCommit":{"message":"[Security Solution] Fix assistant settings availability for non-superuser role (#182322)\n\nResolves #182209\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"9d7dfeac2fe00ca52398f78e7a7d62b10dd4cfa4"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182322","number":182322,"mergeCommit":{"message":"[Security Solution] Fix assistant settings availability for non-superuser role (#182322)\n\nResolves #182209\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"9d7dfeac2fe00ca52398f78e7a7d62b10dd4cfa4"}}]}] BACKPORT--> Co-authored-by: Yuliia Naumenko <[email protected]>
@@ -79,6 +86,66 @@ export class AIAssistantManagementSelectionPlugin | |||
}, | |||
}); | |||
|
|||
core.capabilities.registerProvider(() => { |
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.
note: forgot to comment on this one yesterday - I don't think we need this here - I believe it's only needed when the feature/plugin can be used with Elastic Stack security disabled which is unlikely to be the case for this plugin.
Resolves #182209