Skip to content

Remove need to login with azcopy #346

Description

@johnbradley

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:

destination_url = self.get_url(f"{project_path}/{directory_name}")

source_url = self.get_url(project_path)

If we used a SAS URL to reference the bucket(container)/path there would be no need to login with azcopy.
def get_sas_url(self, path, hours=6):
account_name = self.service.account_name
bucket_name = self.file_system.file_system_name
token = self.get_sas_token(hours=hours)
return f"https://{account_name}.blob.core.windows.net/{bucket_name}/{path}?{token}"

We are not currently doing so because the test environment does not currently allow creating SAS URLs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions