For the complete documentation index, see llms.txt. This page is also available as Markdown.

Auditing

ESS auditing provides comprehensive activity monitoring to manage risks. ESS services support the auditing of their activities.

For information on the auditing in ESS, see ESS Auditing Service

Audit Events

The following events are audited:

Purgeable Services

Applies to Access Grant, Authorization, Broker, Pod Provision, and WebID services.

Event Name
Notes

purge-init

Purge start.

purge-completed

Purge complete.

Access Grant Service

Access Request/Grant/Denial lifecycle events.

Event Name
Notes

access-grant-created

Access Grant has been created.

access-grant-read

Access Grant has been read.

access-grant-deleted

Access Grant has been deleted.

access-grant-revoked

Access Grant status has been revoked.

access-grant-activated

A revoked Access Grant has been re-activated.

access-grant-verified

Access Grant has been verified. Disabled by default; see INRUPT_VC_AUDIT_READ_OPERATIONS_ENABLED.

access-request-created

Access Request has been created.

access-request-read

Access Request has been read.

access-request-deleted

Access Request has been deleted.

access-request-revoked

Access Request status has been revoked.

access-request-verified

Access Request has been verified. Disabled by default; see INRUPT_VC_AUDIT_READ_OPERATIONS_ENABLED.

access-denial-created

Access Denial has been created.

access-denial-read

Access Denial has been read.

access-denial-deleted

Access Denial has been deleted.

access-denial-verified

Access Denial has been verified. Disabled by default; see INRUPT_VC_AUDIT_READ_OPERATIONS_ENABLED.

access-credential-queried

Access Credentials have been queried (previously access-grant-queried). Disabled by default; see INRUPT_VC_AUDIT_READ_OPERATIONS_ENABLED.

request-authorized

Request has been authorized. For the /query and /verify endpoints, disabled by default; see INRUPT_VC_AUDIT_READ_OPERATIONS_ENABLED.

revocation-status-read

Revocation status has been read.

Starting in ESS 3.3.0, Access Grant audit events include the grantee as a structured target field.

request-authorized events contain additional information (such as the Access Grant service endpoint, the agent identifier, client id, etc.) for authenticated access requests/grants/denial events. For these events, you can find the corresponding request-authorized event using the instrument field. However, other than the service endpoint, the same information may be found in the access-* event messages themselves.

As part of the Access Grant to UMA access token exchange (which is an unauthenticated event), revocation-status-read events occur. These revocation-status-read events, which are also unauthenticated, do not have an associated request-authorized event.

Authorization Service

ACR lifecycle events.

Event Name
Notes

acr-created

ACR has been created.

acr-updated

ACR has been updated.

acr-deleted

ACR has been deleted.

provisioned-pod-access-control

Provisioned Pod access control.

deprovisioned-pod-access-control

De-provisioned Pod access control.

Pod Storage Service

Resource lifecycle events.

Event Name
Notes

resource-created

Resource has been created.

resource-updated

Resource has been updated.

resource-deleted

Resource has been deleted.

resource-touched

Container timestamp has been updated due to changes in child resources.

resource-read

Resource has been read. Disabled by default; see INRUPT_STORAGE_AUDIT_RESOURCE_READ_ENABLED.

storage-provisioned

Storage provisioned (internal).

storage-deprovisioned

Storage deprovisioned (internal).

storage-discovery-by-agent

Storages discovered for agent (internal).

resource-discovery

Non-container resources discovered for storage (internal).

view-definition-created

View definition has been created.

view-definition-deleted

View definition has been deleted.

view-binding-created

View binding has been created.

Starting in ESS 3.3, resource lifecycle events include the canonical storage URI (storageUri) and the external path-based URI (url) in the event object. See the examples for the updated event format.

Pod Provision Service

Event Name
Notes

pod-provisioned

Pod provisioned.

Purger Application

Event Name
Notes

purge-started

Purge operation started.

purge-completed

Purge operation completed.

purge-failed

Purge operation failed.

Ingest Service

Event Name
Notes

resource-reindexed

Agent triggered re-index of a single resource.

bulk-reindex-started

Agent triggered bulk reindex of all resources.

bulk-reindex-completed

Bulk reindex completed.

bulk-reindex-failed

Bulk reindex failed.

bulk-reindex-cancelled

Bulk reindex cancelled.

Search Service

Event Name
Notes

search-query-executed

Agent executed a search query.

search-resource-lookup

Agent looked up indexed resource metadata.

search-facet-query

Agent queried search facets.

metadata-query-executed

Agent executed a metadata query.

search-content-deleted

Agent deleted indexed search content.

search-content-deletion-failed

Agent's content deletion failed.

Solid OIDC Broker Service

Authentication/Authorization flow events.

Event Name
Notes

openid-backend-idp-login

Agent has logged in through backend IdP.

openid-token-requested

A new token was requested.

openid-authorization-initialized

Initialized an authorization code flow.

WebID Service

WebID Profile events.

Event Name
Notes

webid-provisioned

WebID was provisioned (previously webid-created).

webid-updated

WebID was updated.

webid-deleted

WebID was deleted.

webid-deprovisioned

WebID was deprovisioned.

Platform Management Service

Account lifecycle events.

Event Name
Notes

account-created

Account has been created.

account-updated

Account has been updated (e.g. a WebID, Storage, or identity mappings have been set).

admin-account-created

Admin created account on behalf of user.

admin-account-activated

Admin activated account.

admin-account-deprovisioned

Admin deprovisioned account.

Notification Service

Notification subscription lifecycle events.

Event Name
Notes

subscription-created

Subscription has been created.

subscription-deleted

Subscription has been deleted.

reprocess-init

Reprocessing of failed deliveries started.

reprocess-completed

Reprocessing of failed deliveries completed.

Services Without Audit Events

The following services do not produce audit events:

Audit Event Delivery

ESS uses asynchronous messaging for auditing.

In ESS 3.3 and later, audit events are published using a transactional outbox: the audit event is written in the same database transaction as the change it records, then delivered to Kafka. Delivery is at-least-once, so an audit message may be delivered more than once with the same id — consumers should deduplicate on id.

See Reliable Event Delivery for configuration and monitoring.

Changes to be aware of

If you consume ESS audit events, note that:

  • Starting in ESS 3.3.0, container timestamp updates emit resource-touched instead of resource-updated. service-started and service-shutdown events are no longer emitted.

  • Starting in ESS 3.5.0, the audit Kafka topics are auditv1eventsproducer and auditv1events, and their messages are plain JSON rather than encrypted. See ESS' Kafka Configuration.

For the full list of changes, see the ESS changelog.

Audit Event Message Internal Format

Internally, ESS’ audit event messages are in RDF and serialized as ActivityStreams 2.0 JSON-LD documents.

Although the following document shows all possible fields for an event message, the specific events determine which fields appear.

Pod-related event messages include:

  • the actor information (the agent identifier)

  • the application information (Client ID)

  • the Pod information (Pod root URL and Pod data subject)

@context

Specifies the JSON-LD contexts.

id

Universally Unique IDentifier (UUID) for the event.

type

An array of event types; e.g., [ "Activity", "Create" ].

name

Name that denotes the event; e.g., openid-backend-idp-login, resource-created, access-grant-created, etc.

summary

Short description associated with the message name.

generator

JSON document identifying the software (e.g., service) producing the event. For example, the generator for a Pod provision event:

actor

An array of JSON documents that identify the agents, if any, associated with the event. The actor’s identity can be denoted by various combination of fields, such as (list below is not exhaustive):

  • id and type fields

  • name and type fields

The field can also be empty [] for events not initiated by a user.

For example, for an Access Request/Grant event:

For IdP login events:

object

An array of JSON documents that identify the objects associated with the event; that is, the objects against which the action is performed. The object can be denoted by various combination of fields, such as (list below is not exhaustive):

  • id and name fields

  • id and type fields

  • name and qualifiedAssociation fields

Pod provisioned event:

Access Request/Grant/Denial creation events:

The object contains the created Request/Grant/Denial in a document with the content field (the credential as a string) and the mediaType field, plus an element that identifies the Pod resource:

Pod resource CRUD events (resource-created, resource-read, resource-updated, resource-deleted):

The object field includes an object that identifies the Pod resource:

Starting in ESS 3.3, resource lifecycle events include additional fields:

  • id — the canonical resource URI

  • url — the external path-based URI

  • storageUri — the canonical storage URI

  • resourceId and storageId — internal identifiers

  • parentId — the parent resource identifier

  • version — the resource version number

The generated and invalidated fields are internal references to the content that appear in some combination depending on whether it’s a create/read/update/delete event.

The object may also include additional fields, such as accessControl for resource-created events.

target

An array of JSON documents that identify the agent an action is directed at, if any. Starting in ESS 3.3.0, Access Grant audit events use target to identify the grantee.

instrument

An array of JSON documents that identify:

Client information:

Instrument objects that identify the client have a type of ["Client"] and a summary field with the value "Client identifier". The id is the ESS client identifier, and most events also include the clientId value from the access token. Some events do not have associated clients, and thus may have an empty instrument array.

The type field on client instrument objects was added in ESS 3.5.0. To identify client instrument objects in events from earlier releases, use the summary field.

OpenTelemetry info:

The OpenTelemetry traceId field can be used to correlate messages associated with a request. See appendix-audit-event-correlation.md for more information.

Pod information:

  • hasDataSubject — the Pod data subject (the agent who created the Pod)

  • hasStorage — the Pod root URL

Application-defined metadata:

See Application-Defined Metadata for the configuration needed to include in audit events.

result

An array of JSON documents that contains associated results. For example:

  • An access-request-verified event includes the results of the verification.

  • An access-grant-revoked event includes the updated status.

published

The timestamp of the event.

identifier

Identifier to use for correlated events from a single service that have occurred within the same request. To correlate events across services for a request, use the OpenTelemetry traceId in the instrument field.

For examples, see Appendix: Audit Events Examples

Integration with External Logging Systems

The ESS Auditing Service can log to:

For more information, see Integration with Syslog and Integration with Sentinel.

Last updated