Blob data contributor role and chmod #1247
-
Hi all, Lately, we have been trying to incorporate blobfuse in a pipeline and we have observed some issues. We gave the service principal the Storage Blob Data Contributor role and reading data works fine. But whenever we want to write a file in a directory we get an input/output error. Further investigation into the syslog shows that the blobfuse driver issues a chmod call to the API, which is denied with a 403 since we did not assign the Storage Blob Data Owner role. However, we do not really care about the mode of the written file. Is there any option to prevent the blobfuse driver from changing the permissions or do we have to assign the Storage Blob Data Owner role? Kind regards and thanks in advance for the help, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Are you using a HNS enabled account ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! Here a quick printout of the error we get
But basically you suggest that for a HNS enabled account we should just assign a Storage Blob Data Owner role and that the Storage Blob Data Contributor role is just not enough? |
Beta Was this translation helpful? Give feedback.
-
"Silently Ignored" only for non-HNS account. You are getting "loudly denied" as HNS is enabled :) |
Beta Was this translation helpful? Give feedback.
"Silently Ignored" only for non-HNS account. You are getting "loudly denied" as HNS is enabled :)
For the role front you need to assign something that allows you to change the permissions/ACLs of a blob so "Data owner" might do the trick along with "Blob Data Contributor" role.
One possible workaround might be to not instruct blobfuse that you are on a HNS account and set "blob" endpoint. This might not allow you to do certain operations (which HNS enabled accounts let you do) but if wish to only upload/downlaod data that shall work fine.