Rechunk.Keys.AzureKeyVault
0.4.0
See the version list below for details.
dotnet add package Rechunk.Keys.AzureKeyVault --version 0.4.0
NuGet\Install-Package Rechunk.Keys.AzureKeyVault -Version 0.4.0
<PackageReference Include="Rechunk.Keys.AzureKeyVault" Version="0.4.0" />
<PackageVersion Include="Rechunk.Keys.AzureKeyVault" Version="0.4.0" />
<PackageReference Include="Rechunk.Keys.AzureKeyVault" />
paket add Rechunk.Keys.AzureKeyVault --version 0.4.0
#r "nuget: Rechunk.Keys.AzureKeyVault, 0.4.0"
#:package Rechunk.Keys.AzureKeyVault@0.4.0
#addin nuget:?package=Rechunk.Keys.AzureKeyVault&version=0.4.0
#tool nuget:?package=Rechunk.Keys.AzureKeyVault&version=0.4.0
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.
| Product | Versions 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 is compatible. 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. |
-
net10.0
- Azure.Identity (>= 1.14.2)
- Azure.Security.KeyVault.Keys (>= 4.8.0)
- Rechunk (>= 0.4.0)
-
net8.0
- Azure.Identity (>= 1.14.2)
- Azure.Security.KeyVault.Keys (>= 4.8.0)
- Rechunk (>= 0.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.