1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52:41 +01:00
phorge-phorge/src/applications/maniphest
epriestley a15f07cc33 Allow Phabricator to be configured to use a public Reply-To address
Summary:
We already support this (and Facebook uses it) but it is difficult to configure
and you have to write a bunch of code. Instead, provide a simple flag.

See the documentation changes for details, but when this flag is enabled we send
one email with a reply-to like "D2+public+23hf91fh19fh@phabricator.example.com".
Anyone can reply to this, and we figure out who they are based on their "From"
address instead of a unique hash. This is less secure, but a reasonable tradeoff
in many cases.

This also has the advantage over a naive implementation of at least doing object
hash validation.

@jungejason: I don't think this affects Facebook's implementation but this is an
area where we've had problems in the past, so watch out for it when you deploy.
Also note that you must set "metamta.public-replies" to true since Maniphest now
looks for that key specifically before going into public reply mode; it no
longer just tests for a public reply address being generateable (since it can
always generate one now).

Test Plan:
Swapped my local install in and out of public reply mode and commented on
objects. Got expected email behavior. Replied to public and private email
addresses.

Attacked public addresses by using them when the install was configured to
disallow them and by altering the hash and the from address. All this stuff was
rejected.

Reviewed By: jungejason
Reviewers: moskov, jungejason, tuomaspelkonen, aran
CC: aran, epriestley, moskov, jungejason
Differential Revision: 563
2011-07-03 12:31:00 -07:00
..
constants Allow Maniphest filtering by "upforgrabs" explicitly 2011-06-29 13:59:45 -07:00
controller Allow Maniphest tasks to be filtered by Project 2011-06-29 21:56:47 -07:00
editor/transaction Allow Maniphest to scale to a massive size 2011-06-28 06:41:05 -07:00
query Allow Maniphest tasks to be filtered by Project 2011-06-29 21:56:47 -07:00
replyhandler Allow Phabricator to be configured to use a public Reply-To address 2011-07-03 12:31:00 -07:00
storage Allow Maniphest tasks to be filtered by Project 2011-06-29 21:56:47 -07:00
view Use phabricator_ time functions in more places 2011-06-26 10:38:25 -07:00