I have a large multi-story Symfony2 application using doctrine and about 40-50 database tables in MySQL.
Does anyone have experience setting up an audit trail process to at least keep track of all Doctrine actions that create, edit, or delete data in a large application?
Ideally, this should “just happen” so that the other developer doesn't have to worry about making their new entities or “loggable” code.
I have no specific meeting requirements (HIPAA, etc.), but it would be nice to be as close to any ISO27000 best practices as I can be.
My inner plan is to look at using some Doctrine lifecycle callbacks to capture information and push it into a separate MySQL database without DELETE or UPDATE permissions. I am worried that this method can greatly affect performance.
Has anyone done this before or something similar that has any hints or warning words that I plan to use?
If this is important, the entire stack runs on AWS, and I can use any of my services in the EU-West-1 region. I already use things like RDS, Elasticache and SQS.
Thanks!
source share