Page MenuHomePhabricator

Send forced mail on SSH key edits
ClosedPublic

Authored by epriestley on May 19 2016, 6:04 PM.
Tags
None
Referenced Files
F13059714: D15948.diff
Fri, Apr 19, 4:42 PM
Unknown Object (File)
Thu, Apr 11, 9:38 AM
Unknown Object (File)
Sat, Apr 6, 3:00 PM
Unknown Object (File)
Sun, Mar 31, 10:11 PM
Unknown Object (File)
Sun, Mar 31, 4:33 AM
Unknown Object (File)
Sun, Mar 31, 1:14 AM
Unknown Object (File)
Sat, Mar 30, 7:03 PM
Unknown Object (File)
Sat, Mar 30, 6:38 PM
Subscribers
None

Details

Summary

Ref T10917. This cheats fairly heavily to generate SSH key mail:

  • Generate normal transaction mail.
  • Force it to go to the user.
  • Use setForceDelivery() to force it to actually be delivered.
  • Add some warning language to the mail body.

This doesn't move us much closer to Glorious Infrastructure for this whole class of events, but should do what it needs to for now and doesn't really require anything sketchy.

Test Plan

Created and edited SSH keys, got security notice mail.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Send forced mail on SSH key edits.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.May 19 2016, 9:57 PM
This revision was automatically updated to reflect the committed changes.