Skip to content

feat: make Azure cloud authority configurable for SPN auth#13898

Open
yuzhichang wants to merge 1 commit intoinfiniflow:mainfrom
yuzhichang:emdash/feat-request-azure-public-4gc
Open

feat: make Azure cloud authority configurable for SPN auth#13898
yuzhichang wants to merge 1 commit intoinfiniflow:mainfrom
yuzhichang:emdash/feat-request-azure-public-4gc

Conversation

@yuzhichang
Copy link
Copy Markdown
Member

Summary

  • The Azure SPN storage handler hardcoded AzureAuthorityHosts.AZURE_CHINA, preventing users in Azure Public Cloud regions (UK-South, EU, US, etc.) from authenticating
  • Add a cloud config option (env: AZURE_CLOUD) supporting all four Azure sovereignties: public, china, government, germany
  • Defaults to public (global Azure) — the most common international use case

Closes #13259

Test plan

  • Verify default (cloud: public) connects to Azure Public Cloud endpoints
  • Verify cloud: china retains existing behavior for Azure China users
  • Verify AZURE_CLOUD env var overrides the config file value

🤖 Generated with Claude Code

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 2, 2026
@yuzhichang yuzhichang added the ci Continue Integration label Apr 2, 2026
@yuzhichang yuzhichang marked this pull request as draft April 2, 2026 08:11
@yuzhichang yuzhichang marked this pull request as ready for review April 2, 2026 08:11
The Azure SPN storage handler hardcoded AzureAuthorityHosts.AZURE_CHINA,
preventing users in Azure Public Cloud regions (UK-South, EU, US, etc.)
from authenticating. Add a `cloud` config option (env: AZURE_CLOUD)
supporting all four Azure sovereignties: public, china, government,
germany. Defaults to "public" (global Azure).

Closes infiniflow#13259

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yuzhichang yuzhichang force-pushed the emdash/feat-request-azure-public-4gc branch from d9a53af to edc5339 Compare April 2, 2026 09:44
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.52%. Comparing base (dd52913) to head (edc5339).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13898   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files          10       10           
  Lines         690      690           
  Branches      108      108           
=======================================
  Hits          666      666           
  Misses          8        8           
  Partials       16       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add Support for Azure Public Cloud Regions (UK-South, EU, etc.)

1 participant