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

Public access to images #42

Open
josecelano opened this issue Oct 6, 2021 · 1 comment
Open

Public access to images #42

josecelano opened this issue Oct 6, 2021 · 1 comment
Milestone

Comments

@josecelano
Copy link
Member

We have been using Azure Blog Storage with SAS tokens for authentication so far. That's ok for maintainers but how we can give read access to everybody. I think we should have a basic installation like this:

git clone [email protected]:Nautilus-Cyberneering/chinese-ideographs.git
export AZURE_STORAGE_ACCOUNT='nautiluscyberneering'
export AZURE_STORAGE_SAS_TOKEN='?sv=2020-08-04&ss=bfqt&srt=sco&sp=rwdlacuptfx&se=2021-12-31T19:15:33Z&st=2021-10-01T10:15:33Z&spr=https&sig=PUBLIC_READ_ONLY_TOKEN'
dvc pull

I tried to generate a read-only SAS token:

image

but it does not work. I was able to push new images with dvc push.

I have opened a topic on the DVC community: https://discuss.dvc.org/t/read-only-access-using-azure-blog-storage/910

I think it should be possible.

Official docs: https://docs.microsoft.com/en-us/rest/api/storageservices/create-service-sas#ad-hoc-sas-versus-stored-access-policy

@josecelano josecelano added this to the POC01 milestone Oct 6, 2021
@josecelano
Copy link
Member Author

josecelano commented Oct 6, 2021

It seems you can change the access level of the container:

image

but I would prefer to create a token with read-only permissions if possible because that way we could even control who has read access. People could ask for a read-only token. But anyway it seems once you generate one SAS token there is no way to revoke it: https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview#best-practices-when-using-sas or I least, I do not find any option to list them and revoke them manually.

@josecelano josecelano modified the milestones: POC01, REL02 Oct 29, 2021
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