When teams need OpenSearch cross-cluster search
Cross-cluster search queries data across several OpenSearch clusters from one cluster, using remote cluster connections that the coordinating cluster opens to the others. Teams reach for it when they run several clusters, for example one per region, per business unit or per environment, and need one query view across them without moving the data. A security analyst who must search authentication logs in three regional clusters, or an operations team that wants service health across production clusters, usually fits this pattern. The search keyword for this page, cross-cross-cluster search in OpenSearch, describes exactly this capability: the query runs where it is issued, and the results come back from the remote clusters.
The alternative is copying data into one central cluster. Copying fits better when you need a single retention policy, when the central team must transform or enrich documents before indexing, or when the links between sites are too unreliable for queries to cross them at search time. Cross-cluster search fits better when data must stay in its home cluster for residency or ownership reasons, when the copy would double storage cost, or when each cluster's owners already run their own retention and access controls. Before choosing, ask each cluster owner whether the query latency and partial-result behavior over the network are acceptable for the questions your users actually ask, and confirm the network path and ports with your platform team.
How a cross-cluster query flows and where permissions are checked
The request starts with a user signing in to the coordinating cluster, where the Security plugin authenticates them and records their backend roles. The coordinating cluster then forwards the search to the remote cluster over the remote cluster connection, carrying those backend roles with it. The remote cluster evaluates the permissions itself before returning results, so the remote side is where access is decided. Check that the same identity backend and role mappings exist on both sides before you test.
Authentication happens on the coordinating cluster, while authorization is checked on the remote cluster.
Configuration options and when each one fits
This table compares the main ways to set up cross-cluster search: default remote role mapping, node role overrides, and the 3.9 remote role evaluation option. Read each row for when the option fits, what it changes in the authentication and permission flow, and what to confirm in the docs for your version. The main takeaway is that your OpenSearch version and the role setup on both clusters should decide the path before you build.
| Option | When it fits | What it changes | What to confirm |
|---|---|---|---|
| Default remote role mapping | Remote cluster roles already match the backend roles your users carry from the coordinating cluster | Coordinating cluster authenticates the user and forwards backend roles; remote cluster evaluates permissions against them | Role names and mappings match on both clusters for your version |
| Node role override with remote_cluster_client | Coordinating nodes use custom node.roles settings, such as a dedicated coordinating-only node | Overriding nodes must also hold the remote_cluster_client role to open remote connections | Whether each overriding node needs the role, and the exact role name in your release |
| Single remote cluster | One remote cluster holds the data you need to query from a central place | Fewer connections and role mappings to keep consistent across clusters | Connection settings and seed or proxy options supported by your version |
| Several remote clusters | Teams query data spread across multiple clusters from one endpoint | Each remote cluster needs its own connection and role mapping, which multiplies review work | Naming pattern for cross-cluster queries and how permissions are reviewed per cluster |
| 3.9 remote role evaluation option | You run 3.9 or later and the default mapping is hard to keep consistent across clusters | Changes how remote roles are evaluated; read the setting before adopting it | The 3.9 cross-cluster search docs for the setting name, default value and security impact |
| Version earlier than 3.9 | You cannot yet upgrade and need to keep the default mapping | Default evaluation applies; no 3.9 option is available | Your current version's docs for role mapping and any node role requirements |
Authentication and permission flow across clusters
A cross-cluster query passes through two security checks: the coordinating cluster authenticates the user, and the remote cluster decides what that user may read. The cards below follow that path and point to the places where queries are denied unexpectedly.
Authentication on the coordinating cluster
The user signs in to the coordinating cluster, and its Security plugin authenticates them against the configured backend, such as SAML, OpenID Connect, LDAP or Active Directory. Remote clusters do not authenticate the end user directly in the standard flow. Confirm that the coordinating cluster's identity backend returns the groups you intend to map, because every later permission depends on that result.
Cross-cluster search docsForwarding backend roles to the remote
After authentication, the coordinating cluster forwards the request along with the user's backend roles. These role names, not local roles defined on the coordinating cluster, are what the remote cluster sees. Inspect a test user's backend roles on the coordinating side before troubleshooting anything else, since a missing or differently spelled role will not appear on the remote side.
Permission evaluation on the remote cluster
The remote cluster evaluates permissions for the forwarded identity against its own role mappings and index permissions. A user who has full access on the coordinating cluster can still be denied on a remote index if no remote role maps the forwarded backend role to that index. Test each target index with a representative user, not only with an administrator account.
Why remote roles must exist
Roles and role mappings defined only on the coordinating cluster do not grant access on the remote side. Each remote cluster needs its own roles that map the forwarded backend roles to the indexes, actions and document or field restrictions it allows. Keep these remote roles under the same change control as the coordinating roles so the two sides do not drift apart.
Where mismatches cause denied queries
Denied cross-cluster queries most often come from a backend role name that differs between identity providers or clusters, a remote role that covers only some indexes, or a wildcard index pattern that matches indexes the user cannot read. Authorization errors on the remote side tell you the forwarded identity was rejected there, so compare the role lists on both clusters before changing the query.
Remote connection trust and the cluster role
The connection between clusters has its own trust settings, and nodes that override node.roles must include the remote_cluster_client role to take part in cross-cluster search. Confirm which nodes on the coordinating side hold that role, and review the TLS and connection settings with your security team, since user permissions alone do not secure the transport between clusters.
How to set up cross-cluster search step by step
This sequence connects a coordinating cluster to one or more remote clusters, lets users query them with the permissions they already hold, and confirms each stage works before anyone depends on it. Each step ends with a check that tells you whether to move on.
Confirm network reachability and TLS between clusters
The network team or platform engineer confirms that every node that will act as a gateway on the coordinating cluster can open connections to the transport port of the remote cluster's nodes, and that firewall rules allow it in both directions where responses need to return. Confirm that TLS is enabled on transport traffic for both clusters and that each side trusts the other's certificate chain. Check the exact ports and certificate requirements in your version's documentation before opening rules. The step is done when a connection test from the coordinating cluster's gateway nodes succeeds with TLS verification enabled, and the remote cluster's certificate chain validates against the trust store you plan to use.
Register remote cluster connections
An administrator registers each remote cluster on the coordinating cluster by setting its seed nodes or connection settings in the cluster settings, using a name that users will type in queries. Pick a stable alias per remote cluster, because it becomes part of every cross-cluster index expression. Apply the settings to the cluster and keep the configuration under change control so that a node address change does not silently break queries. The step is done when the cluster settings API shows each remote alias with connected nodes, and a health check on the remote connection reports it as connected.
Assign the remote_cluster_client role on overriding nodes
If the coordinating cluster's nodes set a custom node.roles value, those nodes do not automatically get the remote_cluster_client role, so the administrator must add it to their node.roles configuration. Nodes that keep the default roles already carry the capability. Plan the rolling restart so that coordinating nodes are updated in a controlled order and client traffic keeps flowing through unaffected nodes. The step is done when the node information view lists remote_cluster_client on each node that should route cross-cluster requests, and no node that should have the role is missing it.
Map backend roles on the remote cluster
The Security plugin authenticates the user on the coordinating cluster and forwards the call with that user's backend roles, then evaluates permissions on the remote cluster. So the security administrator on the remote cluster must create roles there and map the backend roles that the coordinating cluster's identity provider issues. Keep these mappings narrow: grant only the indices and actions that cross-cluster users need, and review document-level and field-level restrictions that also apply to remote queries. The step is done when a test user whose backend roles are mapped on the remote cluster can read the expected index there, and the same user is denied an index outside the mapping.
Confirm authentication flows through the coordinating cluster
Log in as a test user through the identity backend configured on the coordinating cluster, such as SAML, OpenID Connect or LDAP, and confirm that the user's backend roles appear in the security context for that session. Verify that the coordinating cluster does not require a separate login to the remote cluster for this user. If the user is missing backend roles, fix the identity mapping before going further, since remote permissions depend on them. The step is done when the security information for the test user lists the expected backend roles and no authentication error appears on the coordinating cluster.
Run a test cross-cluster query
From the coordinating cluster, run a search using the remote alias and index name in the form alias:index, starting with a small index and a simple match_all query that returns a known count. Compare the result with a direct query on the remote cluster as the same user. Then test a document that the user should not see, and confirm it is excluded. The step is done when the returned hit count matches the direct remote result, the results are returned without an authorization error, and the restricted document is absent.
Test failure behavior and record the configuration
Simulate the loss of a remote node or a disconnected remote cluster in a test window, and observe whether queries return partial results or fail, based on how your client sends requests and how the connection is configured. Record the remote aliases, seed settings, roles, backend role mappings and test results in your runbook so that the next change can be checked against a known baseline. The step is done when the failure behavior is documented, the team agrees on how partial results will be presented to users, and the configuration is stored in version control with a named owner.
Security and operational considerations for multi-cluster search
Cross-cluster search moves trust across cluster boundaries: the coordinating cluster authenticates users and forwards their requests, and the remote cluster decides what they can read. The cards below cover the controls that keep that flow tight, the audit trail needed on both sides, and the failure mode to plan for when the coordinating cluster is compromised.
Encrypt inter-cluster traffic
Requests and results cross the network between the coordinating and remote clusters, so TLS on that path matters as much as TLS for clients. The OpenSearch Security plugin provides TLS for node and client traffic, and you should confirm how the remote connection is secured in the version you run, including certificate trust and how certificates are rotated on both ends. Test the connection with invalid or untrusted certificates before go-live so you know the failure is visible.
Security docsScope remote roles to least privilege
Permissions are evaluated on the remote cluster, so the roles mapped to forwarded users define what a search can reach. Create dedicated roles that grant only the indexes, document-level filters and fields each consuming team needs, and avoid reusing broad administrative roles. Review the backend roles the coordinating cluster forwards, because a broad mapping there quietly widens access on the remote side.
Map identities consistently
The coordinating cluster authenticates users with its own backends, such as SAML, OpenID Connect or LDAP, and forwards backend roles. If the same person maps to different backend roles on each cluster, results will differ or access will be wrong. Document which identity provider is authoritative for each cluster and test one user from each team against both clusters to confirm the expected results.
Audit both clusters
A search that spans two clusters leaves records in two places, and an investigation needs both. Enable audit logging on the coordinating and remote clusters and confirm which request categories are captured in your version, since the scope of logged events is configurable. Forward both logs to your central store and align timestamps and user identifiers so a single query can follow one user across clusters.
Plan for a compromised coordinating cluster
The remote cluster trusts requests forwarded by the coordinating cluster, so an attacker who controls that cluster can send queries with any backend roles it can forge. Limit who can administer the coordinating cluster, restrict which remote clusters it can reach, and keep remote roles narrow so the blast radius stays small. Treat the coordinating cluster as a high-value system in your threat model and monitor unusual cross-cluster query volume.
Confirm behavior per version
Cross-cluster permission handling and the options for evaluating remote roles have changed across releases, so the settings you rely on must match the version you run. Check the release notes for your minor version, test the permission flow in a staging environment with the same security plugin configuration, and repeat that test after each upgrade before you rely on the same role design.
Cross-cluster search docsQuestions buyers ask before building cross-cluster search
How much does cross-cluster search cost to set up?
Cost depends on the number of clusters, how identity is integrated, how many roles and permissions must be designed, and how much testing the setup needs. The feature itself is part of the Apache 2.0 licensed OpenSearch project, so license fees are not the main cost. The main costs are the engineering time to design and build the connections, the infrastructure for each cluster, and the time your security team spends reviewing roles. Ask any partner for a quote that itemizes these components, separates one-time build work from ongoing operations, and states which clusters and identity sources are in scope.
How long does cross-cluster search take to set up?
The duration depends mostly on your environment, not on the feature. Setup time grows with the number of clusters, whether the remote clusters already run the Security plugin with the identity provider you use, how many teams need different permissions, and how long your change approval process takes. Ask for a timeline tied to a written scope with named milestones, such as connection testing, role design, and a verification pass across each remote cluster.
What does the work need from our network team?
Cross-cluster search needs network paths between the coordinating cluster and each remote cluster on the transport ports the clusters use, along with TLS trust between them. Your network team should confirm that firewall rules, routing, and DNS allow those connections in both directions where required, and that any load balancers or proxies in between do not break the transport traffic. Ask the partner to list every path and port they need before the build starts.
What do our security and identity teams need to provide?
Security and identity teams own the decisions that matter most here. The Security plugin authenticates the user on the coordinating cluster, forwards the request with that user's backend roles, and evaluates permissions on the remote cluster. That means the identity provider must issue consistent backend roles on every cluster involved, and the remote clusters need roles that grant only the access each team should have. Your teams should review the role mapping, the audit log settings, and the TLS configuration before go-live.
Can our own platform team build and run this without a partner?
Yes, if your team already runs OpenSearch clusters with the Security plugin and has experience with TLS, role mapping, and the identity provider. The build is a set of connection definitions, role assignments, and tests, not a new product. A partner adds value when several clusters must share one identity model, when permissions need design across many teams, or when your staff lack time for testing. Compare the cost of your own team's time with a fixed-scope quote, and confirm your team's skills against the documented steps before deciding.
What is the remote_cluster_client role and why does it matter?
The remote_cluster_client role is needed on any node that overrides node.roles, because those nodes must be able to act as clients to remote clusters. If a node has custom roles and lacks this role, cross-cluster queries can fail even when the connection settings are correct. Your engineers should check every coordinating node, and the verification plan should include a query from each node that receives client traffic, not only from one test host.
What breaks most often in cross-cluster search deployments?
The most common failures come from mismatched identity configuration, missing backend roles, and nodes that override their roles without the required client role. Certificate trust problems and firewall rules between clusters also cause failures that look like permission errors. Ask for a test plan that covers a successful query, a query denied by remote permissions, a user missing a backend role, and a cluster that goes offline, so your team knows how each failure appears in logs and in the response.
Does the 3.9 remote role evaluation option change the effort?
OpenSearch 3.9.0 was released on September 29, 2026, and the topic includes an option for remote role evaluation in that release. Confirm in the 3.9 documentation whether your clusters can use it and how it changes where permissions are checked before you plan around it. Changing evaluation behavior affects role design and testing, so include that decision in the written scope and have your security team sign off on the chosen model.
How DeployOpen scopes and delivers cross-cluster search
DeployOpen plans cross-cluster search as part of the clusters it deploys in your own infrastructure, so the remote connections, roles and permission model are agreed before any query goes live. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
How we scope
- Inventory which clusters hold the indices to be queried and which cluster users will search from
- Record the identity backend, backend roles and the permissions each group needs on each remote cluster
- Agree in writing whether remote role evaluation is in scope and which OpenSearch version is targeted
How we build
- Configure remote cluster connections and assign the remote_cluster_client role on nodes that override node.roles
- Map backend roles so the coordinating cluster forwards user identity correctly to each remote cluster
- Test allowed and denied queries per role on every remote cluster, with failures documented as findings
How we hand over
- Deliver the role mapping, connection settings and permission matrix as documented, version-controlled configuration
- Provide a runbook for adding a cluster, rotating certificates and troubleshooting failed remote queries
- Walk your security and platform teams through the authentication flow and the audit log entries it produces
How we support
- Review each OpenSearch minor release for changes affecting remote connections and permission behavior
- Retest cross-cluster queries after upgrades, certificate rotation and changes to identity provider groups
- Offer ongoing support, upgrades and continuous testing as a retainer, priced from the written scope

