HomePhabricator

Send forced mail on SSH key edits

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

Provenance
epriestleyAuthored on May 19 2016, 5:34 PM
epriestleyPushed on May 19 2016, 10:01 PM
Reviewer
chad
Differential Revision
D15948: Send forced mail on SSH key edits
Parents
rPda6b3de65c14: Use transactions to apply web UI SSH key edits
Branches
Unknown
Tags
Unknown
Tasks
T10917: Build Glorious High-Security Notification/Audit Infrastructure
Build Status
Buildable 12278
Build 15518: Run Core Tests