Skip to content

Conversation

demoray
Copy link
Contributor

@demoray demoray commented Sep 27, 2023

This PR allows replacing credential details for existing StorageCredential instances. This allows clients to update the credentials as runtime, as seen in other SDKs.

Under the hood, StorageCredentialInner is kept behind an Arc<Mutex<_>>, which allows us to lock access to the

Ref: azure-sdk-for-net's AzureSasCredential.Update

This PR allows replacing credential details for existing
StorageCredential instances.  This allows clients to update the
credentials as runtime, as seen in other SDKs.

Ref: azure-sdk-for-net's [AzureSasCredential.Update](https://learn.microsoft.com/en-us/dotnet/api/azure.azuresascredential.update?view=azure-dotnet#azure-azuresascredential-update(system-string))
@demoray demoray linked an issue Sep 27, 2023 that may be closed by this pull request
@demoray demoray merged commit 93f069e into Azure:main Sep 28, 2023
@demoray demoray deleted the enable-updating-storage-credentials branch September 28, 2023 12:52
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.

[Feature] Allow updating SAS token on existing storage client

2 participants