Audit and incidents
Audit log
Every sign-in, every change and every connection decision is an event of a chain. A change made later to any event, even directly in the database, shows.
What is recorded#
- Sign-ins: successes and refusals with their reason, second factors, single sign-on, lockouts.
- Changes: users, groups, roles, assets, accounts (never their secrets), policies, directories, settings, license.
- Access: each decision of a gateway, with the policies that decided and the actions granted; sessions started, commands, transfers, terminations.
- Incidents: panic mode, key presentations, break-glass commands run on the host.
Events never hold a password, a key or a token. A command that carries a password is recorded redacted.
Reading it#
Audit → Audit log lists events newest first. Search and filter, and open an event to see all its fields.

The chain and its signatures#
Each event carries the hash of the previous one, per organization. Every minute, the control plane signs the head of each chain with an Ed25519 key held by OpenBao, whose private part never leaves it, and writes the last signed event to OpenBao too, out of reach of a database writer.
Verify integrity, on the audit log, walks the chain and checks the signatures. It reports:
| Result | Meaning |
|---|---|
| intact | every event is in place, and the head is signed |
| signing late | the latest signature is older than expected, for example while OpenBao is sealed |
| chain broken | an event was changed or removed, or the chain was rolled back |
The public signing keys can be downloaded from the same place, to check the signatures outside BastionOS.
Retention#
Audit events are kept 400 days by default, then purged once a day. Nothing is purged that an export destination has not received, nor from a chain that does not verify.
To change it, set BASTION_AUDIT_RETENTION in deploy/compose/.env, for example 730d, or off to keep everything, then run sudo bastionos apply. With Helm: auditRetention.olderThan.
Export#
Sending the audit to Loki, Elasticsearch, OpenSearch or Syslog over TLS is an Enterprise Basic function: see SIEM export.