Auditing
ESS auditing provides comprehensive activity monitoring to manage risks. ESS services support the auditing of their activities.
Audit Events
The following events are audited:
Purgeable Services
Applies to Access Grant, Authorization, Broker, Pod Provision, and WebID services.
purge-init
Purge start.
purge-completed
Purge complete.
Access Grant Service
Access Request/Grant/Denial lifecycle events.
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.
Authorization Service
ACR lifecycle events.
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.
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.
Pod Provision Service
pod-provisioned
Pod provisioned.
Purger Application
purge-started
Purge operation started.
purge-completed
Purge operation completed.
purge-failed
Purge operation failed.
Ingest Service
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
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.
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.
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.
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.
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.
Audit Event Message Internal Format
Internally, ESS’ audit event messages are in RDF and serialized as ActivityStreams 2.0 JSON-LD documents.
@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):
idandtypefieldsnameandtypefields
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):
idandnamefieldsidandtypefieldsnameandqualifiedAssociationfields
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 URIurl— the external path-based URIstorageUri— the canonical storage URIresourceIdandstorageId— internal identifiersparentId— the parent resource identifierversion— 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.
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
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-verifiedevent includes the results of the verification.An
access-grant-revokedevent 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:
sysout(default)Syslog
For more information, see Integration with Syslog and Integration with Sentinel.
Last updated