concept database in category apache airflow
appears as: databases, database, database, The database

This is an excerpt from Manning's book Data Pipelines with Apache Airflow.
The Python foundation of Airflow makes it easy to extend and to add integrations with many different systems. In fact, the Airflow community has already developed a rich collection of extensions that allow Airflow to integrate with many different types of databases, cloud services etc.
Listing 10.17
from airflow.hooks.base_hook import BaseHook api_config = BaseHook.get_connection("my_api_conn") #A api_key = api_config.login api_secret = api_config.password task1 = PythonOperator( op_kwargs={"api_key": api_key, "api_secret": api_secret}, ... ) ... # A This call will hit the database every time the DAG is parsed.
The RBAC interface enforces users to exist in the database, with a username and password. While far from perfect, only allowing access with a username and password is one of the first issues you would want to solve, and does prevent anybody “just looking around” from having access to Airflow.
Figure 14.10 The webserver and database expose a service and could offer a potential path for uninvited guests who may gain access to Airflow. Protecting these will lower the attack surface.
![]()