-
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 Enterprise search plugin authc dependencies from security plugin to core security service #189713
Migrate Enterprise search plugin authc dependencies from security plugin to core security service #189713
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-core (Team:Core) |
|
||
const createResponse = await createApiKey(request, security, indexName, keyName); | ||
const createResponse = await coreSecurity.authc.apiKeys.create({ |
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 would rather do the same changes in the createApiKey
function as we have some tests there. Where if you change the place what is called rest should be same anyways.
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.
@efegurkan Sorry for the delayed response. Addressed in 883ea86
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, one CI is fixed we can merge.
Thank you for handling this <3
@elasticmachine merge upstream |
@SiddharthMantri are you going to merge or abandon this PR? |
@TinaHeiligers I haven't had the chance to get back to fixing the test imports. I'll get to it asap and merge it in |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]History
To update your PR or re-run it, just comment with: |
Summary
Part of #186574
Closes #189714
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 Enterprise search plugin uses authc.apiKeys.create from the security plugin's start contract on the server side.
For more context, the PR which exposes the API keys service from core is here: #186910
This PR migrates the usage from the security plugin start contract to the core security service.