Interface IElasticsearchSecurityAuditorRecording
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Recording capabilities for data access events, configuration changes, and security incidents in Elasticsearch security auditing.
public interface IElasticsearchSecurityAuditorRecording
Remarks
This is a sub-interface of IElasticsearchSecurityAuditor. For core auditing and authentication, see IElasticsearchSecurityAuditorCore. For event notifications, see IElasticsearchSecurityAuditorEvents.
Methods
RecordConfigurationChangeAsync(ConfigurationChangeEvent, CancellationToken)
Records a security configuration change for compliance and change tracking purposes.
Task<bool> RecordConfigurationChangeAsync(ConfigurationChangeEvent configurationEvent, CancellationToken cancellationToken)
Parameters
configurationEventConfigurationChangeEventThe configuration change event details to record.
cancellationTokenCancellationTokenThe cancellation token to monitor for cancellation requests.
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains true if the event was successfully recorded, false otherwise.
Exceptions
- SecurityException
Thrown when audit recording fails due to security constraints.
- ArgumentNullException
Thrown when the configuration event is null.
RecordDataAccessEventAsync(DataAccessEvent, CancellationToken)
Records a data access event for monitoring data usage patterns and detecting anomalies.
Task<bool> RecordDataAccessEventAsync(DataAccessEvent dataAccessEvent, CancellationToken cancellationToken)
Parameters
dataAccessEventDataAccessEventThe data access event details to record.
cancellationTokenCancellationTokenThe cancellation token to monitor for cancellation requests.
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains true if the event was successfully recorded, false otherwise.
Exceptions
- SecurityException
Thrown when audit recording fails due to security constraints.
- ArgumentNullException
Thrown when the data access event is null.
RecordSecurityIncidentAsync(SecurityIncident, CancellationToken)
Records a security incident or violation for immediate attention and investigation.
Task<bool> RecordSecurityIncidentAsync(SecurityIncident securityIncident, CancellationToken cancellationToken)
Parameters
securityIncidentSecurityIncidentThe security incident details to record.
cancellationTokenCancellationTokenThe cancellation token to monitor for cancellation requests.
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains true if the incident was successfully recorded, false otherwise.
Exceptions
- SecurityException
Thrown when audit recording fails due to security constraints.
- ArgumentNullException
Thrown when the security incident is null.