Repository navigation
Expose storage provider credentials for migration delegation keys - #1442
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 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
IStorageTokenCredentialProviderand expose the supplied credential from built-in Blob, Queue, and Table providers; connection-string providers returnnull. - 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
marked this pull request as ready for review
November 23, 2026 18:06
halspang
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.