A lightweight secret management library for .NET applications. Supports fetching secrets from HashiCorp Vault or appsettings.json based on configuration in appsettings.json.
$ dotnet add package Sindika.AspNet.SecretManagerA lightweight secret management library for .NET applications that supports fetching secrets from HashiCorp Vault or appsettings.json. The library selects the appropriate secret provider based on the configuration defined in appsettings.json.
Dual Secret Provider Support
Easily switch between HashiCorp Vault and local appsettings.json for secret storage.
Configurable via appsettings.json
Specify settings for Vault and AppSettings directly in your configuration file.
Validation
Ensures all required settings are provided and valid.
Flexible Integration
Compatible with any implementation of the ISecrets interface.
Configure your secrets
Update your appsettings.json with the necessary settings:
{
"SecretManagerSettings": {
"Provider": "Vault", // or "AppSettings"
"AppSettingSecret": {
// Provide settings if using local appsettings secret
},
"VaultSecretSettings": {
// Provide settings for Vault integration
}
},
"VaultSettings": {
// Vault integration settings (e.g., address, token, etc.)
}
}