This release is a pre-release and may not be stable for production use.
secret-kernel-provider-aws-secrets-manager
AWS Secrets Manager provider for Secret Kernel.
uv add secret-kernel-contracts secret-kernel-provider-aws-secrets-manager
Usage
from secret_kernel.contracts import SecretClientOptions
from secret_kernel.provider_aws_secrets_manager import (
AwsSecretsManagerProviderOptions,
create_aws_secrets_manager_client,
)
client = create_aws_secrets_manager_client(
SecretClientOptions(env="prod", prefix="app"),
AwsSecretsManagerProviderOptions(region="us-east-1"),
)
secret = await client.get_secret("database/password")
The provider reads the AWSCURRENT version from AWS Secrets Manager through the shared Secret Kernel client contract. A secret that holds only a binary payload raises SecretCapabilityNotSupportedError.
Options
region: AWS region. Default:us-east-1, not boto3's region chain —AWS_REGION,AWS_DEFAULT_REGIONand the shared config file are not read. PassingNoneor blank text raisesSecretKernelConfigurationError.credentials: explicitAwsCredentials—access_key_id,secret_access_keyandsession_token. When omitted, the boto3 default credential chain is used.client: a boto3 Secrets Manager client of your own, which stays under your lifecycle.client_options: abotocore.config.Config, or its fields as a mapping, merged field by field over the provider defaults: 5 s connect, 10 s read, 3 retries.physical_name_separator: separator used for the physical AWS name. Takes aSecretPhysicalNameSeparatormember —SLASH(/),UNDERSCORE(_) orHYPHEN(-) — or its text. Default:SLASH.
By default, the provider keeps the logical Secret Kernel name as the AWS secret name, such as /prod/app/database/password.
With physical_name_separator=SecretPhysicalNameSeparator.HYPHEN, /prod/app/database/password becomes prod-app-database-password.
Documentation
The normative public surface is in
docs/secret-kernel-api-reference.md.
License
MIT
Metadata
Release files for secret-kernel-provider-aws-secrets-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| secret_kernel_provider_aws_secrets_manager-0.1.0a10.tar.gz | 5.1 kB | Without provenance | Details for secret_kernel_provider_aws_secrets_manager-0.1.0a10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| secret_kernel_provider_aws_secrets_manager-0.1.0a10-py3-none-any.whl | Python 3 | none | any | Details for secret_kernel_provider_aws_secrets_manager-0.1.0a10-py3-none-any.whl |
Total release size: 12.0 kB
Release files / secret_kernel_provider_aws_secrets_manager-0.1.0a10.tar.gz
| Download URL | secret_kernel_provider_aws_secrets_manager-0.1.0a10.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
802d29c77ed990edf24cf45a885db699118f7b5b9225c61382ad3786d54f3cbf
|
|
BLAKE2b-256 checksum How to use checksums |
6af792551100ff55ed1c237ff56b623d8b8365e78aab25d6f0b3801e7858fe37
|
| 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_aws_secrets_manager-0.1.0a10-py3-none-any.whl
| Download URL | secret_kernel_provider_aws_secrets_manager-0.1.0a10-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b67de3c322df28041301ced07de10b3a5b1f1826f26e14ba2f585cb18a18e27
|
|
BLAKE2b-256 checksum How to use checksums |
3c46ea42b54dae540722008d5744b1e652276256fb4d736864f0e2e3abf0f090
|
| 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-aws-secrets-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.