There have been various questions on Slack/SO about "how do I make the HTTPHook
use https. This is especially troublesome if you are defining the conneciton
via an env var.
Ideally we would be able to, for example, define:
AIRFLOW_CONN_SLACK='https://hooks.slack.com/services/...'
and have it work as expected. Right now this doesn't work due to what is
arguable a bug in the hook which confuses "schema" and "scheme", and instead
you have to escape basically _everything_:
AIRFLOW_CONN_SLACK='http://https%3a%2f%2fhooks.slack.com%2fservices%2f...'
I propose updating the hook so that the first form works. Probably with a
"clean" break so that the old form doesn't work anymore come 2.0. (I shall how
messy it makes the code supporting both.)
https://issues.apache.org/jira/browse/AIRFLOW-2910 is one example of the
confusion around this connection.
A related problem is that configuing a Hook with the Path is hard/complex due
to trying the map "db://host/schema" on to HTTP paths (and what we call the
fields on the Connection object.) I will tidy that up too.
-ash