Skip to main content

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


Download files

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

Source Distribution

airflow-gcpsecretmanager-adapter-2.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file airflow-gcpsecretmanager-adapter-2.0.1.tar.gz.

File metadata

File hashes

Hashes for airflow-gcpsecretmanager-adapter-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e8064ab2a9e8b898fb111b2bf3625f467dd6c0dee3555ec68e718a07ef65d576
MD5 685646e9aed35a5e1ad4f612a2b32c7e
BLAKE2b-256 38757d68ba12f3c6fc22f73285d30ba70b0012115718bc6bdcb20e5829aa0f9e

See more details on using hashes here.

File details

Details for the file airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_gcpsecretmanager_adapter-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e25e219a7f3b6c8a353559c201c8240088cd503a4ae374e0fdd23f1443abc49e
MD5 d5fbdc203289c3fa4105c55230a7ed72
BLAKE2b-256 14261f766166447ee9edcfc3576f32e2435425a72ad7349363e2fa37d3f67df5

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