Closed Bug 1541172 Opened 6 years ago Closed 6 years ago

Spurious "secure" emails from phabricator when a revision is filed and then its related revisions change

Categories

(Conduit :: Phabricator, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: smacleod)

References

Details

(Keywords: conduit-triaged, conduit-upstream)

Attachments

(4 files)

I received two emails this morning about https://phabricator.services.mozilla.com/D25726

The first one has the subject [Differential] [Request] [++-- ] D25726: Bug 1540962 - Make nsICommandManager builtinclass and make users use nsCommandManager directly and the body indicates that the revision is being created:

  masayuki created this revision.
  masayuki added a reviewer: bzbarsky.

The second email has the subject [Differential] D25726: Revision Updated and the body says:

  This secure message is notifying you of a change to this object:

  https://phabricator.services.mozilla.com/D25726

  The content for this message can only be transmitted over a secure channel. To view the message content, follow this link:

  https://phabricator.services.mozilla.com/mail/detail/655195/

That last link just shows a child revision being added to D25726.

Why was that second message sent as a "secure" message that I had to go read in a browser instead of in my mail client?

Note: I also got two emails for https://phabricator.services.mozilla.com/D25727 in the same way: one mail that says it's been created, and a "secure" one pointing to https://phabricator.services.mozilla.com/mail/detail/655226/ which is again a notification that a child revision was added.

:dkl, could this be due to the change in upstream phabricator around secure emails on linked revisions?

Flags: needinfo?(dkl)
Keywords: conduit-triaged
Priority: -- → P1

I think what happened is a timing issue. The child revision was created and then added to the parent while the child was still secured by the 'secure-revision' policy. So the email about the child revision being added to the parent was sent as a secured email. BMO then came around shortly after and unlocked the child revision. You can see this in the revision history of https://phabricator.services.mozilla.com/D25727 I assume these were created using moz-phab and mozphab is probably creating the revision chain faster then BMO can update the revisions so this may always be an unfortunate side-effect with how we do security policies for revisions.

Flags: needinfo?(dkl)

Can we fix moz-phab to not do the chaining until the revisions have been poked by BMO?

Alternately, of course, we could fix our secure mail setup to not have unreadable mails....

(In reply to Boris Zbarsky [:bzbarsky, bz on IRC] from comment #3)

Can we fix moz-phab to not do the chaining until the revisions have been poked by BMO?

no, this isn't viable for many reasons (eg. bmo updates are async and may take a while to complete, moz-phab isn't the only client, ...).

OK. I mean, fixing the secure mail setup would obviously be vastly preferable from my pov for all sorts of reasons. ;)

Fwiw, I get a bunch of these any time someone posts a patch queue to phabricator, apparently. :( Got 4 for the patches in bug 1542932.

Assignee: nobody → smacleod

:bzbarsky, any chance you could attach original emails for me? Both the created emails for the two revisions and the secure message about the link being added. I'm interested in more specific timing information.

Flags: needinfo?(bzbarsky)

I've engaged upstream on the best way forward here, awaiting a response.

The current upstream plan is to remove these dependency change emails entirely, as they interact with other pieces of Phabricator in complex ways. I'm leaning towards not pushing back on this, but I'm open to hearing compelling reasons we really need these notifications still (assuming they'd be in the email, not behind a link). :bzbarksy, since you reported, how do you feel about this solution?

Flags: needinfo?(bzbarsky)

(In reply to Steven MacLeod [:smacleod] from comment #13)

The current upstream plan is to remove these dependency change emails entirely, as they interact with other pieces of Phabricator in complex ways. I'm leaning towards not pushing back on this, but I'm open to hearing compelling reasons we really need these notifications still (assuming they'd be in the email, not behind a link). :bzbarksy, since you reported, how do you feel about this solution?

@smacleod, what if we just have them remove the child/parent revision summary from the change emails? Just state that some revision id has become a child/parent of another revision id with a link the user can click on to go to either revision. It has been decided in other places such as BMO that IDs are not considered sensitive information.

(In reply to David Lawrence [:dkl] from comment #14)

@smacleod, what if we just have them remove the child/parent revision summary from the change emails? Just state that some revision id has become a child/parent of another revision id with a link the user can click on to go to either revision. It has been decided in other places such as BMO that IDs are not considered sensitive information.

Yes, and that's exactly what I proposed to upstream, but they would much rather remove these entirely due to complexity and interaction with other features.

I would have no problem with the dependency-change emails going away entirely, personally.

Flags: needinfo?(bzbarsky)

This will go out with the next Phabricator production deploy.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: