elastic / kibana

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

[Fleet] Remove unsupported privileges from Fleet in serverless #181909

Open kpollich opened 1 week ago

kpollich commented 1 week ago

Fleet is currently referencing two cluster privileges that aren't supported in serverless. Soon, these privileges will be removed entirely and will result in validation errors in API requests. We should remove these privileges when Kibana is running in serverless mode.

https://github.com/elastic/kibana/blob/f21d6e436e9f370b741bb495719af7e0f6ce36c1/x-pack/plugins/fleet/server/services/package_policy.ts#L174-L181

https://github.com/elastic/kibana/blob/f21d6e436e9f370b741bb495719af7e0f6ce36c1/x-pack/plugins/fleet/server/routes/app/index.ts#L63-L68

We should be able to add a conditional check to determine whether Kibana is running in serverless mode before referencing these specific privileges.

elasticmachine commented 1 week ago

Pinging @elastic/fleet (Team:Fleet)