[ 
https://issues.apache.org/jira/browse/HADOOP-19860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072624#comment-18072624
 ] 

ASF GitHub Bot commented on HADOOP-19860:
-----------------------------------------

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.




> S3A: support custom per-request S3 and STS headers
> --------------------------------------------------
>
>                 Key: HADOOP-19860
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19860
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs/s3
>            Reporter: Enrico Minack
>            Priority: Minor
>
> Similar to HADOOP-18562, some users might want to add custom headers to some 
> specific requests only. Based on the AWS request name, users should be able 
> to define headers via configuration.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to