Skip to main content

Extension to Tink Python that provides Scaleway's Key Manager integration

Project description

Tink Python Scaleway's Key Manager extension

This is an extension to the Tink Python library that provides support for Scaleway's Key Manager.

The official documentation is available at https://developers.google.com/tink.

Installation

Install poetry:

curl -sSL https://install.python-poetry.org | python3 -

Clone the repository, then install the package:

poetry shell
poetry install

You can now import the package in your Python scripts:

from scaleway_tink.integration.scwkms import client
...

Check Scaleway's configuration documentation to configure the provider.

Examples

Examples are present in ./examples.

To run them, you need to create a Key in Scaleway's Key Manager and retrieve its ID. Export that ID as an environment variable:

export SCW_KMS_KEY_ID="<key-id>"

Make sure you have a configuration file or environment variables set. You can now run the examples:

python3 ./examples/encrypt_decrypt.py

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

scaleway_tink-0.2.2.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

scaleway_tink-0.2.2-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

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