-
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
migrate getCurrentUser calls in reporting to core security service #186913
migrate getCurrentUser calls in reporting to core security service #186913
Conversation
@elasticmachine merge upstream |
/ci |
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
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.
Left a minor comment
@elasticmachine merge upstream |
9d35eb4
to
ad2787c
Compare
@elasticmachine merge upstream |
8eb8170
to
4aa7799
Compare
/ci |
8b419dd
to
75e6e9e
Compare
/ci |
This comment was marked as outdated.
This comment was marked as outdated.
/ci |
@elasticmachine merge upstream |
/ci |
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.
Requesting some changes, mostly regarding the naming from security
to securityService
on the ReportingInternalStart interface. I have found that using securityService
in the naming helps avoid confusion in another similar PR: https://github.com/elastic/kibana/pull/187042/files#diff-5588369e40efa592434c68980e8988088d1977962cf5601f24827d69dd34b97a
x-pack/plugins/reporting/server/routes/common/authorized_user_pre_routing.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/reporting/server/routes/internal/management/integration_tests/jobs.test.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/reporting/server/test_helpers/create_mock_reportingplugin.ts
Outdated
Show resolved
Hide resolved
…makes securityService non-optional
@tsullivan I renamed
Please take another look. |
Co-authored-by: Tim Sullivan <[email protected]>
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
💚 Build Succeeded
Metrics [docs]History
To update your PR or re-run it, just comment with: |
Summary
Part of #186574
Background: This PR is an example of a plugin migrating away from depending on the Security plugin, which is a high-priority effort for the last release before 9.0. The Reporting plugin uses
authc.getCurrentUser
from the security plugin's start contract on the server side.This PR migrates
authc.getCurrentUser
from the security plugin start contract to the core security service.Checklist