Skip to content

feat: Azure identity for azure storage auth#3464

Merged
johanandren merged 8 commits intomainfrom
wip-azure-identity-auth-for-storage
Apr 15, 2026
Merged

feat: Azure identity for azure storage auth#3464
johanandren merged 8 commits intomainfrom
wip-azure-identity-auth-for-storage

Conversation

@johanandren
Copy link
Copy Markdown
Contributor

@johanandren johanandren commented Apr 14, 2026

Ammend the azure-storage auth options with azure-identity, enabling OAuth2 bearer token authentication.

  • Opt in dependency on azure-identity to not bring in the entire dependency graph by default, users opt in with an explicit dependency to actually use it
  • When authorization-type is set to BearerToken in config, DefaultAzureCredential is used automatically, supporting managed identity, workload identity, environment credentials, etc.
  • Users can also provide any custom TokenCredential programmatically via StorageSettings.withTokenCredential(credential), e.g. for User Assigned Managed Identity
    with a specific client ID
  • Token acquisition is async (bridges the Azure SDK Mono into the Akka Stream via Source.future), token caching/refresh handled by the Azure SDK internally

@probot-autolabeler probot-autolabeler Bot added dependency-change For PRs changing the version of a dependency. documentation labels Apr 14, 2026
@johanandren johanandren marked this pull request as draft April 14, 2026 12:55
@johanandren johanandren marked this pull request as ready for review April 15, 2026 09:43
Copy link
Copy Markdown
Contributor

@octonato octonato left a comment

Choose a reason for hiding this comment

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

Solid PR. Certified by deep expert.

I left two minor suggestions, but worth doing before merging.

Comment thread azure-storage/src/main/scala/akka/stream/alpakka/azure/storage/Settings.scala Outdated
@johanandren
Copy link
Copy Markdown
Contributor Author

I'm trying to add an integration test against azurite as well, before merging this.

@johanandren johanandren merged commit fdad2c3 into main Apr 15, 2026
53 checks passed
@johanandren johanandren deleted the wip-azure-identity-auth-for-storage branch April 15, 2026 13:38
@johanandren johanandren added this to the 10.0.4 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency-change For PRs changing the version of a dependency. documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants