VOOZH about

URL: https://www.nuget.org/packages/AWSSecretsManager.Provider/

⇱ NuGet Gallery | AWSSecretsManager.Provider 1.3.2




👁 Image
AWSSecretsManager.Provider 1.3.2

dotnet add package AWSSecretsManager.Provider --version 1.3.2
 
 
NuGet\Install-Package AWSSecretsManager.Provider -Version 1.3.2
 
 
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="AWSSecretsManager.Provider" Version="1.3.2" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AWSSecretsManager.Provider" Version="1.3.2" />
 
Directory.Packages.props
<PackageReference Include="AWSSecretsManager.Provider" />
 
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 AWSSecretsManager.Provider --version 1.3.2
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AWSSecretsManager.Provider, 1.3.2"
 
 
#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 AWSSecretsManager.Provider@1.3.2
 
 
#: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=AWSSecretsManager.Provider&version=1.3.2
 
Install as a Cake Addin
#tool nuget:?package=AWSSecretsManager.Provider&version=1.3.2
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

AWSSecretsManager.Provider

👁 All Contributors

👁 NuGet version
👁 NuGet Downloads
👁 Build Status

This is a modern, community-maintained fork of Kralizek/AWSSecretsManagerConfigurationExtensions, originally developed by Renato Golia.

It provides a configuration provider for Microsoft.Extensions.Configuration that loads secrets from AWS Secrets Manager.


🚀 What's New in This Fork

  • ✅ Targeted to .NET 8 and .NET 9
  • ✅ Converted to use System.Text.Json only
  • ✅ Refactored structure for better modern SDK usage
  • NEW: Comprehensive logging support with ILogger integration
  • ✅ Published as a new NuGet package: AWSSecretsManager.Provider

🔧 Usage

ASP.NET Core Example

public class Program
{
 public static void Main(string[] args)
 {
 CreateHostBuilder(args).Build().Run();
 }

 public static IHostBuilder CreateHostBuilder(string[] args) =>
 Host.CreateDefaultBuilder(args)
 .ConfigureAppConfiguration((context, config) =>
 {
 config.AddSecretsManager(); // 👈 AWS Secrets Manager integration
 })
 .ConfigureWebHostDefaults(webBuilder =>
 {
 webBuilder.UseStartup<Startup>();
 });
}

Console App Example

static void Main(string[] args)
{
 var builder = new ConfigurationBuilder();
 builder.AddSecretsManager();

 var config = builder.Build();
 Console.WriteLine("Secret: " + config["MySecret"]);
}

Your application must have AWS credentials available through the default AWS SDK mechanisms. Learn more here:
👉 AWS SDK Credential Config

📋 Logging Support

The provider includes comprehensive logging support for better observability:

// Using ILoggerFactory (recommended)
using var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole());
builder.Configuration.AddSecretsManager(
 loggerFactory,
 configurator: options => options.PollingInterval = TimeSpan.FromMinutes(5));

// Using explicit ILogger
var logger = loggerFactory.CreateLogger<SecretsManagerConfigurationProvider>();
builder.Configuration.AddSecretsManager(
 logger,
 configurator: options => options.PollingInterval = TimeSpan.FromMinutes(5));

Log Levels:

  • Information: Key operations (loading, reloading, polling status)
  • Debug: Batch processing details and secret counts
  • Trace: Individual secret processing and change detection
  • Warning: Polling errors and missing secrets (when ignored)
  • Error: Failed operations with full context

Example Log Output:

[Information] Loading secrets from AWS Secrets Manager
[Debug] Fetching 15 secrets in 1 batches
[Information] Successfully loaded 47 configuration keys in 1,234ms
[Information] Starting secret polling with interval 00:05:00

🔒 Configuration Options

This provider supports several customization options, including:

  • Credentials: Pass your own credentials if needed.
  • Region: Customize the AWS region.
  • Filtering: Control which secrets are loaded via filters or explicit allow lists.
  • Key generation: Customize how configuration keys are named.
  • Version stage: Set version stages for secrets.
  • Logging: Full logging support with ILogger integration for observability.
  • LocalStack support: Override ServiceUrl for local testing.

📚 Samples

The repository includes comprehensive samples demonstrating different usage patterns:

Sample Description Key Features
Basic Usage Default credentials, default region, all secrets
Region Configuration Custom AWS region specification
Credential Profiles Using named AWS credential profiles
Secret Filtering Loading specific secrets by ARN allowlist
Custom Key Generation Transforming configuration key names (e.g., uppercase)
Custom Client Factory Advanced AWS client configuration
Advanced Logging Comprehensive logging, polling, and monitoring
ASP.NET Core Web application integration with endpoints

Each sample includes a detailed README with usage examples, prerequisites, and explanations. See the complete for setup instructions and learning progression.


📦 Installation

dotnet add package AWSSecretsManager.Provider

✅ Building Locally

This repo is built with the standard .NET SDK:

dotnet build
dotnet test

🙌 Acknowledgments

This project is based on the excellent work by Renato Golia and inspired by the broader .NET and AWS developer community.


📄 License

This project is licensed under the .

Contributors ✨

Thanks goes to these wonderful people (emoji key):

<table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ncipollina"><img src="https://avatars.githubusercontent.com/u/1405469?v=4?s=100" width="100px;" alt="Nick Cipollina"/><br /><sub><b>Nick Cipollina</b></sub></a><br /><a href="https://github.com/LayeredCraft/aws-secrets-manager-provider/commits?author=ncipollina" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ransagy"><img src="https://avatars.githubusercontent.com/u/6785058?v=4?s=100" width="100px;" alt="Ran Sagy"/><br /><sub><b>Ran Sagy</b></sub></a><br /><a href="https://github.com/LayeredCraft/aws-secrets-manager-provider/commits?author=ransagy" title="Code">💻</a></td> </tr> </tbody> </table>

This project follows the all-contributors specification. Contributions of any kind welcome!

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed.  net11.0 net11.0 is compatible. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos 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.2 7,543 5/14/2026
1.3.2-preview.3 50 5/14/2026
1.3.1 6,168 4/18/2026
1.3.1-preview.2 65 4/18/2026
1.3.1-preview.1 52 4/18/2026
1.3.0.29 110 4/18/2026
1.3.0.28 381 4/16/2026
1.2.1.27 19,151 4/4/2026
1.2.0.26 6,450 3/19/2026
1.1.9.25 23,732 2/11/2026
1.1.8.24 1,712 2/9/2026
1.1.7.23 45,011 1/9/2026
1.1.6.22 46,399 11/11/2025
1.1.5.21 33,503 10/19/2025
1.1.4.20 3,678 10/14/2025
1.1.3.19 74,037 9/8/2025
1.1.2.18 344 9/8/2025
1.1.2.16 8,524 8/22/2025
1.1.1.15 29,832 7/25/2025
Loading failed