Skip to content

Audit history, retention, and export

The record is only useful if it can be read, kept for as long as it is needed, and taken out to someone who does not use Xratu. Audit history is readable at every scope a question starts from, from one run to a whole organization. Records are kept for a retention window set by policy, and a legal hold keeps them past it. What is taken out carries enough to be checked independently. This page covers each of the three.

Reading the history

An investigation starts from whatever it has: a run id, a project, a model, a policy, a person. The record is readable from each:

Starting from Answers
A run Everything recorded against it, and everything it did
A project Every build, deploy, promotion and rollback, and who did each
A model Every version, binding and traffic change
A policy Every change to it and every attachment
An actor Everything that person or service account did, across resources
A workspace or organization Every change in it

Reading audit records is a permission of its own, audit.read, granted like any other. A listing returns the records and references to their bodies; a body is released one record at a time, to the person who asked, through a governed request that is itself audited. See Auditor access and export.

Records are kept for a window set by the workspace's baseline policy. When an investigation needs records kept longer, a legal hold is placed on a workspace, a project or a run, with a reason. A hold is created and later released; it is never edited, so its history reads as two dated acts. A purge removes only records past their window that no hold covers, and a purge is itself an audited act with an actor and a reason. See Retention and legal hold.

Export

Every record Xratu returns carries its place in its hash chain and the digests of its bodies. A copy of the records for a scope can therefore be checked by someone outside the platform: each record's hash recomputes from its content and its predecessor, and each body recomputes to its digest. The copy proves itself, without asking the reader to trust the platform that produced it.

See Audit history and governance reporting and Retention, legal hold, purge, and audit export.