Homec4science

Send forced mail on SSH key edits

Authored by epriestley <git@epriestley.com> on May 19 2016, 19:34.

Description

Send forced mail on SSH key edits

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.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10917

Differential Revision: https://secure.phabricator.com/D15948

Details

Committed
epriestley <git@epriestley.com>May 20 2016, 00:01
Pushed
aubortJan 31 2017, 17:16
Parents
rPHda6b3de65c14: Use transactions to apply web UI SSH key edits
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH6f6ca0102daa: Send forced mail on SSH key edits (authored by epriestley <git@epriestley.com>).May 20 2016, 00:01