~/talk

Create Your Custom Secrets Backend for Apache Airflow

Talkat Airflow Summit 2021 · 2021-07-08..07-16· [security]
links:none on file
slides:none on file

Shows how to implement a pip-installable custom secrets backend for Airflow 2.1.0 by subclassing BaseSecretsBackend and implementing get_connection_ui or get_connection/get_variable, and how Airflow initializes a 2- or 3-element backend list so a configured custom backend always wins precedence. Demo uses Docker Compose + Postgres + local executor, replaces a connection port 8888 with 6666 and variable city “basel” with “shohong,” and adds owner-based access checks that block unauthorized DAGs, proving the approach works.

AI-written summary · about

  1. 0:00Introduction
  2. 0:56Secrets backend overview
  3. 2:09Precedence rules
  4. 4:25Developing a custom backend
  5. 7:02Demo setup
  6. 9:11Configuration and testing
  7. 11:53Validating precedence
  8. 13:30Advanced usage example
  9. 16:23Conclusion and takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.