Closed
Bug 1217536
Opened 10 years ago
Closed 10 years ago
allow inbound_proxy supports '*'
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: glob, Assigned: dylan)
References
Details
Attachments
(1 file)
|
5.90 KB,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
update inbound_proxy to support '*' (always honour the x-forward-for header).
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dylan
| Assignee | ||
Comment 1•10 years ago
|
||
For the AWS proxy stuff.
I used http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/x-forwarded-headers.html for reference.
Attachment #8678361 -
Flags: review?(dkl)
Comment 2•10 years ago
|
||
Comment on attachment 8678361 [details] [diff] [review]
1217536_1.patch
Review of attachment 8678361 [details] [diff] [review]:
-----------------------------------------------------------------
1. Rename t/remote_ip.t to t/013remote_ip.t
2. Add test case for an ipv6 style proxy and remote ip.
3. Update inbound_proxies description in template/en/default/admin/params/advanced.html.tmpl to account for '*'.
Fix on commit. r=dkl
::: Bugzilla/Util.pm
@@ +316,5 @@
> + return $remote_ip if none { $_ eq $remote_ip } @proxies;
> +
> + foreach my $ip (reverse @x_forwarded_for) {
> + if (none { $_ eq $ip } @proxies) {
> + # Kep the original IP address if the remote IP is invalid.
s/Kep/Keep/
Attachment #8678361 -
Flags: review?(dkl) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
f521f52..175f9c1 master -> master
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•