airflow.secrets
¶
Secrets framework provides means of getting connection objects from various sources, e.g. the following:
Environment variables
Metatsore database
AWS SSM Parameter store
Submodules¶
Package Contents¶
-
class
airflow.secrets.
BaseSecretsBackend
(**kwargs)[source]¶ Abstract base class to retrieve secrets given a conn_id and construct a Connection object
-
__metaclass__
¶
-
static
build_path
(path_prefix, secret_id, sep='/')¶ Given conn_id, build path for Secrets Backend
-
get_conn_uri
(self, conn_id)¶ Get conn_uri from Secrets Backend
- Parameters
conn_id (str) – connection id
-
get_connections
(self, conn_id)¶ Get connections with a specific ID
- Parameters
conn_id (str) – connection id
-
get_variable
(self, key)¶ Return value for Airflow Connection
- Parameters
key – Variable Key
- Returns
Variable Value
-