janjagusch opened a new issue, #415:
URL: https://github.com/apache/arrow-rs-object-store/issues/415

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   The Azure client currently checks for sensitive information (e.g., SAS 
tokens) in the URL and, if it finds some, replaces the full URL with 'REDACTED'.
   
   
https://github.com/apache/arrow-rs-object-store/blob/40d30c6710d8d43d11d44e377a51602513f6dfac/src/azure/client.rs#L1007-L1026
   
   
https://github.com/apache/arrow-rs-object-store/blob/40d30c6710d8d43d11d44e377a51602513f6dfac/src/azure/credential.rs#L142-L152
   
   In theory, it's great that this library prevents accidentally printing 
secrets in error messages. However, there are situations where you want to know 
exactly which request was sent, especially when you're debugging.
   
   Currently, I'm trying to debug a failed network request to Azure blob 
storage, but all I see is:
   
   ```
   Error performing GET REDACTED in 312.764628ms, after 2 retries, max_retries: 
2, retry_timeout: 10s
   ```
   
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   I want to be able to configure if a request URL gets redacted or not. 
Ideally, I can configure the behaviour via an environment variable.
   
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   Alternatively, the library could only redact the query parameters (i.e., 
where the SAS token is stored), but not the URL itself.
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   
   I'm using this library via polars.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to