Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

secret-kernel-provider-gcp-secret-manager

GCP Secret Manager provider for Secret Kernel.

uv add secret-kernel-contracts secret-kernel-provider-gcp-secret-manager

Usage

from secret_kernel.contracts import SecretClientOptions
from secret_kernel.provider_gcp_secret_manager import (
    GcpSecretManagerProviderOptions,
    create_gcp_secret_manager_client,
)

client = create_gcp_secret_manager_client(
    SecretClientOptions(env="prod", prefix="app"),
    GcpSecretManagerProviderOptions(project_id="my-project"),
)

secret = await client.get_secret("database/password")

The provider reads the latest secret version from GCP Secret Manager through the shared Secret Kernel client contract.

Options

  • project_id: GCP project ID. Required; None or blank text raises SecretKernelConfigurationError.
  • credentials: the service account key as a mapping — client_email and private_key, spelled as the key file spells them. When omitted, Application Default Credentials are used.
  • client: a Google Secret Manager async client of your own, which stays under your lifecycle.
  • client_options: keyword arguments passed to the Google client the provider creates.
  • physical_name_separator: separator used when mapping logical / path segments to the GCP secret ID. Takes a SecretPhysicalNameSeparator member — UNDERSCORE (_) or HYPHEN (-) — or its text. Default: UNDERSCORE.
  • resolve_name: custom logical-to-physical name resolver.

By default, the provider maps the logical Secret Kernel name to a GCP secret ID by removing leading / characters and replacing remaining / separators with _.

Example: /dev/app/database becomes dev_app_database.

With physical_name_separator=SecretPhysicalNameSeparator.HYPHEN, /dev/app/database becomes dev-app-database.

Documentation

The normative public surface is in docs/secret-kernel-api-reference.md.

License

MIT

Metadata

Release files for secret-kernel-provider-gcp-secret-manager 0.1.0a10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secret-kernel-provider-gcp-secret-manager 0.1.0a10
File Size Uploaded Provenance Actions
secret_kernel_provider_gcp_secret_manager-0.1.0a10.tar.gz 4.5 kB Without provenance Details for secret_kernel_provider_gcp_secret_manager-0.1.0a10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secret-kernel-provider-gcp-secret-manager 0.1.0a10
File Interpreter ABI Platform Actions
secret_kernel_provider_gcp_secret_manager-0.1.0a10-py3-none-any.whl Python 3 none any Details for secret_kernel_provider_gcp_secret_manager-0.1.0a10-py3-none-any.whl

Total release size: 10.4 kB

Release files / secret_kernel_provider_gcp_secret_manager-0.1.0a10.tar.gz

Download URL secret_kernel_provider_gcp_secret_manager-0.1.0a10.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
94b9caef116107220b3618ad4010080ae3cc4dcd9049245f285709ea9d1731a1
BLAKE2b-256 checksum
How to use checksums
d55aef0942eb1ce4976464ba11b3a2c4400d2aaf79f532e0304f4748d454017e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / secret_kernel_provider_gcp_secret_manager-0.1.0a10-py3-none-any.whl

Download URL secret_kernel_provider_gcp_secret_manager-0.1.0a10-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f77aa8eb671b721c61e2eed41a10d91450aa92a5e5920fdb0112cddbaf85ae15
BLAKE2b-256 checksum
How to use checksums
580a4470fe34250912384f7001d5f56c1f674b8508927ae44f9720a6e5439c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for secret-kernel-provider-gcp-secret-manager 0.1.0a10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page