Skip to content

SearchAggregateRbacIT: skip the restricted-user tests on an external cluster - #35477

Merged
mohityadav766 merged 1 commit into
mainfrom
fix/search-aggregate-rbac-it-external-mode
Oct 16, 2026
Merged

mohityadav766 merged 1 commit into
mainfrom
fix/search-aggregate-rbac-it-external-mode

Conversation

@mohityadav766

Copy link
Copy Markdown
Member

Describe your changes:

Fixes the SearchAggregateRbacIT failures that have failed every main nightly cluster run since #35148 merged on 2026-10-12 (openmetadata-nightly k8s-java-it, job "Java UI + Search ITs").

  • What fails: three of its four tests error with 401 Not Authorized! Token signing key not found in configured public keys … JWT Token keyID doesn't match the configured keyID. This happened in nightly runs 38340813961 and 38504749438 (scheduled) and 38518461916 (dispatch).
  • Why: those three tests call the API as a restricted user. That user's client comes from SdkClients.createClient, which signs the token with the harness key, and a deployed cluster does not trust that key.
  • Knock-on effect: scale-it runs only when search-it passes, so the whole scale matrix has been skipped on main since 10-13, including the new lineage benchmark.

Change: the three tests now skip in external mode, the way the other search ITs that cannot run against a cluster do (assumeTrue(!OssTestServer.isExternalMode(), …), as in LiveSearchSettingsChangeIT).

  • They also switch the global search access-control setting, which those tests keep off a shared cluster for the same reason.
  • test_aggregate_adminSeesBothDomains uses only the admin client and keeps running on the cluster.
  • In embedded mode the assumption holds, so all four tests run exactly as before, and the merge queue's search-it lane still covers the RBAC behaviour.

No issue: this fixes a failing test, so it carries skip-pr-checks.

Type of change:

  • Bug fix

High-level design:

N/A — a test-only change to one class.

Tests:

Use cases covered

  • Against a deployed cluster, the three restricted-user tests are skipped instead of failing with 401, and the admin test still runs.
  • Embedded, all four tests run unchanged.

Unit tests

Not applicable — test-only change.

Backend integration tests

  • Not applicable (no backend API changes).
  • Ran the three restricted-user tests in external mode against a local server (OM_URL + OM_ADMIN_TOKEN, -P search-it -Dskip.embedded.bootstrap=true): 3 skipped with the new reason before any server call, 0 failures.
  • Not run locally: the embedded run. The change only adds an assumption that holds in embedded mode, and the merge queue runs the class embedded.

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

  • The three nightly runs above show the 401s before the change.

UI screen recording:

Not applicable — test-only change.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — a test fix, so no issue (skip-pr-checks).
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — as above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Decision check: no durable decision; it follows the existing external-mode skip pattern.

🤖 Generated with Claude Code

…cluster

The restricted user's client signs its token with the harness key, which a deployed cluster
rejects. Three of the four tests have failed with 401 on every nightly cluster run since #35148,
and scale-it, which runs only when search-it passes, was skipped with them. They now skip in
external mode, as the other search ITs that cannot run against a cluster do. Embedded runs are
unchanged.
@mohityadav766 mohityadav766 added the skip-pr-checks Bypass PR metadata validation check label Oct 14, 2026
@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Oct 14, 2026
@gitar-bot

gitar-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Skipping three restricted-user RBAC tests in external mode reduces cluster coverage and could leave regressions in those authorization paths undetected.

Skips the three restricted-user tests in SearchAggregateRbacIT when running against an external cluster, since their JWT signing key is not trusted there, and disables the global search access-control setting for them. test_aggregate_adminSeesBothDomains still runs on the cluster, and all four tests run unchanged in embedded mode. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@mohityadav766 mohityadav766 self-assigned this Oct 14, 2026
@mohityadav766
mohityadav766 added this pull request to the merge queue Oct 15, 2026
@karanh37
karanh37 removed this pull request from the merge queue due to a manual request Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-15T17:20:43Z)

Blocked the queue: integration-tests-mysql-elasticsearch, integration-tests-postgres-opensearch

@mohityadav766
mohityadav766 added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit e3e7bc6 Oct 16, 2026
105 of 125 checks passed
@mohityadav766
mohityadav766 deleted the fix/search-aggregate-rbac-it-external-mode branch October 16, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants