
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
airflow-gpg-plugin
Advanced tools
Airflow plugin with hooks and operators to work with GPG encryption and decryption.
Use the package manager pip to install foobar.
pip install airflow-gpg-plugin
Add an airflow connection from shell.
login is the email address in the GPG key.
password is the passphrase of the GPG key.
airflow connections add 'gpg_default_conn' \
--conn-type 'gpg' \
--conn-login 'gpgexamplepassphrase@example.com' \
--conn-password 'gpgexamplepassphrase' \
--conn-host '' \
--conn-port '' \
--conn-extra '{"key_file": "tests/resources/gpgexamplepassphrase.asc"}'
Using operators to encrypt and decrypt files.
import os
from datetime import datetime
from airflow import DAG
from airflow_gpg_plugin.operators.gpg_decrypt_file_operator import GPGDecryptFileOperator
from airflow_gpg_plugin.operators.gpg_encrypt_file_operator import GPGEncryptFileOperator
gpg_conn_id = "gpg_default_conn"
dag = DAG(dag_id="gpg_example",
start_date=datetime(2021, 1, 1),
schedule_interval=None
)
encrypt = GPGEncryptFileOperator(
task_id="gpg_encrypt",
dag=dag,
conn_id=gpg_conn_id,
input_file_path=os.curdir + "/README.md",
output_file_path=os.curdir + "/README.md.gpg"
)
decrypt = GPGDecryptFileOperator(
task_id="gpg_decrypt",
dag=dag,
conn_id=gpg_conn_id,
input_file_path=os.curdir + "/README.md.gpg",
output_file_path=os.curdir + "/README.md.txt"
)
encrypt >> decrypt
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
Airflow plugin to work with GPG files.
We found that airflow-gpg-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.