What precedence does Airflow determine when searching for a single connection?

Airflow 1.10.10 introduces a feature that allows users to sync Airflow Connections + Variables to a secret backend, e.g. AWS Secret Manager, AWS Parameter Store, Hashicorp vault etc.

For users that continue setting connections in the Airflow UI or via Environment Variables, it’s worth noting the order in which those connection details (potentially distinct from one another) take precedence:

  1. Secret’s Backend (From Airflow 1.10.10 and if the Secret’s Backend is defined)
  2. Environment Variable
  3. Airflow UI/Metadata Database