Airflow GCP Secret Manager adapter
Project description
airflow-gcpsecretmanager-adapter
Overview
This repository contains a Python package to allow Airflow variables that do not align with GCP Secret Manager naming convention to be used with the secrets backend. GCP Secret Manager has constraints on the characters that may be used when naming a secret (alphanumerics, hyphens and underscores only), however variables in Airflow are not restricted in any way. Therefore in some cases it may be necessary to transform the name of the Airflow variable to a format acceptable for Secret Manager to use. For example the Airflow variable name:
global::myvar
is not permitted as a GCP secret name, so this must instead be translated to:
global-myvar
which is permitted.
This package can be installed as an alternative secrets backend within Airflow, as described here: https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/secrets-backend/index.html#roll-your-own-secrets-backend
Installation
pip install airflow-gcpsecretmanager-adapter
Current replacements
| Source characters | Replaced with |
|---|---|
| :: | - |
| : | - |
Deployment
Follow the instructions here: https://packaging.python.org/en/latest/tutorials/packaging-projects/ to build and deploy a new version of the adapter library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airflow-gcpsecretmanager-adapter-2.0.1.tar.gz.
File metadata
- Download URL: airflow-gcpsecretmanager-adapter-2.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8064ab2a9e8b898fb111b2bf3625f467dd6c0dee3555ec68e718a07ef65d576
|
|
| MD5 |
685646e9aed35a5e1ad4f612a2b32c7e
|
|
| BLAKE2b-256 |
38757d68ba12f3c6fc22f73285d30ba70b0012115718bc6bdcb20e5829aa0f9e
|
File details
Details for the file airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl.
File metadata
- Download URL: airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e25e219a7f3b6c8a353559c201c8240088cd503a4ae374e0fdd23f1443abc49e
|
|
| MD5 |
d5fbdc203289c3fa4105c55230a7ed72
|
|
| BLAKE2b-256 |
14261f766166447ee9edcfc3576f32e2435425a72ad7349363e2fa37d3f67df5
|