{"id":51514735,"url":"https://github.com/jamesgober/dotnet-audit-kit","last_synced_at":"2026-07-08T10:01:44.204Z","repository":{"id":341942046,"uuid":"1172115425","full_name":"jamesgober/dotnet-audit-kit","owner":"jamesgober","description":"Audit trail library for .NET 8. Immutable entries with SHA-256 hash chaining for tamper detection. Non-blocking dispatch to multiple sinks.","archived":false,"fork":false,"pushed_at":"2026-03-05T02:54:46.000Z","size":2203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-07T00:10:05.979Z","etag":null,"topics":["audit-log","compliance","csharp","dotnet","hash-chain","jg-dnet","nuget","soc2"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesgober.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-04T00:42:04.000Z","updated_at":"2026-03-05T04:04:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jamesgober/dotnet-audit-kit","commit_stats":null,"previous_names":["jamesgober/dotnet-audit-kit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamesgober/dotnet-audit-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesgober%2Fdotnet-audit-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesgober%2Fdotnet-audit-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesgober%2Fdotnet-audit-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesgober%2Fdotnet-audit-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesgober","download_url":"https://codeload.github.com/jamesgober/dotnet-audit-kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesgober%2Fdotnet-audit-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35260671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit-log","compliance","csharp","dotnet","hash-chain","jg-dnet","nuget","soc2"],"created_at":"2026-07-08T10:01:43.461Z","updated_at":"2026-07-08T10:01:44.190Z","avatar_url":"https://github.com/jamesgober.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-audit-kit\n\n[![NuGet](https://img.shields.io/nuget/v/JG.AuditKit?logo=nuget)](https://www.nuget.org/packages/JG.AuditKit)\n[![Downloads](https://img.shields.io/nuget/dt/JG.AuditKit?color=%230099ff\u0026logo=nuget)](https://www.nuget.org/packages/JG.AuditKit)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE)\n[![CI](https://github.com/jamesgober/dotnet-audit-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/jamesgober/dotnet-audit-kit/actions)\n\n---\n\nImmutable audit logging for .NET 8 applications. Record who did what, when, where, and why with tamper-evident hash chains, filter pipelines, and non-blocking sink dispatch.\n\n## Features\n\n- Immutable `AuditEntry` model\n- SHA-256 hash chaining with configurable seed\n- Built-in sinks: `ConsoleSink`, `FileSink`, `InMemorySink`\n- Pluggable `IAuditSink` and `IAuditFilter`\n- Async `Channel\u003cT\u003e` dispatch pipeline that keeps request paths non-blocking\n- Sink failure isolation (one sink failure does not stop other sinks)\n- Hash chain verification API\n- DI extensions: `AddAuditKit`, `AddAuditSink\u003cT\u003e`, `AddAuditFilter\u003cT\u003e`\n\n## Installation\n\n```bash\ndotnet add package JG.AuditKit\n```\n\n## Quick Start\n\n```csharp\nusing JG.AuditKit;\nusing JG.AuditKit.Abstractions;\nusing JG.AuditKit.Sinks;\n\nbuilder.Services\n    .AddAuditKit(options =\u003e\n    {\n        options.DefaultSinkTypes.Clear();\n        options.AddDefaultSink\u003cFileSink\u003e();\n        options.EnableHashChaining = true;\n        options.HashSeed = \"my-seed\";\n        options.FileSink.Path = \"audit.jsonl\";\n        options.FileSink.RollDaily = true;\n    })\n    .AddAuditFilter\u003cMyAuditFilter\u003e();\n\n// ...\n\nvar auditLog = app.Services.GetRequiredService\u003cIAuditLog\u003e();\n\nawait auditLog.WriteAsync(new AuditEntry(\n    actor: \"user:42\",\n    action: \"write.order\",\n    resource: \"orders/1001\",\n    timestamp: DateTimeOffset.UtcNow,\n    correlationId: \"corr-123\",\n    metadata: new Dictionary\u003cstring, string?\u003e\n    {\n        [\"ip\"] = \"10.0.0.10\",\n        [\"reason\"] = \"user-update\"\n    }));\n```\n\n## Documentation\n\n- [API Reference](./docs/API.md)\n\n## License\n\nLicensed under the Apache License 2.0. See [LICENSE](./LICENSE) for details.\n\n---\n\n**Ready to get started?** Install via NuGet and check out the [API reference](./docs/API.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesgober%2Fdotnet-audit-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesgober%2Fdotnet-audit-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesgober%2Fdotnet-audit-kit/lists"}