Relay

Audit log

What the dashboard records about who changed what, where to read it, and how long it is kept.

Every change made from the dashboard is written to the audit log: who made it, when, from which address, and what it changed. So is every sign-in, including the ones that failed. When someone asks why a change was skipped or who turned a table off, the answer is here.

Only administrators can read it. Events carry IP addresses and other people's activity, so the Audit log page and each school's Activity tab are hidden from everyone else.

Where to read it

  • Audit log in the sidebar lists everything, newest first. Search matches people, schools, actions, reasons and addresses. Filter by area, outcome, school and date.
  • Activity on a school's page is the same list, limited to that school.

Select an event to see its details: the exact action name, the school and the record it touched, the reason given, the address and browser it came from, and every field it changed with the value before and after.

What is recorded

AreaRecorded
SchoolsAdded, edited (with each changed field), suspended
Sync tables and schemaTables added, edited, switched on or off, removed; schema scans requested; table names added, edited, removed
BackfillsRequested, rows excluded or put back, approved, rejected (with the note)
QueueChanges skipped (with the reason), retries, single-row backfills of a skipped change
ConflictsEach resolution and the choice made
Alerts and notificationsAlerts acknowledged; Discord notifications switched on or off per kind
Sign-insSign-ins by password, username or passkey, failed sign-ins, sign-outs
Accounts and securityAccounts created, edited, banned, unbanned, removed; roles changed; passwords changed or set; sessions signed out; passkeys added, renamed, removed; impersonation started and stopped

Reads are not recorded, and neither is anything the agents do on their own. Their work is in sync history.

A change and its event are saved together: if the change fails, no event is written, and an event always means the change happened. An action that changed nothing, such as saving a school without editing it, writes no event.

Secrets never reach the log

School tokens and passwords are never written. A new school's event keeps only the last four characters of its token, the same hint the dashboard shows.

Impersonation

While an admin impersonates another account, everything done is recorded against the admin, shown as admin@example.com as ana@example.com. Starting and stopping the impersonation are events of their own.

IP addresses

The address recorded is the one the connection came from. When the server sits behind a proxy on the same machine or private network, it reads the client's address from the proxy's CF-Connecting-IP, X-Forwarded-For or X-Real-IP header instead. Those headers are ignored on connections from a public address, where a client could have written them itself.

Failed sign-ins

A failed sign-in has no account behind it, so the event shows the email or username that was tried instead. A run of failures for one address, or from one IP, is worth looking into.

What cannot be changed

Nothing in the dashboard or the API edits or deletes an event. The actor and school are copied into each event when it is written, so it still reads correctly after the account is removed or the school is renamed.

How long it is kept

The nightly retention sweep removes events older than RETENTION_AUDIT_DAYS. The default is 365 days and the minimum is 90: much longer than sync history, because the question the log answers is often asked months later.

On this page