Re: auditing with context?
- From: Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Mar 2009 12:49:56 +0000 (UTC)
On Thu, 12 Mar 2009 04:30:34 -0700, Elhanan wrote:
This is a system design issue rather than anything that's Java specific.
the user when getting reports would like to know more then just a list
of fields , so it would seem that a generic method which jumps up on
each buisness method being called, only get the current context (via
interfface which would implemented differently each time) is a
condradiction in terms.
Its probably best implemented by doing all database updates through
stored procedures that generate the audit log while doing any auditable
database operation. If you want to record context then this must must be
passed as a parameter to every stored procedure that generates audit
trail entries. Context can be quite bulky: the user name, a timestamp,
description of the operation and the name of the implementing class are
all relevant and may be merely a subset of the context required if the
system contains sensitive data. I haven't mentioned tracking field-level
changes to the database - that's a given of you're doing anything like
this.
However, doing this will carry costs during design and implementation as
well as imposing disk storage and and processing overheads. Storage
overheads need to be properly sized as they may be larger than anybody
can guess. Indeed, the audit trail is probably a multi-table section of
the database.
I'd say that management buy-in is essential if auditing is to be properly
costed and those costs approved. Its also essential if the audit trail is
actually used to track down bugs and user access violations.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- Follow-Ups:
- Re: auditing with context?
- From: Lew
- Re: auditing with context?
- References:
- auditing with context?
- From: Elhanan
- auditing with context?
- Prev by Date: Obtaining complete ClassLoader tree?
- Next by Date: Re: auditing with context?
- Previous by thread: auditing with context?
- Next by thread: Re: auditing with context?
- Index(es):
Relevant Pages
|