Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication with SAS tokens requires container creation privileges #21

Open
Kargo opened this issue Jan 6, 2023 · 0 comments
Open

Comments

@Kargo
Copy link

Kargo commented Jan 6, 2023

Authenticating the Azure client using a SAS token, without container creation privileges, causes the application to crash.

So far I've identified the following code in AzureDirectory.cs as part of the problem:

public void CreateContainer()
{
    _blobContainer = _blobClient.GetContainerReference(_catalog);

    // create it if it does not exist
    _blobContainer.CreateIfNotExists();
}

The call to CreateIfNotExist() will fail with HTTP status code 403 if the provided credentials lack container creation privileges. This happens even when the container already exists.

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

No branches or pull requests

1 participant