MaksIT.Vault.Client 1.0.4

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

MaksIT.Vault.Client

HTTP client for the MAKS-IT Vault API. Authenticates with an API key (X-API-KEY header) and exposes typed methods for organizations, applications, secrets, and secret versions.

Shared wire types (MaksIT.Vault.Contracts) are included in this package.

Features

  • IVaultClient / VaultClient for search, read, create, patch, and delete operations.
  • DI registration via AddVaultClient (Microsoft.Extensions.Http).
  • API key authentication; routes under api/vault/....
  • VaultApiException when the API returns a non-success status code.

Installation

Package Manager:

Install-Package MaksIT.Vault.Client

dotnet CLI:

dotnet add package MaksIT.Vault.Client

Target Framework

  • .NET 10 (net10.0)

Quick Start

Dependency injection

using MaksIT.Vault.Client;

builder.Services.AddVaultClient("https://vault.example.com", "<api-key>");

// Inject IVaultClient
public sealed class MyService(IVaultClient vault)
{
  public Task DoWorkAsync(CancellationToken ct) =>
    vault.SearchOrganizationsAsync(new() { Page = 1, PageSize = 20 }, ct);
}

Use the reverse-proxy origin when Vault is deployed behind YARP or ingress (e.g. http://localhost:8080), not the internal server port.

Manual construction

using MaksIT.Vault.Client;

var httpClient = new HttpClient();
var client = new VaultClient(httpClient, "https://vault.example.com", "<api-key>");

var orgs = await client.SearchOrganizationsAsync(new() { Page = 1, PageSize = 20 });

API surface

Area Methods
Search SearchOrganizationsAsync, SearchApplicationsAsync, SearchSecretsAsync
Read GetOrganizationAsync, GetApplicationAsync, GetSecretAsync, GetSecretVersionAsync
Create CreateOrganizationAsync, CreateApplicationAsync, CreateSecretAsync, CreateSecretVersionAsync
Patch PatchOrganizationAsync, PatchApplicationAsync, PatchSecretAsync
Delete DeleteOrganizationAsync, DeleteApplicationAsync, DeleteSecretAsync

Secret version label current (case-insensitive) resolves to the lowest vN version that is not expired.

PowerShell

For interactive and automation scenarios, see MaksIT.Vault.Client.PowerShell in the same repository (Connect-Vault).

Contributing

See CONTRIBUTING.md.

License

See LICENSE.md.

Product Compatible and additional computed target framework versions.
.NET 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. 
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
1.3.0 88 8/1/2026
1.1.0 118 7/27/2026
1.0.6 124 7/9/2026
1.0.5 112 7/7/2026
1.0.4 110 7/6/2026
1.0.3 121 6/28/2026