########################################################################################## PHPCRED-29: Audit log by email plugin ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2014-08-07 01:19:01) Project: PHPCredlocker (PHPCRED) Reported By: btasker Assigned To: btasker Components: - Plugins Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== To help monitor access to the system, might be helpful to have a basic audit log entry emailed to a specific address. The plugin should allow a specific subject line to be set. Should be reasonably easy to build as can be based off the Affinity Live plugin ----------------------------------------------------------------------------------------- Issue Relations ================ - blocks PHPCREDPI-21: Audit logs by email ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2014-08-06 21:32:32 btasker ----------------------------------------------------------------------------------------- Created repo _PHPCredLocker_Audit_by_email_plugin.git_ on Rimmer ----------------------------------------------------------------------------------------- 2014-08-06 21:37:24 btasker ----------------------------------------------------------------------------------------- As most of the functionality already exists in the Affinity live plugin, will add that as a starting point ----------------------------------------------------------------------------------------- 2014-08-06 22:17:11 btasker ----------------------------------------------------------------------------------------- First test was successful but it dramatically slows credential retrieval, need to look at whether we can get away with forking to background ----------------------------------------------------------------------------------------- 2014-08-06 22:37:29 btasker ----------------------------------------------------------------------------------------- Have changed method _sendEmail_ to call _mail_ directly (as a background task). Means we can't specify the from address, and the user running the webserver must have access to the mail command. However it removes the delay and works OK on my machine. ----------------------------------------------------------------------------------------- 2014-08-07 01:18:54 btasker ----------------------------------------------------------------------------------------- All functionality appears to be working, marking as implemented. Will need to decide whether to publish the plugin or not. ----------------------------------------------------------------------------------------- 2014-08-07 01:19:01 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'Resolved' ----------------------------------------------------------------------------------------- 2014-08-07 01:19:01 ----------------------------------------------------------------------------------------- btasker added 'Done' to resolution ----------------------------------------------------------------------------------------- 2014-08-07 01:19:07 ----------------------------------------------------------------------------------------- btasker changed status from 'Resolved' to 'Closed' ----------------------------------------------------------------------------------------- 2014-08-07 02:11:55 btasker ----------------------------------------------------------------------------------------- Wiki page created - https://wiki.bentasker.co.uk/PHPCredLocker/AuditByEmailPlugin