Skip to content

fix: remove deprecated X-Tenant-ID header#119

Merged
saurabhjain1592 merged 11 commits intomainfrom
fix/remove-x-tenant-id-header
Apr 4, 2026
Merged

fix: remove deprecated X-Tenant-ID header#119
saurabhjain1592 merged 11 commits intomainfrom
fix/remove-x-tenant-id-header

Conversation

@saurabhjain1592
Copy link
Copy Markdown
Member

@saurabhjain1592 saurabhjain1592 commented Apr 3, 2026

Summary

  • Remove the addTenantIdHeader() method and all 3 call sites from AxonFlow.java
  • Remove inline X-Tenant-ID header in buildOrchestratorRequest()
  • Tenant identity is now derived server-side from OAuth2 client credentials
  • Fix flaky TelemetryReporterTest.testPayloadDeploymentModeEnterprise that assumed nothing runs on localhost:8080

Test plan

  • mvn compile passes (clean compilation)
  • All 1128 tests pass (mvn test)
  • No remaining X-Tenant-ID or addTenantIdHeader references in source
  • CI passes on this PR

Part of #1488: Unify auth to OAuth2 Client Credentials (RFC 6749).

Tenant identity is now derived from OAuth2 client credentials on the
server side. The X-Tenant-ID header is no longer needed.

Also fix flaky TelemetryReporterTest that assumed nothing runs on
localhost:8080 (use localhost:1 for deterministic connection-refused).

Part of #1488: Unify auth to OAuth2 Client Credentials (RFC 6749).
@saurabhjain1592 saurabhjain1592 force-pushed the fix/remove-x-tenant-id-header branch from 8ce2b1b to 3173357 Compare April 3, 2026 21:37
clientId-only configs previously sent no auth header when clientSecret
was null. Now always sends Basic auth with effective clientId (defaults
to "community") and empty secret for null clientSecret. Server derives
tenant from the auth header.
…field name

BREAKING: getMateriality() renamed to getMaterialityClassification().
The CI format check (com.spotify.fmt:fmt-maven-plugin:check) was failing
on pre-existing formatting violations. Ran the formatter on all files.
@saurabhjain1592 saurabhjain1592 force-pushed the fix/remove-x-tenant-id-header branch from a6cdb08 to 585ada4 Compare April 4, 2026 15:54
@saurabhjain1592 saurabhjain1592 merged commit 367bf25 into main Apr 4, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the fix/remove-x-tenant-id-header branch April 7, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant