You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Forward the client IP to the API in WebGUI 7.4 - #2848
The WebGUI's nginx configuration proxies API requests over a Unix socket, so the API cannot get the client IP from the socket. Set X-Forwarded-For from nginx's client address in the generated /graphql location. The rule takes effect through WebGUI's normal nginx configuration lifecycle.
Shell syntax and generated location checks passed. Paired QAVM validation with API #2128 remains open.
Requests routed through the GraphQL proxy now include the client’s connecting IP address in the X-Forwarded-For header. This allows the receiving service to see the source address associated with the incoming connection, rather than relying on a missing or inaccurate forwarded address.
The GraphQL proxy now passes the client address to the API so per-client handling can work over the Unix socket. No concrete merge-blocking risk was found. Paired validation with the API change is still worth completing.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Forward the client IP to the API in WebGUI 7.4" matches the main change. The raw summary shows the GraphQL proxy location in etc/rc.d/rc.nginx now sets X-Forwarded-For to $remote_addr, whic…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Forward the client IP to the API in WebGUI 7.4" matches the main change. The raw summary shows the GraphQL proxy location in etc/rc.d/rc.nginx now sets X-Forwarded-For to $remote_addr, which forwards the client IP to the API. The objectives confirm the purpose: API requests proxy over a Unix socket, which does not carry the client IP. The title is short, specific, and names the target release. The changeset is one line in one file, so the title describes it accurately.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit hops beside the proxy line “The client’s address now travels fine!” One header joins the forwarding stream Through nginx, neat and clear as a dream I twitch my nose and celebrate the change!
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 21dc40c2-902d-49a6-9ff0-289ea778065a
Commits
Reviewing files that changed from the base of the PR and between d513b6d and d6e38ee.
Files selected for processing: 1
etc/rc.d/rc.nginx
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QA PassedQA passed (auto-managed by notification-worker)
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The WebGUI's nginx configuration proxies API requests over a Unix socket, so the API cannot get the client IP from the socket. Set X-Forwarded-For from nginx's client address in the generated /graphql location. The rule takes effect through WebGUI's normal nginx configuration lifecycle.
Shell syntax and generated location checks passed. Paired QAVM validation with API #2128 remains open.
Work Intent: OS-1092
API counterpart: unraid/api#2128
Summary by CodeRabbit
X-Forwarded-Forheader. This allows the receiving service to see the source address associated with the incoming connection, rather than relying on a missing or inaccurate forwarded address.