Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

EricksonLopez.Auditing Overview

EricksonLopez.Auditing (2.0.0 on NuGet, L2) provides structured, tamper-evident audit trails with cryptographic HMAC-SHA256 integrity chaining, async-local ambient correlation (AuditScope), PII masking, and multi-database persistence stores.

  • Tamper-evident integrity chain: HmacAuditIntegrityService chains consecutive records per TenantId using length-prefixed HMAC-SHA256 digests (PreviousHash → IntegrityHash) to detect retroactive deletion or field mutation.
  • Ambient context propagation: AuditScope flows tenant identity, correlation IDs, and custom metadata across async/await continuations via AsyncLocal<T>.
  • Fail-safe field normalization: MaxStringLength caps, PII redaction, and regex-validated SQL identifiers protect storage backends against oversized payloads and identifier injection.
  • Explicit publication boundary: 12 packages are published at 2.0.0 on NuGet (3,639 downloads), while 4 local workspace packages (3.1.0) remain unpublished on NuGet.
flowchart LR
App["Application / AuditScope"] --> B["AuditRecordBuilder"]
B --> E["Enrichers & PII Masking"]
E --> H["HmacAuditIntegrityService"]
H --> S["IAuditStore (PostgreSQL / SQL Server / MongoDB / InMemory)"]
Audit Capture and Integrity PipelineApplication code captures ambient AuditScope metadata and builds an AuditRecord, which passes through enrichers, optional buffering, HMAC-SHA256 chaining, and the configured IAuditStore.
View accessible text summary and structure

Application code captures ambient AuditScope metadata and builds an AuditRecord, which passes through enrichers, optional buffering, HMAC-SHA256 chaining, and the configured IAuditStore.

flowchart LR
App["Application / AuditScope"] --> B["AuditRecordBuilder"]
B --> E["Enrichers & PII Masking"]
E --> H["HmacAuditIntegrityService"]
H --> S["IAuditStore (PostgreSQL / SQL Server / MongoDB / InMemory)"]

Contrary to the upstream README.md claim of 15 NuGet packages, the verified ecosystem inventory contains 16 packages: 12 published on NuGet (2.0.0) and 4 unpublished local workspace packages (3.1.0).

Package NuGet (2.0.0) Local HEAD AOT Status TFMs Role
EricksonLopez.Auditing Published (273 dl) 3.1.0 Full net8.0;net9.0;net10.0 Core engine, AuditScope, AuditId, HmacAuditIntegrityService, buffering
EricksonLopez.Auditing.Abstractions Published (629 dl) 3.1.0 Full net8.0;net9.0;net10.0 AuditRecord, IAuditStore, AuditQuery, TenantId (EricksonLopez.Auditing namespace)
EricksonLopez.Auditing.Dapper Published (256 dl) 3.1.0 Full* net8.0;net9.0;net10.0 Dapper store implementation (*runtime reflection caveat via Dapper v2.1.79)
EricksonLopez.Auditing.PostgreSql Published (294 dl) 3.1.0 Full net8.0;net9.0;net10.0 PostgreSQL store with (tenant_id, previous_hash) integrity index
EricksonLopez.Auditing.SqlServer Published (269 dl) 3.1.0 Full net8.0;net9.0;net10.0 SQL Server audit table store
EricksonLopez.Auditing.MySql Published (282 dl) 3.1.0 Full net8.0;net9.0;net10.0 MySQL audit store
EricksonLopez.Auditing.Oracle Published (277 dl) 3.1.0 Full net8.0;net9.0;net10.0 Oracle audit store
EricksonLopez.Auditing.Sqlite Published (272 dl) 3.1.0 Full net8.0;net9.0;net10.0 SQLite audit store
EricksonLopez.Auditing.OpenTelemetry Published (273 dl) 3.1.0 Full net8.0;net9.0;net10.0 Activity and metric instrumentation
EricksonLopez.Auditing.Testing Published (268 dl) 3.1.0 Full net8.0;net9.0;net10.0 InMemoryAuditStore and test helpers
EricksonLopez.Auditing.EntityFrameworkCore Published (273 dl) 3.1.0 Incompatible net8.0;net9.0;net10.0 EF Core store (IsAotCompatible=false, EnableTrimAnalyzer=false)
EricksonLopez.Auditing.MongoDb Published (273 dl) 3.1.0 Incompatible net8.0;net9.0;net10.0 MongoDB store (IsAotCompatible=false, EnableTrimAnalyzer=false)
EricksonLopez.Auditing.Analyzers Unpublished 3.1.0 NotApplicable netstandard2.0 Roslyn analyzers (local workspace only — do not install from NuGet)
EricksonLopez.Auditing.AzureKeyVault Unpublished 3.1.0 Full net8.0;net9.0;net10.0 Azure Key Vault HMAC signing integration (local workspace only)
EricksonLopez.Auditing.Outbox Unpublished 3.1.0 Full net8.0;net9.0;net10.0 Outbox audit forwarding adapter (local workspace only)
EricksonLopez.Auditing.Serilog Unpublished 3.1.0 Full net8.0;net9.0;net10.0 Serilog sink adapter (local workspace only)

Overall library AOT status is Partial (13 Full, 2 Incompatible, 1 NotApplicable). Note that Directory.Build.props notes Dapper v2.1.79 reflection usage even though MSBuild evaluates EricksonLopez.Auditing.Dapper as IsAotCompatible=true.

Measured directly from BenchmarkDotNet.Artifacts (2 measured rows, 0 na_error rows) on .NET 10.0.11 X64 RyuJIT x86-64-v4 (AMD Ryzen 7 9800X3D; no NativeAOT benchmark reports):

  • HmacIntegrityBenchmarks.ComputeHash: 481.4 ns / 152 B
  • HmacIntegrityBenchmarks.VerifyHash: 679.2 ns / 152 B