Skip to content

Add Table user delegation key acquisition and SAS signing - #1443

Merged
sophiatev merged 4 commits into
mainfrom
stevosyan/storage-migration-table-sas
Nov 24, 2026
Merged

sophiatev merged 4 commits into
mainfrom
stevosyan/storage-migration-table-sas

Conversation

@sophiatev

Copy link
Copy Markdown
Contributor

Migration needs to acquire a Table user delegation key and sign short-lived SAS tokens using the same Entra credential as the storage provider. Add the internal TableUserDelegationKey helper, using the configured token audience, HTTP transport, and retry options. Key acquisition uses its own authenticated pipeline so it does not depend on a still-valid workload SAS.

The production helper is extracted unchanged from stevosyan/storage-migration. It signs table-scoped HTTPS tokens using the 2025-07-05 Table SAS format. This PR adds no runtime caller or performance telemetry; SAS renewal and client wiring follow separately.

Validation: 49 tests passed on each of .NET 8 and .NET Framework 4.8 (98 total). The 24 new cases cover request format and storage-clock timestamps, cloud/custom audiences, independent authentication, retries, cancellation, missing or wrong-service keys, and fixed signature vectors for table casing, account scope, and expiry. Tests use local HTTP responses without contacting Azure.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:50

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.

🟡 Changes recommended

XML error responses leave RequestFailedException.ErrorCode null, preventing callers from distinguishing service-specific authorization and configuration failures; XML parsing and ErrorCode test coverage are needed.

1 open issue
What changed in this PR

Adds an internal Table user delegation key helper to support migration SAS renewal using the storage provider’s Entra credential. Runtime callers and renewal wiring remain out of scope.

Changes:

  • Acquires delegation keys through an independent authenticated pipeline using configured audience, transport, and retry settings.
  • Signs table-scoped HTTPS SAS tokens using the 2025-07-05 format.
  • Adds local-response tests for acquisition, failure handling, cancellation, key validation, and signature vectors.
File Description
test/​DurableTask.AzureStorage.Tests/​TableUserDelegationKeyTests.cs Tests key acquisition and SAS signing without contacting Azure.
src/​DurableTask.AzureStorage/​Storage/​TableUserDelegationKey.cs Implements delegation key acquisition, validation, and Table SAS signing.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 23, 2026 21:41
@sophiatev
sophiatev marked this pull request as ready for review November 23, 2026 21:42

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 internal Table delegation-key helper and SAS-signing changes have no active review issues.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 23, 2026 21:50

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

No active review issues were identified for the internal Table delegation-key helper and SAS-signing changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 23, 2026 22:51

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

No active review issues were identified for the scoped Table user delegation key and SAS helper.

No open issues 🎉

Review effort: Balanced

@sophiatev
sophiatev merged commit 3a68ba4 into main Nov 24, 2026
46 of 48 checks passed
@sophiatev
sophiatev deleted the stevosyan/storage-migration-table-sas branch November 24, 2026 17:22
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