ToolUp.Secrets.GcpSecretManager 0.22.0

Prefix Reserved
dotnet add package ToolUp.Secrets.GcpSecretManager --version 0.22.0
                    
NuGet\Install-Package ToolUp.Secrets.GcpSecretManager -Version 0.22.0
                    
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="ToolUp.Secrets.GcpSecretManager" Version="0.22.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToolUp.Secrets.GcpSecretManager" Version="0.22.0" />
                    
Directory.Packages.props
<PackageReference Include="ToolUp.Secrets.GcpSecretManager" />
                    
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 ToolUp.Secrets.GcpSecretManager --version 0.22.0
                    
#r "nuget: ToolUp.Secrets.GcpSecretManager, 0.22.0"
                    
#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 ToolUp.Secrets.GcpSecretManager@0.22.0
                    
#: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=ToolUp.Secrets.GcpSecretManager&version=0.22.0
                    
Install as a Cake Addin
#tool nuget:?package=ToolUp.Secrets.GcpSecretManager&version=0.22.0
                    
Install as a Cake Tool

ToolUp.Secrets.GcpSecretManager

GCP Secret Manager ISecretStore companion for ToolUp.Platform. Reads, writes, and lists secrets per call against a configured GCP project; supports scope-prefixed secret-ID conventions and a per-key name@versionId version-pin convention.

Credentials flow through Google's Application Default Credentials (ADC) chain — on Cloud Run / GKE / GCE / App Engine the attached workload-identity-bound service account; off-GCP the path in GOOGLE_APPLICATION_CREDENTIALS pointing at a service-account JSON key file. Secrets are never cached in process beyond the call boundary — rotation in Secret Manager is picked up on next request.

Minimum IAM policy

bindings:
- members:
  - serviceAccount:<service-account>@<project>.iam.gserviceaccount.com
  role: roles/secretmanager.secretAccessor   # read (versions.access)
- members:
  - serviceAccount:<service-account>@<project>.iam.gserviceaccount.com
  role: roles/secretmanager.secretVersionAdder   # write (secrets.create + versions.add)
- members:
  - serviceAccount:<service-account>@<project>.iam.gserviceaccount.com
  role: roles/secretmanager.admin   # delete + list (or use a custom role with the two perms)

secrets.list is project-wide by Secret Manager design — the companion filters server-side by name prefix (name:toolup_<scopeId>_*).

Version pinning

GetSecret name resolves the latest version (the canonical alias for the highest-numbered enabled version). Callers that need a pinned version pass name@versionId:

// Latest version (default)
let! current = secretStore.GetSecret("_platform", "db-password")

// Pinned to version 3 — useful during a rotation where the
// previous-version reader needs to keep working until the cutover.
let! previous = secretStore.GetSecret("_platform", "db-password@3")

SetSecret always creates a new version; the @version suffix is stripped on write because version IDs are assigned by Secret Manager, not the caller.

Activation

Set in the deployment's environment:

TOOLUP_SECRET_STORE=gcp-secret-manager
TOOLUP_GCP_PROJECT_ID=my-project-12345

Off-GCP additionally set:

GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json

Licensed under Apache-2.0. Part of the ToolUp Platform SDK — see github.com/ToolUp-Forge/toolup-forge for full documentation.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ToolUp.Secrets.GcpSecretManager:

Package Downloads
ToolUp.Cloud.Gcp

GCP cloud umbrella for ToolUp.Platform — transitively pulls ToolUp.Storage.GoogleCloud, ToolUp.Secrets.GcpSecretManager, ToolUp.AuditSinks.GcsArchive, ToolUp.Metrics.OpenTelemetry, plus the OTLP exporter for sending metrics to a Cloud Operations collector. One PackageReference replaces five per-cloud entries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.22.0 97 8/27/2026
0.21.0 102 8/26/2026
0.20.1 101 8/20/2026
0.20.0 96 8/19/2026