vcon-server

Audit log records

The members of an audit record, and every action a record can name, with what it records and which log holds it.

Each line of an audit log is one record. This page lists a record's members and every action. Audit logs explains what is recorded and why, and read the audit logs shows how to read them.

A record

FieldHolds
seqthe record's number in its log, rising
atwhen, RFC 3339 in UTC
actorthe key id; user: and the user id for a request by session; sweep for the purge sweep; cli for a command on the host; empty for a token that did not parse or names no known key, and for a request by session refused before its session is known
actionwhat was asked: one of the actions below
targetthe uuid, tenant id, key id or user id acted on, if any; for listener_full, the configuration key of the listener, listen or operator.listen; for membership_grant and membership_revoke, the user id, then the tenant id or operator, then the roles the command named if it named any, joined by /; for role_cap_set, the tenant id, then the cap's roles or all, joined by /; for settings_set, the tenant id, then after a / the names of the settings changed, joined by ,, and never a value
versionthe version id involved, if any
statusthe HTTP status answered, or null for a record that answers no request (listener_full)
counthow many requests the record stands for; for listener_full, how many times the listener became full, not how many connections waited; for audit_chain_start, how many records the log held before its hash tree
nthe record's place in its log's hash tree, from 0 with no gap; null for a record written before the tree, by release 0.4.19 or earlier
leafthe record's leaf in the hash tree, 64 hex digits: the SHA-256 of its place, its log, and every member but seq, n and leaf as this line holds them, with a counted record's count taken as 0; null with n
countedtrue for a counted record, whose count grows during its minute and is not part of its leaf; false otherwise
closesthe place n of the counted record this record closes; null for every other record

A record holds no vCon content, no token and no client address, and nothing of a user but its id: no label, issuer or subject.

Every action

Each action, what it records, and the log it is in. "The key's log" is the tenant log of the key's tenant, or the admin log for an operator key. An action through MCP is recorded as its HTTP route records it.

ActionRecordsLog
createa vCon stored (POST /vcons)the tenant's
replacea vCon replaced by a new version (PUT /vcons/{uuid})the tenant's
reada vCon read (GET /vcons/{uuid})the tenant's
read_maskeda vCon's masked view read, which holds no content (GET /vcons/{uuid}?view=masked)the tenant's
reveal_partiesa vCon read as a reveal of the parties (GET /vcons/{uuid}?reveal=parties)the tenant's
reveal_subjecta vCon read as a reveal of the subject (GET /vcons/{uuid}?reveal=subject)the tenant's
reveal_dialoga vCon read as a reveal of the dialog (GET /vcons/{uuid}?reveal=dialog)the tenant's
reveal_analysisa vCon read as a reveal of the analysis (GET /vcons/{uuid}?reveal=analysis)the tenant's
reveal_linksa vCon read as a reveal of the links (GET /vcons/{uuid}?reveal=links)the tenant's
reveal_alla vCon read as a reveal of the whole vCon (GET /vcons/{uuid}?reveal=all)the tenant's
reveal_audioa vCon read as a reveal of one dialog's recording, to play it (GET /vcons/{uuid}?reveal=audio)the tenant's
deletea vCon deleted (DELETE /vcons/{uuid})the tenant's
lista page of the vCon list (GET /vcons)the tenant's
searcha search of vCon text (POST /vcons/search); its target is the window searched as <since>/<until>, never the textthe tenant's
search_hita vCon a search answered as a hit, under its version; one record each, before the answer is sentthe tenant's
purgea version erased, by the purge sweep (actor sweep), or at once by a delete when the period is 0dthe tenant's
legal_reada read through the legal routes of the latest kept version or of one version (GET /legal/vcons/{uuid}, GET /legal/vcons/{uuid}/versions/{version})the tenant's
legal_read_maskedthe masked view of that version read through a legal route, which holds no content (?view=masked on either legal read route); new in 0.4.8the tenant's
legal_reveal_partiesa legal read as a reveal of the parties (?reveal=parties on either legal read route)the tenant's
legal_reveal_subjecta legal read as a reveal of the subject (?reveal=subject on either legal read route)the tenant's
legal_reveal_dialoga legal read as a reveal of the dialog (?reveal=dialog on either legal read route)the tenant's
legal_reveal_analysisa legal read as a reveal of the analysis (?reveal=analysis on either legal read route)the tenant's
legal_reveal_linksa legal read as a reveal of the links (?reveal=links on either legal read route)the tenant's
legal_reveal_alla legal read as a reveal of the whole vCon (?reveal=all on either legal read route)the tenant's
legal_reveal_audioa legal read as a reveal of one dialog's recording, to play it (?reveal=audio on either legal read route)the tenant's
legal_versionsa read of a vCon's version historythe tenant's
restorea deleted vCon made live againthe tenant's
holda legal hold placedthe tenant's
releasea legal hold releasedthe tenant's
audit_reada page of a log read over HTTPS or MCP (GET /audit, GET /admin/audit)the log read
retentionthe tenant's retention period changed, copied from the admin log's tenant_retentionthe tenant's
metadatathe tenant's metadata level changed, copied from the admin log's tenant_metadatathe tenant's
limitsthe tenant's own limits changed, copied from the admin log's tenant_limitsthe tenant's
exporta run of vcon-server export parquet, with its outcome (actor cli)the tenant's
key_infoa key reading what it may do (GET /key)the key's
openapia read of GET /openapi.jsonthe key's
healtha health check, countedthe key's
auth_faileda request whose token was refused (status 401); a request with both a key and the session cookie (400); a request by session refused for its cookie (401), its origin (403) or its CSRF token (403); countedthe key's tenant's when the key is known, and the session's tenant's, under user: and the user id, for a wrong CSRF token; otherwise the admin log with an empty actor
mcpa request to /mcp, countedthe key's
wrong_listenera valid key, or a live session, refused because it came to the listener that serves the other kind, on a server with an operator listener, countedthe admin log for an operator key or session; the tenant's for a tenant key or session, or the admin log when the tenant's cannot be opened
listener_fulla listener that held limits.connections connections and took no more until one ended. The record describes a state of the listener and answers no request: its actor is empty, its status is null, and its count is the times the listener became full in the minute, not the connections that waited; countedadmin
rate_limitedrequests of a key refused 429 rate-limited by a rate of [limits.rate], the key's or its tenant's, before their route ran. The actor is the key and status is 429; one record for each key a minute, written when the minute ends or by the server's first refusal of a later minute, whose count is how many were refused. A session's request past its tenant's rate is counted under the user (user:<id>) in the tenant's log; countedtenant; admin for an operator key
csp_reporta request to POST /console/csp-report, where a browser reports that a console page broke its content-security policy. The route takes no key, so the actor is empty; status is 204 for a report taken, 400, 408, 413 or 415 for a request refused, or 429 for the requests refused in the minute past the listener's number of reports (one record, written when the minute ends); nothing the report says is kept; countedadmin
audit_chain_startthe start of the log's hash tree, at place n 0, written before the first record of a log that holds records from before the tree. It answers no request: its actor is empty, its target, version and status are null, and its count is how many records came before it. A log made by this release has no such recordeach log, the tenant's and the admin log
count_closedthe close of a counted record, written by the log's checkpoint once the record's minute has ended: closes names the record, and count is the count it ends with; a later request of the same kind starts a new counted record. It answers no request: its actor is empty, and its target, version and status are nulleach log, the tenant's and the admin log
checkpoint_keythe publication of the key that signs the log's checkpoints, written by the first checkpoint that uses it: the target is the key's id in hex. It answers no request: its actor is empty, and its version and status are nulleach log, the tenant's and the admin log
key_createa key made, over the admin API, at POST /tenant/keys or by vcon-server key createadmin, copied to the tenant's for a tenant key
key_revokea key revoked, over the admin API, at DELETE /tenant/keys/{id} or by vcon-server key revokeadmin, copied to the tenant's for a tenant key, and for a refusal at DELETE /tenant/keys/{id} to the log of the tenant whose key asked
key_listthe keys listedadmin, copied to the tenant's for GET /tenant/keys
user_adda user made by vcon-server user add; the target is the new user's id, and a refused one has noneadmin
user_listthe users listed by vcon-server user listadmin
user_deactivatea user deactivated and its memberships removed, by vcon-server user deactivateadmin, copied to the log of each tenant the user held a membership in
membership_grantroles given to a user in a tenant, or the operator role, by vcon-server membership grantadmin, copied to the tenant's for a tenant membership
membership_revokeroles taken from a user's membership, by vcon-server membership revokeadmin, copied to the tenant's for a tenant membership
role_cap_seta tenant's role cap set or removed, by vcon-server tenant set-role-capadmin, copied to the tenant's
role_cap_reada tenant's role cap read, by vcon-server tenant role-capadmin
settings_reada tenant's settings read, at GET /tenant/settings; the target is the tenant idadmin, copied to the tenant's
settings_seta tenant's settings changed, at PUT /tenant/settings; a refused change is recorded tooadmin, copied to the tenant's
membership_lista tenant's memberships listed, at GET /tenant/memberships; the target is the tenant idadmin, copied to the tenant's
usage_reada tenant's usage and limits read by its administrator, at GET /tenant/usage; the target is the tenant idadmin, copied to the tenant's
session_starta session started for a user who signed in; the actor is user: and the user id, and the target is the user id, then the tenant id or operator, joined by /; a refused start is recorded too. No sign-in method starts one yetadmin, copied to the tenant's
session_reada session read by its own browser, at GET /session, one record for each user and minutethe tenant's; admin for an operator's session
session_enda session ended by its user, at POST /session/logout; actor and target as for session_startadmin, copied to the tenant's
tenant_createa tenant madeadmin
tenant_listthe tenants listedadmin
tenant_retentiona tenant's retention period changedadmin
tenant_metadataa tenant's metadata level changed (PUT /admin/tenants/{id}/metadata, vcon-server tenant set-metadata)admin
tenant_limitsa tenant's own limits changed, or the change refused with its status (PUT /admin/tenants/{id}/limits, vcon-server tenant limits with a flag); see tenant limitsadmin
tenant_limits_reada tenant's limits and usage read by an operator (GET /admin/tenants/{id}/limits, vcon-server tenant limits with no flag)admin
tenant_removea tenant removedadmin
rekey_tenanta tenant key rotated (vcon-server rekey tenant)admin
rekey_masterthe master key rotated (vcon-server rekey master)admin
backupa run of vcon-server backup, with its outcomeadmin

Source of this page: website/content/docs/audit-log-records.md