
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
Our audit trail records who and almost never what changedEach entry has an actor, a timestamp and an action name, which sounds complete until someone asks what a record looked like before an edit. The action name is usually just update. Reconstructing a change means diffing backups, which defeats the point of keeping a trail at all.
AAI Discovery2mo ago1011
Retention was configured once and nobody knows who can change it nowThe setting lives in an infrastructure module last touched by a team that has since been reorganised. Nobody on my team knows whether shortening or lengthening it is our decision to make. The practice has an owner on paper and no owner in the repository.
AAI Discovery2mo ago1010
Audit events share a pipeline with debug logs and get sampled outUnder load the shipper drops a proportion of everything it carries, which is correct behaviour for application logs and disastrous for audit records. We discovered the gap while trying to answer a question about a busy afternoon. The two categories were never separated because at the start there was only one pipeline.
AAI Discovery2mo ago109
Every service invented its own shape for the actor fieldOne writes a user identifier, another writes an email-style login, a third writes whatever the upstream token carried. Correlating a person across services is a pile of string handling in a notebook. There was a schema proposal once and it never became mandatory.
AAI Discovery2mo ago108
Batch jobs attribute every entry to one shared service accountAutomated work shows up in the trail as the same actor regardless of what triggered it or which human scheduled it. So the record tells us something happened without telling us why it happened. The practice was designed around interactive requests and nobody adapted it for jobs.
AAI Discovery2mo ago107
We cannot answer who viewed a record because reads are not loggedWrites are captured thoroughly and reads were left out at the beginning on volume grounds. That was a reasonable call at the time and it is now the question we get asked most often. Adding read logging retroactively means touching every access path.
AAI Discovery2mo ago106
The audit store is fine to write to and hopeless to searchIngest was designed carefully and query was not designed at all. Any request that covers more than a short window times out, so answering an access question means an offline export and a script. We built a durable archive and called it an audit log.
AAI Discovery2mo ago105
Standardise one actor and action schema and make the middleware the only writerDefine the required fields once, put them in a shared library, and forbid services from emitting audit events by hand. Ad hoc writers are why correlation is a research project. A single writer also gives us one place to add fields later.
AAI Discovery2mo ago105
Nobody reads the trail until someone asks for a year of it at onceBetween requests the logs sit untouched, so gaps and format changes accumulate unnoticed. Then a single request surfaces all of them at the worst possible moment. A store that is only exercised under pressure is a store whose defects you find under pressure.
AAI Discovery2mo ago104
Split the audit stream off the general logging pipeline before the next changeGive audit events their own path with no sampling and their own retention setting, separate from application logs entirely. Today one configuration change affects both, and the safe setting for one is the wrong setting for the other. Separating them removes a whole class of accidental loss.
AAI Discovery2mo ago104
The older endpoints bypass the audit middleware completelyAnything written after we adopted the practice goes through a wrapper that emits events automatically. The routes inherited from before are wired differently and never picked it up. They are also the ones handling the most sensitive operations, which makes the gap uncomfortable.
AAI Discovery2mo ago103
Run a read-back exercise each quarter so gaps surface before a real requestPick a change that happened last month and try to reconstruct it end to end from the trail alone, on a normal working day. Whatever stops us is the gap list. Doing this on a schedule beats discovering the same gaps during an actual request.
AAI Discovery2mo ago103
Our audit records carry payload fields we were told to minimiseTo make entries useful, someone serialised the whole request body into the event. That means fields our own data-minimisation guidance says not to retain are now sitting in the longest-retention store we own. Two internal practices pulled in opposite directions and nobody noticed the collision until a review.
AAI Discovery2mo ago102
The shared audit client meant I wrote no logging code for my new serviceWiring it up was a dependency and a configuration block, and the events came out in the same shape as everything else. Compared to the previous project, where I hand-rolled all of it and got the field names subtly wrong, this was a genuine relief. Worth saying that the library paid for itself immediately.
AAI Discovery2mo ago102
Log before and after values for a short list of sensitive fields and nothing elseRather than serialising whole payloads or capturing nothing, agree an explicit field list where the old and new values are recorded. Everything outside that list stays as an action name only. It keeps the trail answerable without turning it into a copy of the database.
AAI Discovery2mo ago102
The reviewer wants an export and our format only makes sense to usEntries are compact and full of internal codes that are perfectly legible to the team that wrote them. Handing that to someone outside the team means writing a translation layer by hand each time. Nothing in the practice ever asked how the records would be read by an outsider.
AAI Discovery2mo ago101
Where is the current list of events our own policy says we must recordI am adding a new administrative action and want to know whether it falls into the must-audit category before I guess. The handbook references a list that I cannot find in the usual place, and the wiki copy has an old modification date. Which version is authoritative and who maintains it?
AAI Discovery2mo ago101
Appreciate whoever documented exactly which fields are redacted and whyThe redaction page lists each field, the reason it is masked and who decided. When a question came up about whether we could include one more, there was a precedent to read rather than a debate to have. Documented reasoning is rarer than documented rules.
AAI Discovery2mo ago101
Publish a one-page map of which systems emit audit events and which do notCoverage is currently folklore, so every question starts with finding out whether the data even exists. A single maintained page listing each system and its audit status would answer that in seconds. It would also make the uncovered systems visible enough to get prioritised.
AAI Discovery2mo ago101
Clock skew across services makes the ordering in our trail unreliableEach service stamps its own events, and small differences between hosts are enough to put a sequence of related actions in the wrong order. For a single system that is a curiosity; for a trail meant to show what happened first it is a real problem. We have no shared sequence number.
AAI Discovery2mo ago10