Interface IElasticsearchKeyProviderEvents
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Defines events and secret listing operations for key provider audit and monitoring.
public interface IElasticsearchKeyProviderEvents
Methods
ListSecretsAsync(string?, bool, CancellationToken)
Lists all secrets managed by this provider, optionally filtered by prefix.
Task<IReadOnlyList<SecretInfo>> ListSecretsAsync(string? prefix, bool includeMetadata, CancellationToken cancellationToken)
Parameters
prefixstringOptional prefix to filter secret names. If null, all secrets are returned.
includeMetadataboolWhether to include metadata in the results.
cancellationTokenCancellationTokenThe cancellation token to monitor for cancellation requests.
Returns
- Task<IReadOnlyList<SecretInfo>>
A task that represents the asynchronous operation. The task result contains the list of secret information matching the specified criteria.
Exceptions
- SecurityException
Thrown when secret listing fails due to security constraints.
Events
SecretAccessed
Occurs when a secret is accessed, for audit and monitoring purposes.
event EventHandler<SecretAccessedEventArgs>? SecretAccessed