-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Parse Snapshot Versions for Kibana Artifacts (#14…
…5626) ## Summary There are instances where the cluster info comes with a snapshot version such as "8.6.0-SNAPSHOT". This version string is used to construct the manifest url needed to retrieve kibana artifacts; however, those artifacts are categorized under non-snapshot versions(e.g. "8.6.0"). Hence, to properly retrieve the respective kibana artifacts, I am splitting the version string at '-' to get the applicable kibana artifact version. Similar methods of splitting are seen [here](https://github.com/elastic/kibana/blob/main/x-pack/plugins/monitoring/server/plugin.ts#L58) Also for additional reference: here is a [discussion](https://elastic.slack.com/archives/C5TQ33ND8/p1594726063167100) from #kibana-core slack channel on splitting at '-' for the version ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
016e3e0
commit 0db3ab0
Showing
4 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters