Browse Estate tree displays services outside the selected domain in Explore
Affected module
UI
Describe the bug
When selecting a Domain using the global domain picker in the navigation bar, the left-hand Browse Estate tree in the Explore page continues to display services that do not belong to the selected domain. However, when clicking on one of these services, the page displays a "No service found" message. The main search results appear to respect the selected domain correctly, but the Browse Estate tree does not, resulting in inconsistent behavior.
To Reproduce
- Navigate to OpenMetadata.
- Use the global domain picker in the navigation bar to select a Domain.
- Navigate to the Explore page.
- Look at the left-hand Browse Estate tree.
- Observe that services outside the selected domain are still displayed.
- Click on one of those services.
- Observe that the page displays a "No service found" message.
Expected behavior
When a Domain is selected using the global domain picker, the Browse Estate tree should only display services associated with that domain.
Services outside the selected domain should not appear in the tree.
OS
macOS Golden Gate 27.2
Python version
3.12
OpenMetadata version
2.0.5
OpenMetadata Ingestion package version
openmetadata-ingestions==2.0.5
Additional context
This behavior was also investigated by the OpenMetadata community team, who confirmed that it is not fixed in v2.0.8 when I inquired on slack.
According to their investigation, the service-level request (POST /search/aggregate) is not scoped to the selected domain, whereas the main results request (GET /search/query) is correctly scoped.
Pre-submission checklist
- [x] I searched for duplicate issues.
- [x] I removed credentials, hostnames, emails, and other sensitive data from logs and config.
Adding a related repro from a multi-tenant setup (2.0.7). Here, the gap is also a security leak, not only a UI inconsistency.
Setup: non-admin user with DomainOnlyAccessRole, inherited as a default role of their tenant Team, and one domain (domain isolation from #24180 / #28889).
What happens:
- Domain dropdown and main Explore results are correctly scoped ✅
- The Browse Estate tree lists services from all domains, with their asset counts ❌
- Same token, no domain filter in either request:
GET /v1/search/query?q=*&index=dataAsset→ only own-domain assets (total: 23, one service)POST /v1/search/aggregate(fieldName: service.displayName.keyword) → 26 buckets, 25 of them from other domains, each withdoc_count
So a restricted user can enumerate every tenant's service names and asset volumes by calling the API directly. #38236 scopes the tree client-side only, so the API path stays open.
As confirmed on Slack, 2.1.0 applies policy conditions to /search/aggregate when RBAC search is on. Could the server-side part be backported to 2.0.x, or is 2.1 the only way to close it? Thanks!
Thanks for the report and the detailed repro.
This is fixed in 2.1.0. When you select a domain in the global domain picker, the Browse Estate tree on the Explore page shows only the services in that domain.
Without a global domain selected, the tree works like this:
- Admin users: the tree lists all services. Roles and policies are never applied to admin searches.
- Non-admin users, with "Enable Roles & Policies in Search" off (the default): the tree also lists all services, including services from domains the user is not part of.
- Non-admin users, with "Enable Roles & Policies in Search" on: the tree shows only services from the domains the user belongs to, even when no global domain is selected. This needs a domain-scoped role, such as
DomainOnlyAccessRole.
To turn the setting on:
- Go to Settings → Preferences → Search.
- Enable Enable Roles & Policies in Search.
@GregorioBlazquez: with this setting on, 2.1.0 applies roles and policies on the server for POST /v1/search/aggregate. A restricted user can no longer list other domains' services or asset counts by calling the API directly. In 2.0.x that endpoint doesn't apply policies, so upgrading to 2.1.0 or later is the way to close it.
@karanh37 Thanks for the information!!