src/platform/plugins/shared/cps/README.md
This plugin implements the Cross-Project Search (CPS) logic for Kibana. CPS enables users to search data across multiple Elastic projects as if it were local, without needing to manually specify project names in queries.
Kibana acts as a transparent orchestrator. It does not execute cross-project searches itself but forwards requests with the appropriate project_routing context to Elasticsearch. Elasticsearch then handles the execution, security enforcement, and result aggregation.
public/)projectRouting$ observable (defaults to searching all projects) and allows applications to set/get the current routing.ProjectFetcher.getProjectPickerAccess$).server/)POST /internal/cps/projects_tags to retrieve project tags from Elasticsearch (/_project/tags), delegating authorization to the scoped Elasticsearch client.cpsEnabled flag via its setup contract, which is used by other parts of the system (like Core's ElasticsearchService) to toggle CPS behaviors.Retrieves project tags from Elasticsearch using the /_project/tags endpoint.
Route Details:
/internal/cps/projects_tagsproject_routing (optional): String parameter for project routing{
[key: string]: Record<string, string>;
}
Features:
/_project/tags API