Skip to content

HashiCorp Vault configuration provider implementation for Microsoft.Extensions.Configuration.

License

Notifications You must be signed in to change notification settings

Ersoy/Microsoft.Extensions.Configuration.VaultConfiguration

Repository files navigation

Microsoft.Extensions.Configuration.VaultConfiguration

HashiCorp Vault configuration provider implementation for Microsoft.Extensions.Configuration.

Usage

When this package is installed, it allows calling AddVault() as described below to tell the configuration builder to hydrate config values from Vault (as opposed to JSON files or environment variables).

var vaultUri = Environment.GetEnvironmentVariable("VAULT_ADDR");
var vaultAccessToken = Environment.GetEnvironmentVariable("VAULT_TOKEN");
var prefix = "MyApp"; // each application should use its own prefix, in general

var builder = new ConfigurationBuilder()
    .AddVault(vaultUri, vaultAccessToken, prefix);

Change history

Version 1.2.0

  • Moved code that interfaces with Vault from separate project into the main project, under Vault namespace
  • Added change history to readme

About

HashiCorp Vault configuration provider implementation for Microsoft.Extensions.Configuration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages