Duke-GCB / Duke-GCB/DukeDSClient
Remove need to login with azcopy
- Dominant language
- Python
- Stars
- 5
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
The current Azure Blob Storage code requires that the user previously logged in with the `azcopy` command for uploading and downloading. Remove this requirement to avoid users needing to login multiple times.
We currently reference the bucket(container)/path with a plain URL:
https://github.com/Duke-GCB/DukeDSClient/blob/0b4eb2722bc12d47c1fff5e54c12debea8749e2e/ddsc/azure/api.py#L163
https://github.com/Duke-GCB/DukeDSClient/blob/0b4eb2722bc12d47c1fff5e54c12debea8749e2e/ddsc/azure/api.py#L173
If we used a SAS URL to reference the bucket(container)/path there would be no need to login with azcopy.
https://github.com/Duke-GCB/DukeDSClient/blob/0b4eb2722bc12d47c1fff5e54c12debea8749e2e/ddsc/azure/api.py#L135-L139
We are not currently doing so because the test environment does not currently allow creating SAS URLs.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.