You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "aersam (via GitHub)" <gi...@apache.org> on 2024/03/06 07:58:00 UTC

[I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

aersam opened a new issue, #5475:
URL: https://github.com/apache/arrow-rs/issues/5475

   delta-rs is using this config to connect to Azure Storage Emulator:
   
   ```python
   dict(
           AZURE_STORAGE_ACCOUNT_NAME="devstoreaccount1",
           AZURE_STORAGE_ACCOUNT_KEY="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",
           AZURE_STORAGE_CONTAINER_NAME="deltars",
           AZURE_STORAGE_USE_EMULATOR="true",
           AZURE_STORAGE_USE_HTTP="true",
       )
   ```
   
   this is passed via python, but it basically just sets the configs in object_store.
   
   In 0.9.1, this started to cause an authentication error:
   
   ```
   E       OSError: Generic MicrosoftAzure error: Client error with status 403 Forbidden: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   E       <Error>
   E         <Code>AuthorizationFailure</Code>
   E         <Message>Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature.
   E       RequestId:44a1c5ff-8a6b-491a-a890-e07d0d823e87
   E       Time:2024-03-05T11:31:55.140Z</Message>
   E       </Error>
   ```
   
    Can you check this?
   
   Since there was a check in Azure Authentication in object_store 0.9.1, is there some different config required? I was assuming a bug since it's only a minor version increase and the config looks good
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

Posted by "giacomorebecchi (via GitHub)" <gi...@apache.org>.
giacomorebecchi commented on issue #5475:
URL: https://github.com/apache/arrow-rs/issues/5475#issuecomment-2084748858

   Hi @ion-elgreco, I deep-dived into this as I'm looking to upgrade my `deltalake` dep in python, but some integration tests using `azurite` with code-generated SAS tokens started failing.
   
   Basically, in `object-store==0.9.0`, when `use_emulator="true"`, an account key is always passed, and the SAS token is ignored:
   https://github.com/apache/arrow-rs/blob/cb16050ec732872d5995c7420cc6858749bbf743/object_store/src/azure/builder.rs#L801-L811
   whereas, in `object-store==0.9.1`, the actual SAS token is passed:
   https://github.com/apache/arrow-rs/blob/30151220c29fa5e01365c2a4e153de01d5d2c041/object_store/src/azure/builder.rs#L826-L846
   
   Thus, I suspect that the issue you are encountering is rather linked to this issue:
   - https://github.com/Azure/Azurite/issues/1263
   
   I'll try to implement the fix to create a valid SAS token in my repo, and, if it works, I will try to open a PR also on `delta-rs`!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #5475:
URL: https://github.com/apache/arrow-rs/issues/5475#issuecomment-1980314470

   This is likely related to https://github.com/apache/arrow-rs/pull/5425


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #5475:  object_store 0.9.1 breaks Azure Storage Emulator Config
URL: https://github.com/apache/arrow-rs/issues/5475


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

Posted by "ion-elgreco (via GitHub)" <gi...@apache.org>.
ion-elgreco commented on issue #5475:
URL: https://github.com/apache/arrow-rs/issues/5475#issuecomment-2013258591

   @andrebsguedes @tustvold the test fails in our python integration tests. I checked but we don't have any env variables set for azure while this test is being executed
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

Posted by "andrebsguedes (via GitHub)" <gi...@apache.org>.
andrebsguedes commented on issue #5475:
URL: https://github.com/apache/arrow-rs/issues/5475#issuecomment-1980955843

   @aersam The current version of `object_store` respects other kind of credentials that were being ignored before. So if your test code is passing a dummy SAS token or bearer token it will fail to authenticate.
   
   I saw [this kind of pattern](https://github.com/delta-io/delta-rs/blob/d8366cfdc9eda68aa7ef1cd4ef5ff5c6ea55d5de/crates/azure/tests/context.rs#L84) on your repo, could that be an example of this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] object_store 0.9.1 breaks Azure Storage Emulator Config [arrow-rs]

Posted by "ion-elgreco (via GitHub)" <gi...@apache.org>.
ion-elgreco commented on issue #5475:
URL: https://github.com/apache/arrow-rs/issues/5475#issuecomment-2085754785

   @giacomorebecchi Cool! Just ping me when you push a PR in Delta-RS 😄 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org