EnricoMi opened a new pull request, #8417:
URL: https://github.com/apache/hadoop/pull/8417

   ### Description of PR
   Similar to #7379 (HADOOP-18562), users might want to send custom headers for 
specific requests only.
   
   With
   ```xml
   <property>
       <name>fs.s3a.client.s3.custom.headers.request.DeleteObjectRequest</name>
       <description>List of custom headers to be set on the service client for 
this command.</description>
       <value>x-amz-delete-contents=true</value>
   </property>
   ```
   Only `DeleteObjectRequest` requests have a custom header 
`x-amz-delete-contents: true`.
   
   Note: `DeleteObjectRequest` is only an example here. Any request class name 
could be used here.
   
   See:
   - 
https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/s3/model/S3Request.html
   - 
https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/sts/model/StsRequest.html
   
   ### How was this patch tested?
   There is a unit test verifying the headers are injected into the AWS request 
objects.
   
   Integration test `ITestS3AContractDelete` has been run against a company S3 
point and headers show up only in the expected (delete) requests.
   
   ### For code changes:
   
   - [X] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [X] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   ### AI Tooling
   
   No AI tooling has been used.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to