lassanouer commented on issue #13672:
URL: https://github.com/apache/airflow/issues/13672#issuecomment-760578827
Yeah,
1) create a secret X in vault in secrets/somewhere/in/vault for exemple
2) add this env var to airflow:
- name: AIRFLOW__SECRETS__BACKEND
value: "airflow.contrib.secrets.hashicorp_vault.VaultBackend"
- name: AIRFLOW__SECRETS__BACKEND_KWARGS
value: "{\"connections_path\": \"somewhere/in/vault\",
\"mount_point\":\"secrets\", \"url\":\"https://vault.xxx.app\",
\"role_id\":\"xxxxxxxxxx\", \"secret_id\":\"xxxxxxxxx\",
\"auth_type\":\"approle\"}"
3) create a dag where you call this connection X in HttpSensor for example
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]