# Audit log, sessions and security logs

How to read and export the Truetask audit log, see who is signed in, revoke sessions, limit where data may go, search logs and check service health.

URL: https://docs.truetask.io/admin/security

Truetask's audit and security panes answer the four questions an administrator gets asked: what changed, who is signed in, why did that error happen, and is anything down.
Two more decide where workspace data may go: **Allowed domains**, and on a self-hosted instance **Network**.

## Audit Log

**Settings > Audit & Security > Audit Log** records changes across the workspace.

![Truetask Audit Log settings pane with filters and the Changes column](https://docs.truetask.io/screenshots/settings-audit.webp)

Each row carries the date, the person, the board, the entity, the action and a plain-language **Changes** summary.
For an update, that summary is built from the stored before-and-after values, field by field, so "Priority changed" reads as the actual old and new value rather than a diff blob.

### Who a row names

The actor is not always a person, and the row says which kind it is.

| Actor | How the row reads |
| --- | --- |
| A person | Their name. |
| An automation | **Automation:** and its name. |
| An agent | **Agent:** and its name. |
| A plugin acting on its own | **Plugin:** and its name. |
| A plugin acting for a person | The person's name **via** the plugin's name. |
| A client | **Client:** and their name, for a field a client changed on their own page. |

An unexplained edit can always be traced to the workflow, the agent or the outsider that made it, because [AI agents work under accounts of their own](https://docs.truetask.io/agents/) rather than as their owners.

### What is recorded

Beyond the everyday changes to tasks, lists, boards and tags, the log holds the actions an administrator is most often asked about.

| Area | What lands in the log |
| --- | --- |
| Directory | Every directory sign-in (**LDAP Auth**), and every sync run from the pane (**LDAP Sync**) with its counts. See [Sign-in and identity](https://docs.truetask.io/admin/authentication#in-the-audit-log). |
| Plugins | Installing, enabling, disabling and removing a plugin, a change to its settings (the keys that changed, never the values), a scheduled job run by hand, and every action a plugin takes outside Truetask, such as submitting work to a render farm, under the person who asked. |
| Truetask Helper | A job asked of a computer, a change to who may run a computer's actions or to its agents, and every call carried through a computer into a private network. |
| Clients | A field a client changed on their own page, as **Client change**. |
| Credentials | A board added to or taken off an API token, and a database key minted, changed or revoked. |
| Accounts | An account turned on or off by an automation. |

A call carried through a computer records the computer, the host, the method and the path with its query removed, and who asked.
No header, body or credential is ever kept.
See [Truetask Helper](https://docs.truetask.io/helper/) for how a computer is allowed to reach a host.

### Filters

| Filter | Options |
| --- | --- |
| User | Any workspace member, or all users. |
| Board | Any board, or all boards. |
| Entity type | Tasks, lists, boards, tags, Truetask Helper computers, plugins, or system events. |
| Action | Create, Update, Delete, Move, Archive, Export, Import, LDAP Sync, LDAP Auth, Helper job, Helper access, Helper agents, Plugin, Client change. |
| From / To | A date range. |

### Exports

**Download** offers five exports, all of which take the filtered set rather than the current page:

| Export | Format |
| --- | --- |
| Export CSV | Plain spreadsheet rows. |
| Export JSON | The same rows, machine readable. |
| Export Excel | A formatted workbook. |
| SOC 2 Report | An HTML report with an action summary and an attestation. |
| ISO 27001 Report | An HTML report written against ISO 27001:2022 Annex A. |

Both compliance reports state the same thing: the audit log is append-only, and records cannot be modified or deleted after they are created.
Each entry is hashed into a chain with the entry before it, so a changed or removed row breaks the chain and is detectable.
Verification runs per board through the API, at `GET /api/boards/{board_id}/audit/verify`.

> **Truetask Cloud only**
>
> Chain verification works on every plan, Free included, and so do reading and exporting the audit log.
> See [Plans and billing](https://docs.truetask.io/cloud/plans).

### Audit as a webhook

The `audit.log` webhook event fires on any audited change on a board, which is how you stream the audit trail into an external SIEM instead of exporting it by hand.
See [Webhooks](https://docs.truetask.io/integrations/webhooks) and [Webhook events](https://docs.truetask.io/reference/webhook-events).

## Active Sessions

**Settings > Audit & Security > Active Sessions** lists sign-ins with the user, the IP address, the browser and operating system, and when they signed in.
Devices are typed as Desktop, Mobile, Tablet or API, so a token-driven integration is distinguishable from a person at a keyboard.
The table updates live and can be filtered to one user.

**Revoke** signs a person out of every device at once.
The dialog names the person and says they will have to sign in again.

> **Revoking your own sessions signs you out**
>
> The dialog warns you explicitly when the target is your own account.
> Confirming logs you out immediately and returns you to the sign-in page.

Revoking sessions does not touch API tokens.
To cut off a script or a tool, revoke its token in **Settings > Integrations > API Tokens**, or disable the account, which stops its tokens too.

## Credentials that reach the workspace

| Credential | What limits it | Where an admin cuts it off |
| --- | --- | --- |
| API token, a person's own or a workspace token | The access of the person it belongs to, its permission, and optionally a set of boards. | **Settings > Integrations > API Tokens** |
| Database key | One database's rows, with the rights and rate it was minted with. | The database's **Share** dialog |
| An agent's tokens | The agent's owner's access on each board, and never more. | **Settings > Members & Teams > Agents**: Disable or Delete the agent |

A token limited to a set of boards loses a board automatically when its person leaves that board, and a token whose last board is gone reaches nothing.
See [REST API](https://docs.truetask.io/integrations/api#limiting-a-token-to-some-boards) and [Database API keys](https://docs.truetask.io/boards/database-keys).

## Allowed domains

**Settings > Integrations > Allowed domains** decides where automation HTTP steps and outgoing webhooks may send workspace data.

| The list | What it means |
| --- | --- |
| Empty | Requests can go to any public address. This is the default. |
| One or more domains | Requests can only go to these domains and their subdomains: `example.com` allows `api.example.com`, never `badexample.com`. |

Enter bare host names, with no scheme, path, port or wildcard.
A typo never opens a closed list: an entry that is not a valid host matches nothing but still keeps the list closed.
Removing the last domain asks first, because an empty list allows any public address again.

The list is checked twice: when a webhook or an HTTP step is saved, and again on every request it sends, every redirect included.
So an address built from a placeholder, or a list changed after saving, is still caught.
The list does not apply to the pages agents read, nor to integrations that call a fixed service.

It exists on Cloud and self-hosted alike, on every plan.

## Network (Self-hosted)

A self-hosted instance has two more switches in **Settings > General > Network**: whether anything may reach the internet at all, and whether automations, webhooks and agent fetches may reach private addresses on your own network.
Both are off on a fresh instance.
See [Network policy](https://docs.truetask.io/self-hosted/network).

## Logs

**Settings > Server > Logs** holds structured entries from the API and from the PocketBase hooks: errors, warnings and info events.

This is the pane to open when a user reports an error.
Truetask shows them a reference of the form `ERR-xxxxxx`, and the search box matches that reference, the message and the request ID.
Filter by level (Error, Warning, Info), by source, and by date range.

Opening an entry shows the request ID, the request itself, the status, the duration, the stack trace and the context, with a copy button for handing the lot to support.

## Health

**Settings > Site > Health** is the quick answer to "is something down".

![Truetask Health settings pane listing PocketBase, API Server and MCP Server status](https://docs.truetask.io/screenshots/settings-health.webp)

It checks three services and reports each as Healthy, Unreachable or Unknown:

| Service | What it covers |
| --- | --- |
| PocketBase | Database, authentication and realtime. |
| API Server | The REST API used by integrations and push notifications. |
| MCP Server | The Model Context Protocol endpoint AI assistants connect to. |

Above them it shows how many services are running, the time of the last check and two facts: **Version**, the Truetask version, and **Database**, the version of the PocketBase server that is running.
**Refresh** runs the checks again.

> **Self-hosted only**
>
> If a service reads Unreachable, the container behind it is the place to look.
> See [Self-hosted overview](https://docs.truetask.io/self-hosted/).

## Retention (Self-hosted)

How long audit entries, sessions, notifications, webhook logs, error logs and trashed tasks are kept is set in **Settings > Server > Data retention**, and a daily cleanup job removes anything older.
See [Data retention](https://docs.truetask.io/self-hosted/data-retention).

> **Truetask Cloud only**
>
> Retention is managed for you and the pane is not shown.

## Related

- [Settings overview](https://docs.truetask.io/admin/)
- [Sign-in and identity](https://docs.truetask.io/admin/authentication)
- [Webhooks](https://docs.truetask.io/integrations/webhooks)
- [Network policy](https://docs.truetask.io/self-hosted/network)
