Skip to main content

Introduction

plone.keyring contains a Zope utility that facilitates handling of secrets in an application. Secrets are very important in modern applications, which is why a shared tool to manage them is useful.

plone.keyring contains two basic components:

  • a keyring: a data structures which contains one or more secrets.

  • a key manager: a utility which contains the available keyrings and provides some convenience methods to manage them

Keyrings

The keyring is the workhorse: it contains a set of secrets for a specific purpose. A ring has room for a fixed number of secrets which is set at creation time. The most recently added secret is considered to be the current secret and the one that should be used. Older secrets in the ring can be used to keep data generated with older secrets valid for a period of time.

Key manager

The key manager is a container for the available keyrings. It always contains a default system keyring which is used when no other ring is explicitly requested.

Installation

You’ll need to register a KeyManager as a persistent utility. On Zope2 with GenericSetup, this can be done by loading the included profile.

Changelog

5.0.1 (2026-11-03)

Internal:

  • Move package metadata from setup.py to pyproject.toml. [plone devs]

5.0.0 (2026-05-16)

Internal:

  • Update configuration files. [plone devs]

5.0.0a1 (2025-11-19)

Breaking changes:

  • Replace pkg_resources namespace with PEP 420 native namespace. Support only Plone 6.2 and Python 3.10+. (#3928)

4.0.3 (2025-09-10)

Internal:

  • Move distribution to src layout [gforcada] (#4217)

4.0.2 (2024-11-30)

Tests

  • Fix removed unittest.makeSuite in python 3.13. [petschki] (#33)

4.0.1 (2024-01-22)

Internal:

  • Update configuration files. [plone devs] (6e36bcc4, 7723aeaf)

4.0.0 (2023-04-26)

Breaking changes:

  • Drop python 2.7 support. [gforcada] (#1)

Internal:

  • Update configuration files. [plone devs] (2ed8f544)

3.2.1 (2023-03-21)

Bug fixes:

  • Use ZODB as dependency rather than the deprecated ZODB3. [gforcada] (#1)

3.2.0 (2023-02-08)

Bug fixes:

  • Update to Zope4 only including troove classifiers. [jensens] (#7)

3.1.3 (2020-09-07)

Bug fixes:

  • Fixed deprecation warning for zope.component.interfaces.IComponentRegistry. [maurits] (#3130)

3.1.2 (2020-04-20)

Bug fixes:

  • Minor packaging updates. (#1)

3.1.1 (2019-02-13)

Bug fixes:

  • Avoid deprecation warnings. [gforcada] (#5)

  • Initialize towncrier. [gforcada] (#2548)

3.1.0 (2018-06-20)

Bug fixes:

  • Fix the tests on Python 3 [ale-rt]

  • Python 2.6 is no longer supported, use a 3.0.x release if needed [gforcada]

3.0.2 (2017-08-27)

Fixes:

  • Use zope.interface decorator. [gforcada]

3.0.1 (2015-05-11)

  • Minor cleanup: whitespace, git ignores. [gforcada, rnix]

3.0.0 (2014-04-13)

  • use more default keyrings and be able to select random key from ring [vangheem]

2.0.1 (2012-12-15)

2.0 - 2010-07-18

  • Update package information. [hannosch]

2.0b1 - 2010-06-13

2.0a1 - 2009-11-13

  • Updated to use zope.container instead of zope.app.container. [hannosch]

  • Specify package dependencies. [hannosch]

1.2 - 2008-05-08

  • Fix registration of the GenericSetup profile. [witsch]

1.1 - 2008-05-02

  • Add an optional GenericSetup profile to register the KeyManager as utility. Required for plone.keyring on Plone 3.0. [mj]

1.0 - 2008-04-21

  • No changes. [wichert]

1.0b1 - 2008-03-07

  • Tweak the tests to better test the API. [witsch]

1.0a1 - 2008-01-22

  • Initial release. [wichert]

Metadata

Release files for plone.keyring 5.0.1

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

Source distribution (sdist)

Source distribution for plone.keyring 5.0.1
File Size Uploaded Provenance Actions
plone_keyring-5.0.1.tar.gz 12.5 kB Without provenance Details for plone_keyring-5.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plone.keyring 5.0.1
File Interpreter ABI Platform Actions
plone_keyring-5.0.1-py3-none-any.whl Python 3 none any Details for plone_keyring-5.0.1-py3-none-any.whl

Total release size: 22.8 kB

Release files / plone_keyring-5.0.1.tar.gz

Download URL plone_keyring-5.0.1.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
44e26f3cee626208f82784e0968dff30b8cfc8b445724724d41a60b46e9c21cf
BLAKE2b-256 checksum
How to use checksums
da250dcf2bcd65c80e05ffbe95fbf352ba90d4d4a2b9fb1393ab9a7ccce9ce39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / plone_keyring-5.0.1-py3-none-any.whl

Download URL plone_keyring-5.0.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87a9619f2ba51e07efec45b5e17c1ddd82b4a9071ac0acd59124dc70729ceb0d
BLAKE2b-256 checksum
How to use checksums
162d0eeb92ea198fffcf87054c0c5d5c96e859a8a0a1422e3377e88e35dfedef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for plone.keyring 5.0.1

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