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

ws: Calculate the client IP from the WS request headers as well #3403

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

vadmeste
Copy link
Member

@vadmeste vadmeste commented Jul 9, 2024

Currently, the websocket code adds an IP to X-Forwarded-For where the IP is calculated
from the TCP connection established to Console, however the established TCP connection
can be coming from the load balancer as well, hence the necesssity to evaluate the client
IP based on X-Forwarded-For or X-Real-IP headers

Look for client IPs in the websocket request connection.

Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

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

no random logs please

api/ws_handle.go Outdated Show resolved Hide resolved
Currently, the websocket code adds an IP to X-Forwarded-For where the IP is
calculated from the TCP connection established to Console, however the established
TCP connection can be coming from the load balancer as well, hence the
necesssity to evaluate the client IP based on X-Forwarded-For or
X-Real-IP headers

Look for client IPs in the websocket request connection.
@harshavardhana harshavardhana merged commit e3e3599 into minio:master Jul 10, 2024
33 checks passed
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.

None yet

3 participants