elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.49k stars 8.05k forks source link

[Cloud Security] Integrations form to have url params support #175817

Open JordanSh opened 5 months ago

JordanSh commented 5 months ago

Summary

We want to add the ability to select values by using url params. for example, when navigating to the CSPM integration, we would like to be able to pre-select Azure as a value if the url includes a parameter for cloudProvider=Azure.

image

This will require adding support for URL params, and initial values state management. This will allow us to navigate to a direct integration from the benchmarks and rules pages.

### Definition of done
- [ ] add support for optional url parameters in the integrations form page
- [ ] set initial form values based on the url params
- [ ] make sure this does not function on edit mode
- [ ] add tests
kfirpeled commented 4 months ago

@JordanSh I was thinking to assign this for sean as a good first issue. wdyt?

Can you please add more context to the issue so it would be better handed off?

JordanSh commented 4 months ago

Added context and dod

Omolola-Akinleye commented 1 month ago

I don't believe this issue is truly a quick win. Integration form is fleet extension component in our CSP plugin and Fleet handles routing with params differently with hooks and component that we don't have access to from PolicyTemplateInputSelector. When I selected the cloud provider and use history.push() , page re-directs routing to fleet agent page. cc: @JordanSh @kfirpeled