kibana/x-pack/plugins
Julia Rechkunova 7fa04e92bc
[Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937)
- Resolves https://github.com/elastic/kibana/issues/158173

Based on PoC https://github.com/elastic/kibana/pull/166260

## Summary

This PR adds a new "Saved Query Management" privilege with 2 options:
- `All` will override any per app privilege and will allow users to save
queries from any Kibana page
- `None` will default to per app privileges (backward-compatible option)

<img width="600" alt="Screenshot 2023-09-21 at 15 26 25"
src="6d53548e-5c5a-4d6d-a86a-1e639cb77202">

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2023-09-29 11:52:39 +02:00
..
actions [DOCS] Move preconfigured Tines connector details (#166217) 2023-09-25 17:58:53 -07:00
aiops [ML] AIOps: Enable event_generating_elements_should_be_instrumented eslint rule. (#167317) 2023-09-28 11:49:13 +02:00
alerting [ResponseOps] resolve conflicts when updating alert docs after rule execution (#166283) 2023-09-28 09:47:17 -04:00
apm [Logs+] Remove configurable redirects to Discover (#167151) 2023-09-27 18:02:37 +01:00
apm_data_access [APM] Paginate big traces (#165584) 2023-09-11 10:30:43 +02:00
asset_manager [Asset Manager] Creates baseline public asset client for use in public plugins (#167191) 2023-09-28 13:26:24 -07:00
banners
canvas Upgrade EUI to v88.5.0 (#166868) 2023-09-27 13:04:45 -05:00
cases skip failing test suite (#146394) 2023-09-20 14:33:30 -05:00
cloud [Cloud plugin] Add projectId to the telemetry streams (#166527) 2023-09-19 09:54:00 +02:00
cloud_defend [Cloud Security] CODEOWNERS update (#164522) 2023-08-23 09:57:45 -07:00
cloud_integrations [Cloud] ES endpoint discovery (#167122) 2023-09-28 04:20:53 -07:00
cloud_security_posture [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
cross_cluster_replication [config-schema] offeringBasedSchema helper (#163786) 2023-08-22 03:59:15 -07:00
custom_branding
dashboard_enhanced
data_visualizer [ML] Move chi2test to package (#167237) 2023-09-27 18:43:27 +02:00
discover_enhanced
drilldowns Changing where CodeEditor fields get useDarkMode value (#159638) 2023-07-11 14:02:42 -04:00
ecs_data_quality_dashboard [SecuritySolution] Data Quality dashboard in serverless (#163733) 2023-08-25 12:43:27 +01:00
elastic_assistant [Security solution] AWS Bedrock connector (#166662) 2023-09-27 16:44:52 -06:00
embeddable_enhanced
encrypted_saved_objects Prepare the Security domain HTTP APIs for Serverless (#162087) 2023-08-23 12:34:45 +02:00
enterprise_search Add a Gated form for Workplace Search (#167315) 2023-09-28 21:30:35 +05:30
event_log Remove version from EventLog index name (#166820) 2023-09-26 14:17:37 +02:00
exploratory_view [Synthetics] Refactor cardinality test runs query (#166608) 2023-09-26 12:12:24 +02:00
features [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
file_upload [maps][file upload] remove number_of_shards index setting (#165390) 2023-09-06 13:20:11 -05:00
fleet [Fleet] Agent upgrade available should use latest agent version (#167410) 2023-09-29 11:07:44 +02:00
global_search
global_search_bar [Serverless] Chrome UI fixes (#164030) 2023-08-16 17:21:59 -04:00
global_search_providers [Logs+] Add Log Explorer profile deep link (#161939) 2023-07-24 21:23:58 +02:00
graph [Graph] Replace last KUI buttons with EUI ones (#166588) 2023-09-18 02:25:54 -07:00
grokdebugger [Serverless Search] Disable Grok debugger & Painless Lab (#165772) 2023-09-07 15:26:23 -07:00
index_lifecycle_management Upgrade EUI to v88.5.0 (#166868) 2023-09-27 13:04:45 -05:00
index_management [Index Management] Implement index details page (#165705) 2023-09-27 11:22:26 -07:00
infra [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
ingest_pipelines [Ingest pipelines] Improve copy of Reroute processor (#162996) 2023-08-15 11:56:10 +01:00
kubernetes_security [Cloud Security] CODEOWNERS update (#164522) 2023-08-23 09:57:45 -07:00
lens [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
license_api_guard
license_management Upgrade EUI to v88.5.0 (#166868) 2023-09-27 13:04:45 -05:00
licensing [kbn] Subscription tracking (cont.) (#157392) 2023-09-18 18:27:16 +02:00
lists [Security Solution][Endpoint] Adapt exception list api calls to versioned router (#165658) 2023-09-07 17:35:15 +02:00
log_explorer [Log Explorer] Implement Data Views tab into selector (#166938) 2023-09-28 12:21:35 +02:00
logs_shared [Logs Shared] Disable log view saved object registration for serverless (#165243) 2023-09-20 10:13:40 +02:00
logstash Migrate deprecated components in Logstash pipelines section. (#161512) 2023-09-27 13:44:32 -06:00
maps [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
metrics_data_access [apm] allow retrieval of metric indices (#167041) 2023-09-25 18:28:09 +02:00
ml [ML] Alerts as data integration for Anomaly Detection rule type (#166349) 2023-09-28 15:46:42 +02:00
monitoring [Stack Monitoring] Update flows for cpu stats fetching (#167244) 2023-09-28 14:54:40 +02:00
monitoring_collection
notifications [ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632) 2023-09-07 06:59:01 -07:00
observability [SLO] create SLO embeddable widget (#165949) 2023-09-28 20:39:37 +02:00
observability_ai_assistant [Observability AI Assistant] ES|QL query generation (#166041) 2023-09-25 08:39:34 -07:00
observability_log_explorer [Log Explorer] Implement Data Views tab into selector (#166938) 2023-09-28 12:21:35 +02:00
observability_onboarding [Logs onboarding] fixing type issues (#167340) 2023-09-27 01:38:58 -07:00
observability_shared [Profiling] TS fixes (#167129) 2023-09-25 08:33:03 -07:00
osquery [Osquery][Ops] Move Osquery/cypress configurations close to cypress (#167428) 2023-09-28 15:16:22 -07:00
painless_lab [Serverless Search] Disable Grok debugger & Painless Lab (#165772) 2023-09-07 15:26:23 -07:00
profiling [Profiling] fixing TopN functions sorting (#167242) 2023-09-28 04:43:02 -07:00
profiling_data_access [Profiling] TS fixes (#167129) 2023-09-25 08:33:03 -07:00
remote_clusters [Remote Clusters] Update copy about port help text (#164442) 2023-08-23 09:28:24 +03:00
reporting Upgrade EUI to v88.5.0 (#166868) 2023-09-27 13:04:45 -05:00
rollup [data views] Disable rollup ui elements on serverless (#164098) 2023-09-06 13:52:02 -07:00
rule_registry [Response Ops][Alerting] Using refresh=true instead of refresh='wait_for' when writing alerts (#166296) 2023-09-27 17:32:26 -04:00
runtime_fields Changing where CodeEditor fields get useDarkMode value (#159638) 2023-07-11 14:02:42 -04:00
saved_objects_tagging [Tags] Prevent duplicates (#167072) 2023-09-28 09:53:31 -07:00
screenshotting chore: update elastic-agent-nodejs to v4 (#165483) 2023-09-13 12:56:39 +02:00
searchprofiler [Search Profiler] Migrate all usages of EuiPage*_Deprecated (#163131) 2023-09-22 11:55:34 -04:00
security [RAM] Add missing privilege to alerting read operations (#166603) 2023-09-22 09:23:13 +02:00
security_solution [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
security_solution_ess [SecuritySolution] Fix TypeScript errors (#167147) 2023-09-27 08:25:45 +02:00
security_solution_serverless [SecuritySolution] Fix TypeScript errors (#167147) 2023-09-27 08:25:45 +02:00
serverless [Serverless] Improve breadcrumbs in management (#166259) 2023-09-19 13:51:09 +02:00
serverless_observability Project Side Navigation: Use EuiCollapsibleNavBeta component (#164910) 2023-09-27 14:22:46 -07:00
serverless_search Project Side Navigation: Use EuiCollapsibleNavBeta component (#164910) 2023-09-27 14:22:46 -07:00
session_view [RAM] .es-query and .observability.rules.threshold RBAC (#166032) 2023-09-21 15:10:28 -07:00
snapshot_restore fix type import 2023-09-27 15:37:16 -05:00
spaces Upgrade EUI to v88.5.0 (#166868) 2023-09-27 13:04:45 -05:00
stack_alerts [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
stack_connectors [Security solution] AWS Bedrock connector (#166662) 2023-09-27 16:44:52 -06:00
synthetics [Uptime] Filter out run once documents (#166704) 2023-09-28 19:24:42 +02:00
task_manager [RAM] Mark disabled alerts as Untracked in both Stack and o11y (#164788) 2023-09-27 15:28:03 -07:00
telemetry_collection_xpack Risk score engine telemetry (#166787) 2023-09-29 06:46:05 +02:00
threat_intelligence Upgrading cypress to 12.17.4 (#165869) 2023-09-19 10:15:53 -07:00
timelines [Security Solution][Serverless] Add schema validation to Search Strategies in security solution & timelines (#162539) 2023-09-21 07:57:00 +02:00
transform [ML] Improves display for long descriptions in transforms (#165149) 2023-09-29 08:10:27 +02:00
translations [Infra UI] Replace node details flyout with asset details flyout in the inventory page (#166965) 2023-09-28 10:02:34 -07:00
triggers_actions_ui [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
upgrade_assistant [config-schema] offeringBasedSchema helper (#163786) 2023-08-22 03:59:15 -07:00
uptime [Uptime] Filter out run once documents (#166704) 2023-09-28 19:24:42 +02:00
ux [Infra] Disable infra plugin in serverless projects (#165289) 2023-09-08 15:05:28 +02:00
watcher Upgrade EUI to v88.2.0 (#165790) 2023-09-12 08:51:07 -07:00