Skip to content

jorgen-17/Turbocharged.Vault

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turbocharged.Vault

Build status NuGet

A .NET client library for using Vault.

Usage

// Choose an authentication method
var authentication = new TokenAuthentication(myToken);
// or: var authentication = new AppIdAuthentication(appId, userId);

// New up a VaultClient using that authentication
var client = new VaultClient("https://my.vault.server:8200", authentication);

// Write a secret to the vault
var data = new Dictionary<string, object>() { { "password": "sushi" } };
await client.WriteAsync("secret/foobar", data);

// Lease a secret
var lease = await client.LeaseAsync("secret/foobar");
var password = lease.Data["password"];

// password == "sushi"

License

MIT license. See LICENSE.md.

About

A .NET library for using Vault to store secrets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%