# Secrets audit trail

> Every request to the store and every change to a vault, its grants, shares and nominations recorded on the realm's audit trail, with the secret values left out.

The store records two things on the realm's audit trail: every request made to it, reads included, and every change
it makes. Each record says who, when, and what was asked or changed. No record ever holds a secret's value.

What's missing today: the store's records are written, but can't yet be read back through the API. Reading them comes
with the realm-wide trail search.

## Before you begin

- **Who:** nothing to call; every user's requests are recorded.
- **Where:** recorded by the store. Reading the store's records isn't offered yet.
- **First:** nothing. Recording starts when the store is turned on.

## How it works

| Record | Event | Written when | What it holds |
|---|---|---|---|
| A request | `ACCESS` | Every call to the store, read or write, allowed or refused | Who called, when, the method, the address called, and the answer's status |
| A change to a secret | `CREATED`, `UPDATED`, `PATCHED`, `DELETED` | A write, a merge, a delete, a destroy, a label or setting change, a grant given or taken back | Who made it, when, and which fields changed; values, labels and the path left out |
| A one-time share | `CREATED`, `DELETED` | A share made; read, or taken away because its one recipient was deleted. An expired share is swept without a record | Who made or read it, and when |
| A nomination | `CREATED`, `PATCHED`, `DELETED` | Emergency access nominated, asked for, refused, withdrawn or declined | Who, when, and the state it moved to |
| A deleted owner's key | `DELETED` | A user's or group's key destroyed after they were deleted | Whose key, and when |

## Set it up

There's nothing to turn on: every request and change is recorded from the moment the store is on.

## Limits and defaults

| Limit | Value |
|---|---|
| Kept for | the life of the realm. See [Retention and sites](/audit-reports/audit-trail/retention/) |
| Values on the trail | never |
| Reading the store's records | not offered yet |

## Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| A user's trail shows no secrets activity | Reading a trail today returns sign-ins, tokens and decisions, not the store's records | Keep your own log of administrative steps until the realm-wide trail search arrives |
| A rotation or shred of the realm's secrets key isn't recorded | Changes to the realm's secrets key aren't on the realm's trail yet | Keep your own record of each rotation and shred |

## Good to know

- **No values on the trail.** A secret's values and labels are sealed and left out of every record.
- **A request's address carries the secret's path.** The path is sealed where the secret is stored, but a request's
  record holds the address it was sent to, which names the path. Choose paths that don't themselves give a secret
  away: `db/staging`, not the password itself.
- **Reads are recorded.** Every read of a secret is an `ACCESS` record under the user who read it.
- **One trail for the realm.** The store's records sit beside the realm's other records. See
  [Audit & Reports](/audit-reports/).
- **The realm's secrets key isn't on the trail yet.** Rotating or destroying it writes no realm record. See
  [Known limitations](/reference/known-limitations/#secrets-store).

## Coming next

Reading the store's records in one place comes with the realm-wide trail search: see
[What's next for audit and reports](/audit-reports/audit-trail/whats-next/#realm-wide-trail-search).

## Related

- [Who can read a secret](/secrets-store/guides/who-can-read-a-secret/): what you can check today.
- [What is recorded](/audit-reports/audit-trail/what-is-recorded/): everything else on the realm's trail.
