SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
People, security and privacy

Audit log

The audit log is a running record of who changed what, and when. Every important change in SHADE (saving and publishing content, uploading media, managing the team and tokens, changing settings, switching modules) adds one line to it, together with the change itself. It exists so an admin can answer "who did this?" after the fact, including changes made by the AI over MCP or by scripts.

What users can do

  • Admins read the log on the Audit log screen, filtered by person, action, channel, days or text, newest or oldest first. Actions are named as people read them (Team: Sign-in, Modules: Switch off, Shop: Manage stock); an entry's details show the action's id below its name.
  • Admins export it as a CSV or NDJSON file, with the screen's filters, after signing in again: a copy for their own records, for an auditor or for a security tool (a SIEM). See Exporting.
  • Everyone else only writes to it, as a side effect of their work. Editors, the ai role and visitors cannot read it.
  • Nobody can edit or delete entries in SHADE. Old entries are removed only by retention (see Rules and limits).

Who may do it

ActionPermissionRoles
Read the audit logaudit.readadmin
Export the audit logaudit.exportadmin, after signing in again
Write an entrynone (written with the change)anyone whose change succeeds
  • Only admins have audit.read and audit.export; neither is ever part of the editor role, and audit.export can't be given to a custom role, an automation token or a module.
  • The AI can never read the audit log over MCP, whatever the ai role's permissions become, and API tokens cannot read it either. See Team and roles and API tokens.

In the admin

Audit log (sidebar, settings group; admins only):

  • A table, newest first, 50 per page: When, Who, Through (Admin, API, AI (MCP), System) and What (the summary).
    • Who is the person's name at the time, kept after their account is deactivated or deleted. Module {name} is a module acting on its own, in its background work or what it answers for visitors. System is core's own jobs and the command that creates an admin on the server.
    • Through: Admin is someone signed in to the admin; API is an API token or a visitor using the site (a form, an order); AI (MCP) is an AI assistant; System is scripts and background work.
  • Search the summaries (text in the summary, upper or lower case alike), and Filters beside it, which opens the filters (from the bottom of the screen on a phone): Person (Everyone or one team member), the action (Every action or one of the actions recorded so far, searchable), Through, and From / Up to and including (days). The button says how many are on; each one that is on shows under the search, where × takes it off and Clear the filters takes them all off.
  • The info button on a row opens Details: the action, what it was done to (its kind and id) and the extra details recorded with it, such as which fields changed, before and after.
  • The screen is in English and Dutch; the summaries themselves are recorded in English, which the screen says under the filters (an entry is a record of what happened, written once, not a text translated later).
  • Export (top right; admins only) opens a dialog: the format (CSV for people and spreadsheets, NDJSON for tools), the days (the screen's, or the last 30), a warning that the file holds personal data, and signing in again with your password and a two-factor code or a passkey. The screen's other filters (person, action, through and search) apply too. When the file is saved, the dialog shows its SHA-256 and how many entries it holds. Email must be set up first, because every admin is emailed about each export; until then the dialog links to the Email screen. Without two-factor or a passkey on your account, the dialog sends you to your account page first.

On the website

Nothing directly. Some visitor actions (form submissions, appointment bookings, orders and payments) do add an entry, without a person attached (see below).

Rules and limits

One entry per change. An entry is written together with the change: if the change fails, there is no entry, and a change whose entry cannot be written does not happen. A few events are recorded just after they happen instead: sending a password reset link or invitation, asking for a rebuild, exporting a module's data or downloading its backup, and signing in and out, passkeys, two-factor on or off, password changes and a user deleting their own account. If the server stops at exactly that moment, such an entry can be missing.

Who acts when nobody does. Core's own work (its schedules, the queue's deliveries, its email, reading the site's public addresses) is recorded under the name system: <work> (for example system: retention, through System), and may do only what that work needs. The command that creates an admin on the server acts as an admin named CLI. A module's schedules, what it answers for visitors, its payment handling and its part in another module's work are recorded as Module {name}: they may only do what the module declares. No account can be named package:…, so no person can appear as a module.

Exporting

  • What the file holds: the entries the filters find, oldest first, with the fields id, createdAt (UTC), actorId, actorName, actorModule, via, action, targetType, targetId, summary and meta.
    • CSV: UTF-8 with a byte order mark, so spreadsheets open it with the right characters; one header row; the details (meta) as one column of JSON. A cell that starts with =, +, -, @ or a tab starts with ' instead, so a spreadsheet shows it as text and runs no formula: names, titles and the addresses tried at failed sign-ins are typed by people, some by anyone on the internet.
    • NDJSON: one entry a line as JSON, as GET /api/audit gives it, unchanged.
    • Named audit-log-<first day>-to-<last day>.csv (or .ndjson).
  • Days: both required, at most 366 of them, none before the oldest entry the log still holds.
  • Signing in again: the confirmation is good for five minutes, for this one export with these filters, and is used once. Five tries in 15 minutes at most.
  • Seen by every admin: each export is in the audit log (data.taken, kind audit, with the format, the filters, how many entries, the file's size and its SHA-256, and your network address only in scrambled form) and emailed to every active admin (an export needs email set up first).
  • Checking a file: the browser saves the file as it arrives, and the dialog then shows its count and SHA-256, the same as in the audit entry and the email. Compare it with the saved file's SHA-256. Whoever receives the file can work out its SHA-256 (sha256sum or Get-FileHash) and compare. The count tells a whole file from one cut short: a file with fewer entries than the count did not arrive whole. The export shows the log as it was when it began; its own entry is in the next one.
  • Limits: one export at a time per instance, at most ten a day. One that stops part way counts.
  • Personal data: the file is a copy of the record, with team members' names and the addresses tried at failed sign-ins. Keep it as carefully as the audit log, and delete it when you no longer need it. SHADE cannot reach a copy once it is downloaded: retention and erasure don't follow it (Personal data).
  • No live feed: sending entries to a SIEM as they happen is not built.

Retention. Entries older than two years are deleted automatically (at least 180 days; admins can change it). See Data retention.

Personal data in entries.

  • Deleting a user account (GDPR request) records only Deleted a user account and the account's id, no name or address.
  • Form submissions and appointment bookings are recorded without the visitor's details.
  • But some summaries do hold personal data: team members' email addresses (Created user ann@example.com (editor), Reset two-factor of …, Set password of …, Created … token … for <email>); these go with the audit log's retention. Visitors are never named: a canceled appointment is Canceled an appointment, and an order refund's free-text reason, typed by the admin, is in the details.
  • Sign-ins and failed sign-ins keep only a scrambled form of the network address, like form submissions and appointments; a failed sign-in keeps the email address tried, which the Personal data screen finds.
  • Passwords, token values and secret settings are never written: settings with secrets record only the names of the secrets that changed.
  • An entry keeps the name a team member had, also after their account is deactivated.

What is recorded

<slug> is a module's collection (forms-forms, website-pages, website-posts, commerce-products, …).

Content (Collections and entries, Drafts, publishing and version history, Pages and posts)

ActionWhen
collections.<slug>.createEntry or page created.
collections.<slug>.updateSaved, including autosave of the page editor and AI drafts. Unchanged saves add nothing.
collections.<slug>.updateText of one language saved: Saved the en text of …. See Languages.
collections.<slug>.restoreOlder version restored: Restored an earlier version of ….
collections.<slug>.publishPublished (with the note, when one was given).
collections.<slug>.unpublishUnpublished; only when it was live.
collections.<slug>.deleteDeleted (the details keep its title).
forms.submitA visitor submitted a form (the forms module; through its public route, no person).
forms.submissions.deleteA form submission deleted, or all submissions of a deleted form (with how many).
forms.submissions.exportSomeone downloaded a form's submissions as CSV (with how many).
forms.ai.answersAn AI assistant read submissions with their answers, which an admin allowed in the forms module's settings (which submissions).

Header and footer are collections too, so they appear as collections.website-navigation.* and collections.website-footer.*.

Media (Media): media.upload (with the file type, size and dimensions), media.update (the changed fields, alt text before and after per language), media.delete (with the file name).

Redirects (Redirects), all redirects.manage: a redirect added or removed by hand; a page or item page moved ((page moved) / (item moved)); item pages of a module being turned off redirected elsewhere, or those redirects removed when it is switched on again.

Theme and settings (Theme, Site settings): the website module's theme as its entry's saves and publishes (collections.website-theme.update, .publish), and settings.update (which includes languages) with the settings that changed.

Publishing (Publishing and preview): rebuild.trigger when someone clicks for a rebuild; build.report when the site reports a build ("Build succeeded (1 rebuild)" or "Build failed: (2 rebuilds)"). Automatic rebuilds after publishing are not recorded here; they are in the rebuild log.

Team, sign-in and tokens (Team and roles, Signing in (team), API tokens):

ActionWhen
team.loginAny new session: password, two-factor or passkey (with the method). Always through Admin. Not when changing your password keeps you signed in.
team.login-failedA refused sign-in: a wrong password, an unknown or refused account, a wrong two-factor or backup code. No person; the details hold the address tried (none for a code) and the method. Also a wrong password on the Account page (changing the password or email, two-factor, allowing a passkey): "Wrong password on the account page", by that team member, method password-check. The alert rule Many failed sign-ins counts them (Errors and security alerts).
team.logoutSigned out (once, even if repeated).
team.securityTwo-factor turned on or off, two-factor reset by an admin, passkey added or removed.
team.passwordOwn password changed, or an admin set someone's password.
team.manageTeam member created (with email, role and whether a password was set) or changed (each changed field, before and after). With plugin when an editor with a module's role managed the member, or when the module's removal deactivated them.
tokens.manageToken created or revoked (with owner, kind, first characters and expiry).

Accounts (Accounts and personal pages): settings.update when accounts are switched on or off; and, never with the name or address: users.delete (account deleted by an admin, or by the user themselves), users.update (name corrected), users.confirmation (confirmation email sent again), users.password-link (an admin sent a link to choose a password), users.sign-out (signed out everywhere), and users.confirm (the user confirmed their address, with the link and their password or by choosing a new password).

Capabilities:

FeatureActionWhen
Emailsettings.updateSettings saved (with the names of changed secrets).
Opening hourstime-rules.updateA module's opening hours changed.
Channelschannels.create, channels.update, channels.deleteA channel added, changed or removed (with its name).
Channelschannels.test, channels.resendA test message sent, or a message that did not get through sent again.

Modules: packages.enable, packages.disable, packages.settings (with the changed settings), packages.export, packages.uninstall (with the backup, the rows, and the form connections and failed deliveries it removed), packages.backup.download, packages.backup.delete.

Modules in the catalog

ModuleActionWhen
appointmentsappointments.bookA visitor booked; the booking waits for their confirmation.
appointmentsappointments.confirmA visitor confirmed their booking with the link in their email.
appointmentsappointments.manageAn appointment canceled.
paymentspayments.refundA payment refunded.
paymentspayments.cancelAn unpaid payment cancelled by a module (a shop cancelling an order).
paymentspayments.webhook-refusedA payment webhook refused (it named no Mollie payment, or one this site never started); at most one entry a minute.
commercecommerce.checkoutOrder placed (with the total).
commercecommerce.paymentOrder paid (notes oversold stock) or another payment status.
commercecommerce.orders.manageOrder status changed, or refunded.
commercecommerce.stock.manageStock changed (for one SKU).
commercecommerce.orders.expireThe schedule released the stock of an order left unpaid (through System).
editorialeditorial.schedules.create, editorial.schedules.cancelA publish or unpublish scheduled or cancelled. The publish itself is the entry's own entry, as the team member who scheduled it.
editorialeditorial.reviews.submit, editorial.reviews.approve, editorial.reviews.send-back, editorial.reviews.withdrawA review request submitted, approved (the publish is the reviewer's own entry), sent back or withdrawn.
editorialeditorial.releases.create, .update, .delete, .add, .remove, .publishA release made, changed, deleted, an entry added or removed, or the release published.
editorialeditorial.translations.doneA translation marked as done.
editorialeditorial.comments.create, .reply, .edit, .resolve, .reopen, .deleteA comment written, answered, edited, resolved, reopened or deleted.

The commerce job above is a module job; every core job that changes data records its own entries (retention does) or only touches its own bookkeeping (media orphans, email retries).

Copies of the instance's data: data.taken when an admin downloads a backup, exports the instance or exports the audit log, with the kind (backup, instance or audit), the file's size and the network address in scrambled form (see Exporting).

Errors and alerts (Errors and security alerts): errors.resolve and errors.reopen, errors.alert (by the system: a new security alert, with the rule and count) and settings.update when alert rules are switched (a rule switched off is also emailed to every active admin).

Refused actions (Errors and alerts): the first refusal of an account or a module each hour, so a burst of refusals is one entry while the alert rules count every one.

ActionWhen
refusal.permissionA team member or token was refused an action (FORBIDDEN), in the admin, over the API or over MCP. The person is the one refused; the details hold the action and why: not-granted (their role doesn't have it), ceiling (it stays with admins, or is never the AI's or a token's), condition (only their own or their group's entries) or switched-off (its module or feature is off).
refusal.packageA module acting as itself was refused an action, a capability or an outside call; the details hold the action and why (not declared or another reason it doesn't have the capability, switched-off, or for an outside call host, address, scheme, port, internal or redirects).

Not recorded: reads of any kind, use of an API token, refused requests past the first of the hour (counted per account or module per hour for the alerts instead; see Request protection), visitor sign-up and sign-in, page-view hits, time slot reservations by themselves, and automatic rebuilds.

For developers

The code and its tests: shade/features/audit/README.md in the shade repository.