Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: cache clientIP in GetConsoleHTTPClient #3056

Merged
merged 13 commits into from
Oct 9, 2023
Merged

Conversation

adriangitvitz
Copy link
Contributor

@adriangitvitz adriangitvitz commented Sep 21, 2023

Fixes: #3010

Changes:

  • Remove cache for ClientIP

This was tested using the provided nginx configuration from the following discussion
( minio/minio#17878 (comment))

Local test environment, using LXC ( Ubuntu 22.04 ):

  • Nginx Proxy
  • Minio Server

restapi/client-admin.go Outdated Show resolved Hide resolved
@cesnietor
Copy link
Collaborator

Can you please add more details to the description of the PR, including which issue it fixes, changes/context and how to test it.
Some examples: #3047, #3038.

@dvaldivia
Copy link
Collaborator

I tested the fix, it does addresses the problem, but let's remove the http client cache and make the casting of the transport more defensive

restapi/client-admin.go Outdated Show resolved Hide resolved
dvaldivia
dvaldivia previously approved these changes Oct 9, 2023
Copy link
Collaborator

@dvaldivia dvaldivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Works as expected.

Copy link
Collaborator

@dvaldivia dvaldivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested.

Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Tested along side with @dvaldivia & @adriangitvitz

@dvaldivia dvaldivia dismissed harshavardhana’s stale review October 9, 2023 19:07

There's no global storage of the client anymore

@bexsoft bexsoft enabled auto-merge (squash) October 9, 2023 19:12
@bexsoft bexsoft merged commit 4018add into minio:master Oct 9, 2023
30 checks passed
@cesnietor cesnietor mentioned this pull request Nov 1, 2023
cesnietor pushed a commit to cesnietor/console that referenced this pull request Jan 12, 2024
cesnietor pushed a commit to cesnietor/console that referenced this pull request Jan 12, 2024
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.

GetConsoleHTTPClient should not cache clientIP
6 participants