Skip to content

Conversation

dvaldivia
Copy link
Collaborator

This PR introduces a custom RoundTripper for the transport we use when communicating with MinIO via the SDKs.

The intention is to communicate the IP address of the actual user to MinIO.

While reviewing this PR:

If the request was available, that was used as an inline solution, like when the client is instantiated from the handler
context.Context was used whenever was possible as the middleware can introduce the IP address and have it be pass it around
websocket can't use the same context.Context have their own remoteAddress call

Fixes #2290

@dvaldivia dvaldivia force-pushed the pass-client-ip branch 2 times, most recently from 14f41b6 to 9f17bab Compare June 12, 2023 22:58
@dvaldivia dvaldivia merged commit 4a172fa into minio:master Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass client real IP address to minio api
5 participants