Skip to main content

Keyring backend using Kubernetes secrets.

Project description

Kubernetes Secrets Keyring Backend

Keyring backend that uses Kubernetes secrets. It uses kubectl commands to set, read, and delete credentials stored as Kubernetes secrets.

It automatically installs as backend with priority 20 (by default, can be adjusted with the KUBERNETES_KEYRING_PRIORITY environment variable) if installed on a system within a Kubernetes cluster, above any keyring present by default. This means after installing this package, you can use keyring exactly as usual without any need to reference this package. If installed on a system without Kubernetes, it should have no effect, as it checks if KUBERNETES_SERVICE_HOST is set and assigns itself a negative priority otherwise.

The usual keyring commands can be used with this package to set and manage the credentials. Kubernetes secrets are immutable, so you need to delete a secret before you can set a new password if the password changed.

The keyring package can be used as normal within code to get credentials saved as Kubernetes secrets, without any modifications to the code from what is done on regular Windows servers using the credential manager backend.

Install Normally

To install use the command: pip install kubernetes-secrets-keyring

Install for Debugging

The following describes how to install and use within the git repo (for instance, if making changes). Make sure to set the current directory to the root of the repo for the following commands.

To install as Python package use the command: pip install .

To test simply run pytest command.

To build use the command: python -m build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubernetes_secrets_keyring-0.2.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kubernetes_secrets_keyring-0.2.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file kubernetes_secrets_keyring-0.2.5.tar.gz.

File metadata

  • Download URL: kubernetes_secrets_keyring-0.2.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for kubernetes_secrets_keyring-0.2.5.tar.gz
Algorithm Hash digest
SHA256 8b8c9229518fd4a6d8cd7c50757ba5027f65d8ddb0e1c6e97d91ec1947f28677
MD5 f7d483b99c50f6fc4b2acd6ab1a76306
BLAKE2b-256 a74711c890670a00bacf4e512fdc6945893419858aaac2643587a8dd89aecf27

See more details on using hashes here.

File details

Details for the file kubernetes_secrets_keyring-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: kubernetes_secrets_keyring-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for kubernetes_secrets_keyring-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1539323811c64615a7e41918de33a062a4ecc77599380be68486ddbbb7894781
MD5 2554cc032f2be15f12bb1e095ed9d1c7
BLAKE2b-256 5bf9b8a66fd04ff184bcecbe22c37449f18b1d340f49dc99b034eb30858f0d8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page