-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Kibana Platform plugins cannot access available features in start
method
#65461
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
we still register legacy features kibana/x-pack/legacy/plugins/xpack_main/index.js Lines 67 to 70 in a729b3b
x-pack_main plugin kibana/x-pack/plugins/features/server/plugin.ts Lines 81 to 91 in ee270c7
|
It's currently blocked by |
Can we just migrate the SO registration for now? |
@joshdover yes, I ended up with it. forgot to update the comment #66203 |
Summary
Currently if KP plugin accesses available features in its
start
method (viafeatures.getFeatures()
) it breaks legacy plugins that try to register new features since feature registry is frozen as soon as it's accessed for the first time (e.gXPack Main
plugin registers all OSS features in itsinit
method).This issue turned out to be blocking migration of the Security plugin to Kibana Platform since in
start
method we need to access all available features, validate feature privileges and register these privileges with Elasticsearch.The text was updated successfully, but these errors were encountered: