new feature: `Operator` built with `Azblob::sas_token` should support token refresh
Feature Description
I'd like to be able to continue using the same Operator through SAS token updates.
Problem and Solution
Right now, if I want to refresh a SAS token, I would need to build a new Operator, because Azblob::sas_token takes a &str.
I believe the solution is to provide an Arc<RwLock<String>> (or equivalent wrapper) instead, so that the token can be updated externally.
Additional Context
No response
Are you willing to contribute to the development of this feature?
- [x] Yes, I am willing to contribute to the development of this feature.
After digging into the code a bit, I see that reqsign 0.17.0 has a ProvideCredential trait that should satisfy my use case. I assume the upgrade work is happening in https://github.com/apache/opendal/issues/6553.
@Xuanwo As part of the upgrade, will the AzblobBuilder allow passing in an arbitrary ProvideCredential?
FWIW I hacked in the API I needed on a fork.
I will probably patch this into my project while waiting for the better upstream solution.