Rechunk.Keys.AzureKeyVault 0.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rechunk.Keys.AzureKeyVault --version 0.3.0
                    
NuGet\Install-Package Rechunk.Keys.AzureKeyVault -Version 0.3.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="Rechunk.Keys.AzureKeyVault" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rechunk.Keys.AzureKeyVault" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Rechunk.Keys.AzureKeyVault" />
                    
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 Rechunk.Keys.AzureKeyVault --version 0.3.0
                    
#r "nuget: Rechunk.Keys.AzureKeyVault, 0.3.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 Rechunk.Keys.AzureKeyVault@0.3.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=Rechunk.Keys.AzureKeyVault&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Rechunk.Keys.AzureKeyVault&version=0.3.0
                    
Install as a Cake Tool

Rechunk.Keys.AzureKeyVault

Wraps each Rechunk scope key with a key that stays in Azure Key Vault. The wrapped bytes, the vault key id, and the vault key version are stored in an IWrappedKeyStore (in memory, or SqliteWrappedKeyStore). The vault key is not copied into the process.

An RSA key in the vault uses RSA-OAEP-256. Pass VaultWrapAlgorithm.Aes256KeyWrap only when the vault key itself is AES. Unwrap uses the version saved on the row, so a newer vault key does not break records that were wrapped earlier. The old key version has to remain able to unwrap. The wrapped plaintext is padded to a multiple of 8 so AES key wrap can carry it. A 2048 bit RSA key can wrap a short scope name. A very long scope name can be too large for that key.

Key Vault WrapKey does not take associated data. The scope name and the scope key version are inside the wrapped bytes and are checked after unwrap. A local AES wrapping key uses AES-GCM associated data instead. A record written by one provider does not open with the other. Unwrap also refuses a stored key id that is a different key, or a different vault, than the one you passed in.

using Azure.Identity;
using Rechunk.Keys.AzureKeyVault;
using Rechunk.Storage.Sqlite;

var store = new SqliteWrappedKeyStore("Data Source=rechunk.db");
var keys = new AzureKeyVaultKeyProvider(
    new Uri("https://myvault.vault.azure.net/keys/rechunk"),
    new DefaultAzureCredential(),
    store);
var scopeKey = await keys.CreateAsync("tenant-a");

CreateAsync is on AzureKeyVaultKeyProvider. IKeyProvider only reads a key that already exists. Or, after AddRechunk:

builder.UseAzureKeyVaultKeys(
    new Uri("https://myvault.vault.azure.net/keys/rechunk"),
    new DefaultAzureCredential(),
    store);

Depends on the Rechunk package.

https://github.com/challaravinath/Rechunk

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.5.0 52 12/3/2026
0.4.0 82 12/1/2026
0.3.0 104 11/24/2026
0.2.1 109 11/15/2026
0.2.0 106 11/15/2026