-
Notifications
You must be signed in to change notification settings - Fork 68
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
Discuss: How to retrieve the latest package #471
Comments
To be more specific here, I assume this is to get latest package which is compatible with the current Kibana version? One thing missing today in the url is the kibana version which should always be passed to the One thing we could do is having a |
@jfsiii Can we solve it in the registry vs EPM? |
Good point. Thanks for bringing that up. I'll open an issue and/or PR. I'll talk about it there, but I believe the kibana version is included in an HTTP header if use use the core client.
/cc @neptunian for more 👀 🧠 but, yes, that sounds great to me. |
I thought
|
The Kibana issue to send it as a query param is here: elastic/kibana#64868 @neptunian I think there is one key difference between the two endpoints. The |
Ah, right. That url looks fine to me. I was thinking of doing something like |
@neptunian @jfsiii Is the conclusion that it is worth having such an API endpoint in the registry and I should follow up with a PR to get it in? |
I'm not sure where we need this endpoint atm. If all we need to do right now is answer the question of what is the latest version of a package given a package name, the search route is enough and EPM could create an endpoint using it for @paul-tavares elastic/kibana#66777. |
The need for Endpoint will be to get the version installed - which might actually be different from what I had posted in the use case on elastic/kibana#66777 . I say it this way (installed -vs- latest) because I don't yet clearly understand how installation of new package version. The installation of a new package version may require data migrations - especially if updates to the packages will be done out-of-band with the version of Kibana -thus getting information on what is the latest package might not be desired approach (for quick context: we will use the |
@paul-tavares EPM could provide that or you can query epm-packages saved objects to see what packages they have installed |
@neptunian I've wanted this a few times now (installed packages, filter, etc) but wasn't sure of the endpoint. We use /packages for the available ones (from EPR). I'm not sure what to use for installed ones (our Saved Object) |
@paul-tavares @neptunian @jfsiii Is this still something needed? If not, I suggest we close the issue and reopen if we find a need for it. |
The need is still there - currently we (endpoint) are using a work around by pulling the list filtered by a category of security and then trying to find the endpoint package, which is not ideal.
This also reminds me that with an increase in the number of packages, we might not even get the endpoint package back on the first page (and I don’t think we’re paving through 😦 will need to check (cc/ @kevinlog)
|
@paul-tavares would querying the saved objects for the installed package meet your needs? Or are you needing something that returns both latest available and installed? |
I realized that this Issue here is under the Package Registry, so I'm not clear if it is valid or not. Our needs are captured under Kibana issue that is opened - here: elastic/kibana#66777 I think our need is for the latest (supported on current Kibana version), so that we can build the URL to the EPM page for user to create a new endpoint package policy integration |
Cool, i'll close this one and we can move the conversation there. |
EPM currently does this locally by calling /search and returning the first value because it "knows" that how that endpoint works https://github.com/elastic/kibana/blob/74bf87721f70d0c71738c209613f290020fed100/x-pack/plugins/ingest_manager/server/services/epm/registry/index.ts#L44
It seems like the registry is best suited to answer what's the latest version. Can it provide a more explicit way to get that?
The text was updated successfully, but these errors were encountered: