
Audit trail
Know who reached what, and when. Every answer and every refusal, written down.
When your auditor asks who used the planning model last month, and with which tools, the answer is one filter away. The trail records refusals with the same care as answers, because a run of refusals is how you spot somebody testing the edge of their access.
Most systems log what they did. The refusals show the rules were running.
| Time | Person | Tool | Outcome | Reason |
|---|---|---|---|---|
| 09:14:02 | a.morgan | describe_model | allow | – |
| 09:14:38 | a.morgan | read_slice | allow | – |
| 09:15:11 | a.morgan | crm_read_all | deny | skill_not_enabled |
| 09:15:11 | t.walsh | docs_search | allow | – |
| 09:16:40 | t.walsh | read_slice | deny | project_not_granted |
| 09:22:03 | – | – | deny | token_rejected |
The last row has no person on it, because no person was verified. A credential rejected before it reached any permission check is still recorded, so somebody guessing at your connector shows up in your trail.
The reason codes
Every refusal has a named reason, and the names never change.
A refusal reason is a stable code, not a sentence someone rephrased. A test fails the build if one is renamed or removed, so a report you build today still works in three years.
Why not a message
A human-readable message is written for whoever is debugging that week. It gets reworded, it gets translated, and every rewording silently breaks the report somebody built on top of it.
Why a test, not a convention
Conventions are followed until a deadline. With the set frozen by a test, renaming a code is a deliberate, visible act with a failing build attached, never a quiet tidy-up.
What you do with them
Group by code. A rise in one refusal is usually a person hitting a boundary again and again, which means a grant needs fixing. Only three codes may ever be described as a possible breach. Everything else is labelled for review, so nobody escalates a typo to your CISO.
This is data somebody will read three years from now. It has to still mean the same thing then.
That is why a refusal carries a frozen code. The person and the environment are names too, never an internal number somebody has to look up.
The record
What a row contains, and what it leaves out.
No figures, by design. A row shows what a person asked for and whether it was allowed. Recording the values would turn the log into a second copy of your data, and the point is that there is no second copy.
| when | 09:16:40 |
| who | t.walsh |
| environment | planning-test |
| tool | read_slice |
| outcome | deny |
| reason | project_not_granted |
On every row
- When – to the second.
- Who – the verified person, by their own identity, never a shared credential.
- Which environment – never inferred, always named.
- Which tool was called.
- The outcome – allowed or refused.
- The reason – a named reason code, on every refusal.
Never on a row
- The figures that came back. The record says a read happened, not what it returned.
- Document contents. Same reason.
- Anything about another organization. Not a name, not an identifier, not a slug.
- Free-text somebody can shape. A log line an attacker can write into is a log line you cannot trust.
Access to the record
It is yours to read, export and hand to an auditor.
| Question | Answer |
|---|---|
| Who can read it | Your own administrators, through the console, scoped to your organization. One client never sees another client's rows. |
| Can you export it | Yes, as CSV from the console. It is your record, in a form you can put in front of an auditor. |
| Can you edit it | No. The trail is append-only: the console has no function that alters a row, and the web application holds no permission to change or delete one. |
| Does it survive a revoked grant | Yes. Removing somebody's access does not remove the history of what they reached. |
| Are posted changes recorded | Yes. Where writing is switched on, every posted change is recorded with who confirmed it, when, which batch and how many rows. The person who posted it also gets a receipt and a post-load review they can export to Excel. The values stay in your own system. |
The export
The file you export is exactly the screen you filtered.
Most products build the export separately from the screen, and the two drift apart. Here they are one query. A row the page hides cannot appear in the file, and a row the file leaves out cannot be on the page.
What comes out
- Every row you can see, filtered exactly as you filtered the screen, in a form you can hand to an auditor without reformatting it.
- Refusals included, with their reason codes intact. An export of successes only would answer the least interesting half of the question.
- Nothing that was not on the screen. No hidden columns, no wider scope than the view you exported from.
What people do with it
- Hand it to an auditor who asks who used the planning model last quarter.
- Group the refusals by code to find the grant that is set up wrong.
- Read the nightly findings alongside it: grants near their end date and approvals that have gone stale, raised for your administrators to acknowledge.
Two more things reviewers ask
Rejected sign-ins, and how long it is all kept.
A rejected credential is recorded too
A request whose token fails validation never reaches the part of the system that decides permission, so in most designs it lands in an application log and nowhere a client can read. It is written to the trail here, with no person attached because there is no verified person. So somebody running credentials against your connector is visible to you, in the same place as everything else.
Retention, and why there are two answers
Your business data has no retention period here because no copy of it is kept. The request trail is kept for 24 months and pruned by a weekly job that runs under its own database login, so a compromised web process cannot erase what it did. The full schedule is on data handling.