minio / minio-go

MinIO Go client SDK for S3 compatible object storage
https://docs.min.io/docs/golang-client-quickstart-guide.html
Apache License 2.0
2.45k stars 633 forks source link

Allow passing custom get query params #1905

Closed ashmrtn closed 10 months ago

ashmrtn commented 10 months ago

AWS documentation states that the caller is allowed to add additional query parameters starting with x- which will be ignored by S3 when processing the request. This is the recommended way to add custom information to access log output produced by AWS server access logging

This PR adds the ability to pass custom query parameters starting with x- to a get request, making this functionality available to users of minio-go. This can help users track down costs or figure out object access patterns in a more fine-grained manner than object tagging or storage lens could allow