PHPCRED-29: Audit log by email plugin



Issue Information

Issue Type: New Feature
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: PHPCredlocker (PHPCRED)
Resolution: Done (2014-08-07 01:19:01)
Components: Plugins ,

Created: 2014-08-06 00:08:08
Time Spent Working


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 Links

Toggle State Changes

Activity


Created repo PHPCredLocker_Audit_by_email_plugin.git on Rimmer
As most of the functionality already exists in the Affinity live plugin, will add that as a starting point
First test was successful but it dramatically slows credential retrieval, need to look at whether we can get away with forking to background
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.
All functionality appears to be working, marking as implemented. Will need to decide whether to publish the plugin or not.
btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'