elastic / kibana

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

[SecuritySolution][ProductFeaturesService] Add support for new `requiredPrivileges` security route option #194445

Open semd opened 1 day ago

semd commented 1 day ago

Summary

After introducing the security route option [here], we need to add support for this new configuration in the Product Features route check.

The Product Feature route control ensures the route is available and included in the current product tier the application is running, this logic is implemented using http.registerOnPostAuth, as part of the ProductFeatureService at:

https://github.com/elastic/kibana/blob/0dada14ac580088b24a084d1d1b61b08a7055ebb/x-pack/plugins/security_solution/server/lib/product_features_service/product_features_service.ts#L134-L164

Task

Related issue: https://github.com/elastic/kibana/issues/184674

elasticmachine commented 1 day ago

Pinging @elastic/security-solution (Team: SecuritySolution)