Csag.Extensions.Configuration.GoogleSecrets
2.0.0
Prefix Reserved
dotnet add package Csag.Extensions.Configuration.GoogleSecrets --version 2.0.0
NuGet\Install-Package Csag.Extensions.Configuration.GoogleSecrets -Version 2.0.0
<PackageReference Include="Csag.Extensions.Configuration.GoogleSecrets" Version="2.0.0" />
<PackageVersion Include="Csag.Extensions.Configuration.GoogleSecrets" Version="2.0.0" />
<PackageReference Include="Csag.Extensions.Configuration.GoogleSecrets" />
paket add Csag.Extensions.Configuration.GoogleSecrets --version 2.0.0
#r "nuget: Csag.Extensions.Configuration.GoogleSecrets, 2.0.0"
#:package Csag.Extensions.Configuration.GoogleSecrets@2.0.0
#addin nuget:?package=Csag.Extensions.Configuration.GoogleSecrets&version=2.0.0
#tool nuget:?package=Csag.Extensions.Configuration.GoogleSecrets&version=2.0.0
Csag.Extensions.Configuration.GoogleSecrets
A configuration provider that loads secrets from Google Cloud Secret Manager into Microsoft.Extensions.Configuration.
Installation
dotnet add package Csag.Extensions.Configuration.GoogleSecrets
Usage
using Csag.Extensions.Configuration.GoogleSecrets;
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((_, configuration) =>
{
configuration.AddGoogleSecrets(options =>
{
options.ProjectName = "your-project-id";
});
});
Without ProjectName, the provider reads the project from the environment variable GOOGLE_SECRETS_PROJECT. By default every secret becomes a configuration key, with __ in the secret ID mapped to :. A configuration value such as {GoogleSecret:MySecret} or {GoogleSecret:MySecret:2} is replaced by that secret.
For ASP.NET Core, Csag.Extensions.Configuration.GoogleSecrets.AspNetCore adds AddGoogleSecrets to the WebApplicationBuilder.
The repository README describes all options and the authentication.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Google.Cloud.SecretManager.V1 (>= 2.1.0)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Logging (>= 8.0.1)
- Microsoft.Extensions.Logging.Console (>= 8.0.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Csag.Extensions.Configuration.GoogleSecrets:
| Package | Downloads |
|---|---|
|
Csag.Blueprint.Web
ASP.NET Core middleware, validated options, security configuration, and FastEndpoints extensions for CSAG Blueprint applications. |
|
|
Csag.Blueprint.Testing
Test infrastructure with Testcontainers, integration test base classes, and AutoFixture support for CSAG Blueprint applications. |
|
|
Csag.Extensions.Configuration.GoogleSecrets.AspNetCore
Registers the Csag.Extensions.Configuration.GoogleSecrets configuration provider on an ASP.NET Core WebApplicationBuilder with one call to AddGoogleSecrets. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0 | 54 | 11/22/2026 |