Page MenuHomePhabricator

Show correct external IP addresses (XFF support) in activity log
Closed, DuplicatePublic

Description

It seems Phabricator is reporting any activity as that of cp1043/10.64.0.171, rather than the users external IP address

[23:07:58] <Reedy> https://phabricator.wikimedia.org/settings/panel/activity/
[23:08:03] <Reedy> IP 10.64.0.171
[23:08:10] <Reedy> Does it not have xff or similar?
[23:09:32] <chasemp> xff?
[23:10:00] <Reedy> X-Forwarded-For
[23:10:17] <Reedy> we have something in MW so edits don't appear as being the varnish boxen (was for squid previously)
[23:11:21] <chasemp> it's a good thought and I guess it doesn't have the context, maybe we can fix that
[23:11:29] <twentyafterfour> it's a simple fix
[23:11:50] <twentyafterfour> https://secure.phabricator.com/book/phabricator/article/configuring_preamble/
[23:12:08] <Reedy> Shall I open a task for it?
[23:12:20] <chasemp> please
[23:12:27] <twentyafterfour> $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; // this goes in support/preamble.php

example activity

Event Timeline

Reedy raised the priority of this task from to Needs Triage.
Reedy updated the task description. (Show Details)
Reedy added a project: Bugzilla-Migration.
Reedy changed Security from none to None.
Reedy updated the task description. (Show Details)
Reedy subscribed.
chasemp renamed this task from Show correct external IP addresses (XFF support) to Show correct external IP addresses (XFF support) in activity log.Oct 23 2014, 10:24 PM
chasemp triaged this task as Medium priority.
chasemp updated the task description. (Show Details)
In T840#14192, @mmodell wrote:

This patch says

Abandoned
this functionality is incorporated into the redirection code in another changeset.

The redirection code was deployed, but this problem hasn't been solved yet.

@Qgil: It was abandoned because @chasemp wasn't comfortable with it for some reason. He wanted this handled separate from the redirection code (although that's where it belongs, IMO)

Ah, yes we waited on this but only for post migration so this should be fine.

chasemp lowered the priority of this task from Medium to Lowest.Mar 23 2015, 4:30 PM

This was blocked by the upstream bug that Chase linked above. It's now unblocked, apparently, as that bug has been fixed. I can implement the preamble script to make this report proper IPs but @Nemo_bis raised a concern about storing IPs in T105044. I'm not sure how to proceed.

mmodell changed the task status from Stalled to Open.Jul 9 2015, 6:45 AM

@Nemo_bis raised a concern about storing IPs in T105044.

I'd love to see a bit more elaboration on "Not storing private information in Phabricator is probably good" to understand better what's the potential problem to discuss.

Mine was not a concern about something, just a non-concern for the lack of it.