Scry.Server.Disclosure.SqlServer 0.6.0

dotnet add package Scry.Server.Disclosure.SqlServer --version 0.6.0
                    
NuGet\Install-Package Scry.Server.Disclosure.SqlServer -Version 0.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Scry.Server.Disclosure.SqlServer" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scry.Server.Disclosure.SqlServer" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Scry.Server.Disclosure.SqlServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Scry.Server.Disclosure.SqlServer --version 0.6.0
                    
#r "nuget: Scry.Server.Disclosure.SqlServer, 0.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Scry.Server.Disclosure.SqlServer@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Scry.Server.Disclosure.SqlServer&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Scry.Server.Disclosure.SqlServer&version=0.6.0
                    
Install as a Cake Tool

Scry.Server.Disclosure.SqlServer

A SQL Server store for the Scry disclosure audit: a record of everything a server sent to each caller.

builder.Services.AddScry<SampleContext>(
    _ => _.UseSqlServerDisclosureAudit(connectionString));

Every answer is written to an outbox table, in one committed INSERT, before it is sent. If the database does not accept an answer, the answer is not sent. When the store uses the application's own database, this puts nothing new in an answer's path that could be down.

The accepted entries are then moved, a step behind each answer, into tables that are only ever appended to. They record who was sent which row of which source, when, and through which members. Every batch is linked into a chain of hashes, which reveals a change to anything recorded. Where the server supports ledger tables (SQL Server 2022, Azure SQL), the chain is kept in an append-only ledger table. LedgerScope = Record keeps the whole record in ledger tables instead, so the database refuses any change to it. In that case no part of the record is ever retired.

The record is kept in segments, the way a log is kept in files. A new segment is started by age or by size. When there are more segments than the store is set to keep, the oldest is dropped, or handed on first and then dropped.

An answer that is sent again adds one row: the list of units it was made of is stored once, and each answer refers to it. Each list is stored as runs of units that other lists share, so an answer that differs from an earlier one by one row adds only the run containing that row, not the whole list. The content itself is stored separately, by address, and only once however often it is sent. It goes in a table that an erasure can delete from, or outside the database through IScryDisclosureBlobStore.

AddSqlServerDisclosureRecord registers the record on a host that only reads it, such as an admin application running the disclosure explorer. Such a host moves nothing.

The same store answers the questions the record exists for, through IScryDisclosureReader: who received a row, what a caller received in a range of time, and whether a caller ever received a member. Through IScryDisclosureEraser it erases a row's content, and through IScryDisclosureStatus it reports how far behind it is.

The store creates its schema and tables the first time it is used. A deployment that creates its own database objects can turn that off and run ScrySqlServerDisclosureStore.Script instead. The store supports SQL Server 2017 and later, and Azure SQL.

The record is the most sensitive data the host has: everything every caller was ever sent, in one place. Give it all the protection the tables it describes have, and more.

Docs: Disclosure audit

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 0 12/4/2026
0.5.0 48 12/3/2026
0.4.0 101 11/20/2026
0.3.0 89 11/16/2026
0.2.0 98 11/7/2026
0.1.0 93 11/3/2026
0.1.0-beta.15 66 10/28/2026
0.1.0-beta.14 62 10/21/2026