Skip to main content

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.

Metadata

Release files for airflow-gcpsecretmanager-adapter 2.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 airflow-gcpsecretmanager-adapter 2.0.1
File Size Uploaded
airflow-gcpsecretmanager-adapter-2.0.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airflow-gcpsecretmanager-adapter 2.0.1
File Interpreter ABI Platform
airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / airflow-gcpsecretmanager-adapter-2.0.1.tar.gz

Download URL airflow-gcpsecretmanager-adapter-2.0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e8064ab2a9e8b898fb111b2bf3625f467dd6c0dee3555ec68e718a07ef65d576
BLAKE2b-256 checksum
How to use checksums
38757d68ba12f3c6fc22f73285d30ba70b0012115718bc6bdcb20e5829aa0f9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl

Download URL airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e25e219a7f3b6c8a353559c201c8240088cd503a4ae374e0fdd23f1443abc49e
BLAKE2b-256 checksum
How to use checksums
14261f766166447ee9edcfc3576f32e2435425a72ad7349363e2fa37d3f67df5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

0.0.7

2 release files

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