Class ProviderMigrationAuditEvents
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Factory methods for creating provider migration audit events.
public static class ProviderMigrationAuditEvents
- Inheritance
-
ProviderMigrationAuditEvents
- Inherited Members
Remarks
Provider migration operations generate audit events for:
- Data re-encryption operations (algorithm/key changes)
- Provider migration completion
- Decryption migration completion
These events support SOC 2 compliance by providing evidence of:
- CC6.6 - Encryption key management and rotation
- CC7.2 - System change monitoring
Methods
DataReEncrypted(string, string, string, string, string, string, string, string, string, string?)
Creates an audit event for a data re-encryption operation.
public static AuditEvent DataReEncrypted(string sourceProvider, string targetProvider, string sourceAlgorithm, string targetAlgorithm, string sourceKeyId, string targetKeyId, string resourceId, string resourceType, string actorId, string? correlationId = null)
Parameters
sourceProviderstringThe source encryption provider being migrated from.
targetProviderstringThe target encryption provider being migrated to.
sourceAlgorithmstringThe encryption algorithm used by the source provider.
targetAlgorithmstringThe encryption algorithm used by the target provider.
sourceKeyIdstringThe key identifier used by the source provider.
targetKeyIdstringThe key identifier used by the target provider.
resourceIdstringThe identifier of the resource being re-encrypted.
resourceTypestringThe type of resource being re-encrypted.
actorIdstringThe actor who initiated the re-encryption.
correlationIdstringOptional correlation ID for related events.
Returns
- AuditEvent
An audit event representing the data re-encryption.
DecryptionMigrationCompleted(string, long, long, long, TimeSpan, string, string?, string?)
Creates an audit event for a decryption migration completion.
public static AuditEvent DecryptionMigrationCompleted(string sourceProvider, long recordCount, long successCount, long failedCount, TimeSpan duration, string actorId, string? reason = null, string? correlationId = null)
Parameters
sourceProviderstringThe provider from which data was decrypted.
recordCountlongThe number of records processed.
successCountlongThe number of records successfully decrypted.
failedCountlongThe number of records that failed to decrypt.
durationTimeSpanThe total duration of the decryption migration.
actorIdstringThe actor who initiated the decryption migration.
reasonstringThe reason for the decryption migration.
correlationIdstringOptional correlation ID for related events.
Returns
- AuditEvent
An audit event representing the decryption migration completion.
ProviderMigrationCompleted(string, string, long, long, long, TimeSpan, string, string?)
Creates an audit event for a provider migration completion.
public static AuditEvent ProviderMigrationCompleted(string sourceProvider, string targetProvider, long migratedCount, long failedCount, long skippedCount, TimeSpan duration, string actorId, string? correlationId = null)
Parameters
sourceProviderstringThe source provider that was migrated from.
targetProviderstringThe target provider that was migrated to.
migratedCountlongThe number of records successfully migrated.
failedCountlongThe number of records that failed to migrate.
skippedCountlongThe number of records that were skipped.
durationTimeSpanThe total duration of the migration.
actorIdstringThe actor who initiated the migration.
correlationIdstringOptional correlation ID for related events.
Returns
- AuditEvent
An audit event representing the provider migration completion.