Skip to main content
Pre-release

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

secret-kernel-provider-gcp-parameter-manager

GCP Parameter Manager provider for Secret Kernel.

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

Usage

from secret_kernel.contracts import SecretClientOptions
from secret_kernel.provider_gcp_parameter_manager import (
    GcpParameterManagerProviderOptions,
    create_gcp_parameter_manager_client,
)

client = create_gcp_parameter_manager_client(
    SecretClientOptions(env="prod", prefix="app"),
    GcpParameterManagerProviderOptions(project_id="my-project", location="global"),
)

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

The provider reads the rendered payload of the latest parameter version from GCP Parameter Manager through the shared Secret Kernel client contract.

Options

  • project_id: GCP project ID. Required; None or blank text raises SecretKernelConfigurationError.
  • location: GCP Parameter Manager location. Default: global. Passing 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 Parameter 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 parameter 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 parameter 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-parameter-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-parameter-manager 0.1.0a10
File Size Uploaded Provenance Actions
secret_kernel_provider_gcp_parameter_manager-0.1.0a10.tar.gz 4.6 kB Without provenance Details for secret_kernel_provider_gcp_parameter_manager-0.1.0a10.tar.gz

Built distribution (wheel)

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

Total release size: 10.6 kB

Release files / secret_kernel_provider_gcp_parameter_manager-0.1.0a10.tar.gz

Download URL secret_kernel_provider_gcp_parameter_manager-0.1.0a10.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c91e6cacecaffcbe444c376f2e1ba9abd5fab69026726a278950ea34d104cbfe
BLAKE2b-256 checksum
How to use checksums
6c6cde42af1614590835fb0c2043b1682192cb2b1704d809267007a8afdac355
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_parameter_manager-0.1.0a10-py3-none-any.whl

Download URL secret_kernel_provider_gcp_parameter_manager-0.1.0a10-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb687fa290369479ff84131dd850cec3731962cdb6b19cbcfd919919c50f8a8a
BLAKE2b-256 checksum
How to use checksums
2cbaccf9652769dcab73e20c8bed0243dd74dcf0963c207975876a4bac53b5b5
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-parameter-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