Skip to content

Expose storage provider credentials for migration delegation keys - #1442

Merged
sophiatev merged 2 commits into
mainfrom
stevosyan/storage-migration-credentials
Nov 23, 2026
Merged

sophiatev merged 2 commits into
mainfrom
stevosyan/storage-migration-credentials

Conversation

@sophiatev

Copy link
Copy Markdown
Contributor

Table user-delegation key acquisition needs the same Entra credential used by the storage client. Add the optional IStorageTokenCredentialProvider interface and expose that credential from the built-in Blob, Queue, and Table providers. Connection-string providers return null, and existing custom providers can keep implementing only IStorageServiceClientProvider.

The production changes are extracted unchanged from stevosyan/storage-migration. SAS key acquisition, renewal, and runtime wiring follow separately. This PR adds no performance telemetry.

Also correct the previously merged migration-control test path from Test/ to test/ so case-sensitive checkouts include it in the test project.

Validation: 25 focused tests passed on each of net8.0 and net48 (50 total), covering both credential factory overloads, connection-string providers, custom-provider compatibility, and the existing migration-control tests.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 17:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review identifies no active issues with the optional credential-access interface and built-in provider updates.

No open issues 🎉

What changed in this PR

This PR adds optional access to storage providers’ Entra credentials, preparing the Azure Storage backend for migration delegation-key acquisition without changing the existing custom-provider contract. Key acquisition, renewal, and runtime wiring remain outside this PR.

Changes:

  • Add IStorageTokenCredentialProvider and expose the supplied credential from built-in Blob, Queue, and Table providers; connection-string providers return null.
  • Add tests for credential identity, both credential factory overloads, and custom-provider compatibility.
  • Move migration-control tests to lowercase test/ so case-sensitive checkouts include them.
File Description
test/​DurableTask.AzureStorage.Tests/​StorageServiceClientProviderTests.cs Tests credential exposure and provider compatibility.
test/​DurableTask.AzureStorage.Tests/​AzureStorageMigrationTests.cs Relocates migration-control tests into the active test directory.
src/​DurableTask.AzureStorage/​StorageServiceClientProvider.cs Passes credentials into built-in providers.
src/​DurableTask.AzureStorage/​IStorageTokenCredentialProvider.cs Defines the optional credential-access interface.
src/​DurableTask.AzureStorage/​DefaultStorageServiceClientProvider.cs Stores and exposes the nullable credential.

Review effort: Balanced

@sophiatev
sophiatev marked this pull request as ready for review November 23, 2026 18:06
@sophiatev
sophiatev merged commit a50aca2 into main Nov 23, 2026
47 checks passed
@sophiatev
sophiatev deleted the stevosyan/storage-migration-credentials branch November 23, 2026 18:48
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.

3 participants