In plain words
An audit log records security-relevant actions, such as sign-ins, permission changes, exports and deletions, with who did it, to what, when and from where, kept where the person acting can't change it.
Where you see it
A Harbor customer asks who deleted their production project last Tuesday. The audit log answers: a teammate's API token, from an unfamiliar IP address, two minutes after the token was created. Without it you would only know the project is gone.
What goes wrong
- Mixing audit events into application logs
Application logs are sampled, rotated after a few days and full of noise. Audit events need their own store, with long retention and no way to delete them early.
- A trail the attacker can edit
If the credentials that change data can also delete the audit trail, the trail proves nothing after a breach. Write audit events somewhere the app can append to but not change.
- Recording too much
Full request bodies in the audit log copy passwords, tokens and personal data into one more place to protect. Record the action and the identifiers, not the payload.
What to tell your agent
Quick check
Sign in to earn +10 XP for itWhere should Harbor write its audit events?